cane Posted June 19, 2009 Share Posted June 19, 2009 Ok when i run the script i enter the username and when i click lookup it just searches for 5 instead of the $username variable #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Lookup", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360) $label = GUICtrlCreateLabel("Username", 10, 420, 100, 30) $username = GUICtrlCreateInput("Forward", 120, 420, 100, 30) $go = GUICtrlCreateButton("Lookup", 340, 420, 100, 30) GUISetState() ;Show GUI _IENavigate ($oIE, "") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $label Case $msg = $username _IEAction ($oIE, "") Case $msg = $go _IENavigate ($oIE, "http://hiscore.runescape.com/hiscorepersonal.ws?user1=" & $username) EndSelect WEnd GUIDelete() Exit why does it do that? Thanks for your time. Link to comment Share on other sites More sharing options...
Valuater Posted June 19, 2009 Share Posted June 19, 2009 The number "5" is the control ID for the input, you need to read the input replace this line... _IENavigate ($oIE, "http://hiscore.runescape.com/hiscorepersonal.ws?user1=" & GUICtrlRead($username)) 8) Link to comment Share on other sites More sharing options...
cane Posted June 19, 2009 Author Share Posted June 19, 2009 The number "5" is the control ID for the input, you need to read the input replace this line... _IENavigate ($oIE, "http://hiscore.runescape.com/hiscorepersonal.ws?user1=" & GUICtrlRead($username)) 8)thanks now im going to try and get it to read the page and display the stats in my own way i will most likely be back. But thanks for the fast reply Link to comment Share on other sites More sharing options...
Valuater Posted June 19, 2009 Share Posted June 19, 2009 thanks now im going to try and get it to read the page and display the stats in my own way i will most likely be back. But thanks for the fast replyWelcome... and Welcome to the Autoit Forums!!!8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now