Jump to content
Sign in to follow this  
ashley

_IENavigate to webpage

Recommended Posts

ashley

ok im making a runescape world switcher for my m8...

So far i have this code...

But when a world is click on it goes to the runescape home page not the page i asked it to can anybody help...

thanks

*Free world list 8 ONLY*

#include <GUIConstants.au3>
#include <IE.au3>

$file ="http://above3.runescape.com/l1,p0,j1"
$oIE = _IECreateEmbedded()
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 195, 117, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))
$Filelist = GUICtrlCreateObj($oIE,8, 8, 497, 425)
$freeworlds = GUICtrlCreateList("", 512, 8, 113, 177, BitOR($WS_VSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Free worlds||1|3|4|5|7|8|10|11|13|14|15|16|17|20|21|25|29|30|32|33|34|35|37|38|40|41|43|47|50|51|52|55|57|61|62|63|67|68|72|74|75|80|81|85|86|87|90|93|94|95|96|101|102|105|106|107|108|109|113|117|118|119|125|126|127|127|133|134|135|136|141|142")
$members = GUICtrlCreateList("", 512, 200, 113, 177, BitOR($WS_VSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Members worlds")
$worldinfo = GUICtrlCreateList("", 512, 384, 113, 58)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $freeworlds
If GUICtrlRead($freeworlds) = "8" Then
_IENavigate($oIE, $file, 0)
EndIf
EndSwitch
WEnd
Edited by ashley

Share this post


Link to post
Share on other sites
isakbarnet

You have to disable scripting, or use _IEAction to click on a link that switches the world.. :P

and how do you do that from autoit?

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  

×