Jump to content

Browser Web Page Login


Recommended Posts

I used to use an app called Replay AV to record XM shows and listen to them at work but in the last couple months they have started encrypting the data stream so this no longer works. I can manually open their web page and login to listen but was hoping to get this automated. What I have done worked great for Firefox but doesn't work for IE. I figured I should make it work for IE since everyone has IE. Any help would be appreciated

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

$Channel = IniRead("C:\XM\XM.ini", "Channel", "key", "")

$URL = IniRead("C:\XM\XM.ini", "URL", "key", "")

$ID = IniRead("C:\XM\XM.ini", "ID", "key", "")

$Pass = IniRead("C:\XM\XM.ini", "Pass", "key", "")

#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("Form1", 615, 438, 359, 201)

$CHInput = GUICtrlCreateInput($Channel, 32, 40, 57, 21)

$Go = GUICtrlCreateButton("Go", 32, 128, 75, 25)

if $URL = "" Then

$URL = "http://www.siriusxm.com/player"

EndIf

$URLInput = GUICtrlCreateInput($URL, 32, 72, 329, 21)

$IDInput = GUICtrlCreateInput($ID, 140, 40, 129, 21)

$PassInput = GUICtrlCreateInput($Pass, 292, 40, 129, 21)

OnAutoItExitRegister("ExitApp")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()

$Channel = GUICtrlRead($CHInput, 0)

$URL = GUICtrlRead($URLInput,0)

$ID = GUICtrlRead($IDInput,0)

$Pass = GUICtrlRead($PassInput,0)

Switch $nMsg

Case $go

ShellExecute($URL)

Sleep(5000)

Send("{Tab}")

Send("{Tab}")

Send($ID)

Send("{Tab}")

Send($Pass)

Send("{Tab}")

Send("{Space}")

Sleep(10000)

Send("{Tab}")

Send("{Tab}")

Send($Channel)

Send("{Enter}")

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

Func Exitapp()

IniWrite("C:\XM\XM.ini", "URL", "key", $URL)

IniWrite("C:\XM\XM.ini", "Channel", "key", $Channel)

IniWrite("C:\XM\XM.ini", "ID", "key", $ID)

IniWrite("C:\XM\XM.ini", "Pass", "key", $Pass)

EndFunc ;==>OnAutoItExit

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...