Jump to content
Sign in to follow this  
ashley

IE help

Recommended Posts

ashley

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...

Share this post


Link to post
Share on other sites
JustinReno

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")

Share this post


Link to post
Share on other sites
ashley

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

Share this post


Link to post
Share on other sites
JustinReno

It works for me.

Share this post


Link to post
Share on other sites
ashley

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 by ashley

Share this post


Link to post
Share on other sites
John117

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 by Hatcheda

Share this post


Link to post
Share on other sites
ashley

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

Share this post


Link to post
Share on other sites
John117

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 :P -Im guessing you'll have to stick with gaming from home, not school.

Share this post


Link to post
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
Sign in to follow this  

×