ashley Posted November 21, 2007 Share Posted November 21, 2007 Ok i have made the GUI and a few functions but im now stuck on how to lcik on a input box in a webpage and then press the button... So heres a pic of what it needs to do... Heres my current code: #include <GUIConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () $Schoolsoft = GUICreate("Website Browser", 633, 391, 193, 115) $web = GUICtrlCreateObj($oIE, 5, 5, 622, 350) $Button1 = GUICtrlCreateButton("Go", 552, 360, 75, 25, 0) $Input1 = GUICtrlCreateInput("Input1", 312, 360, 233, 21) $Warning = GUICtrlCreateButton("Warning!", 8, 360, 297, 25, 0) GUISetState(@SW_SHOW) _IENavigate ($oIE, "http://www.school-portal.co.uk/Grouphomepage.asp?GroupId=21498") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Warning MsgBox(48,"Warning!!!","This is not a multi-tasking program and is likey to crash, or be slow at loading a few webpages.") Case $Button1 $read = GUICtrlRead($Input1) _IENavigate ($oIE, "http://www.vtunnel.com/") EndSwitch WEnd Any ideas??? im really stuck... Free icons for your programs Link to comment Share on other sites More sharing options...
JustinReno Posted November 21, 2007 Share Posted November 21, 2007 The URL your using for a proxy doesn't have a clear source.. So I'm using www.skurfit.com Its a great proxy site with a clear source: Just modify this: #include <IE.au3> $IE = _IECreate("www.skurfit.com") $GetInputBox = _IEGetObjById($IE, "url") _IEFormElementSetValue($GetInputBox, "www.google.com") $GetButton = _IEGetObjById($IE, "browse") _IEAction($GetButton, "click") Link to comment Share on other sites More sharing options...
ashley Posted November 21, 2007 Author Share Posted November 21, 2007 so what your saying is this should sork... #include <GUIConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () $Schoolsoft = GUICreate("Website Browser", 633, 391, 193, 115, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS)) $web = GUICtrlCreateObj($oIE, 5, 5, 622, 350) $Button1 = GUICtrlCreateButton("Go", 552, 360, 75, 25, 0) $Input1 = GUICtrlCreateInput("Input1", 312, 360, 233, 21) $Warning = GUICtrlCreateButton("Warning!", 8, 360, 297, 25, 0) GUISetState(@SW_SHOW) _IENavigate ($oIE, "http://www.school-portal.co.uk/Grouphomepage.asp?GroupId=21498") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Warning MsgBox(48,"Warning!!!","This is not a multi-tasking program and is likey to crash, or be slow at loading a few webpages.") Case $Button1 $read = GUICtrlRead($Input1) _IENavigate ($oIE, "www.skurfit.com") $GetInputBox = _IEGetObjById($oIE, "url") _IEFormElementSetValue($GetInputBox, $read) $GetButton = _IEGetObjById($oIE, "browse") _IEAction($GetButton, "click") EndSwitch WEnd Free icons for your programs Link to comment Share on other sites More sharing options...
JustinReno Posted November 21, 2007 Share Posted November 21, 2007 It works for me. Link to comment Share on other sites More sharing options...
ashley Posted November 21, 2007 Author Share Posted November 21, 2007 (edited) i know it does but if you try and play Runescape it dont... Go on www.runescape.com The click existing user, Pick a detail and pick and random world and see what happends... The java app wont load... any ideas. Edited November 21, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted November 21, 2007 Author Share Posted November 21, 2007 is it a problem with www.skurfit.comif it is does anybody know one that will work with it. Free icons for your programs Link to comment Share on other sites More sharing options...
John117 Posted November 21, 2007 Share Posted November 21, 2007 (edited) Allow me to save you some trouble. You will post likely not be able to play games (these servers just pass info). However if browsing is the issue . . . www.peacefire.org (has exsisting sites that change from time to time to keep them from being blocked.) or if you have a home pc and a fast connection and want your own, fast, secure (https), private connection to the outside world . . . Circumventor is the answer. I have a script to help you keep up with your ip if you wish. Edited November 21, 2007 by Hatcheda Link to comment Share on other sites More sharing options...
ashley Posted November 22, 2007 Author Share Posted November 22, 2007 Allow me to save you some trouble. You will post likely not be able to play games (these servers just pass info). However if browsing is the issue . . . www.peacefire.org (has exsisting sites that change from time to time to keep them from being blocked.)or if you have a home pc and a fast connection and want your own, fast, secure (https), private connection to the outside world . . .Circumventor is the answer. I have a script to help you keep up with your ip if you wish.so there no way arround it Free icons for your programs Link to comment Share on other sites More sharing options...
John117 Posted November 23, 2007 Share Posted November 23, 2007 visit www.skurfit.com and www.peacefire.org (stupid censorship link) -you will notice that they are similar in a way. All those switches control what you forward. -meaning that you are not really getting the info. you are just talking to that site. -it is talking to the real site. . . . so no, at least not with that kind of site. You could aways just use ie or firefox and add some proxy settings (if you can access them) -but that is not always safe or smart -Im guessing you'll have to stick with gaming from home, not school. 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