cane Posted July 18, 2009 Share Posted July 18, 2009 (edited) Well here is my code expandcollapse popup#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <IE.au3> #include <WindowsConstants.au3> #include <Misc.au3> #Region ### START Koda GUI section ### Form= $add = 0 $Form1 = GUICreate("Form1", 817, 617, 203, 130) $B = GUICtrlCreateTab(8, 8, 800, 600) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $dll = DllOpen("user32.dll") $TabSheet1 = GUICtrlCreateTabItem("Runescape") $oIE = _IECreateEmbedded () $GUIActiveX = GUICtrlCreateObj($oIE, 15, 40, 787, 550) $Label3 = GUICtrlCreateLabel("Label3", 152, 224, 36, 17) $AutoTalker = GUICtrlCreateTabItem("AutoTalker") $KeyToPress = "enter" $textsend = GUICtrlCreateInput("", 30, 50, 433, 21) $Label1 = GUICtrlCreateLabel("F8 To send", 476, 52, 58, 17) $textsendf9 = GUICtrlCreateInput("", 30, 75, 433, 21) $Label2 = GUICtrlCreateLabel("F9 To send", 476, 77, 58, 17) $Color = GUICtrlCreateTabItem("Color Bot") $Label2 = GUICtrlCreateLabel("Label2", 200, 144, 36, 17) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) _IENavigate ($oIE, "http://world23.runescape.com/m0") #EndRegion ### END Koda GUI section ### While 1 If _IsPressed("77", $dll) Then sleep(300) Send (GUICtrlRead($textsend)) sleep(14) Send ("{"&$KeyToPress&" DOWN}") EndIf If _IsPressed("78", $dll) Then sleep(300) Send (GUICtrlRead($textsendf9)) sleep(14) Send ("{"&$KeyToPress&" DOWN}") EndIf $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $B EndSwitch WEnd I think it is because im trying to load a java applet. If so is there anyway around the crashing? Thanks for reading my post Edited July 18, 2009 by cane Link to comment Share on other sites More sharing options...
Developers Jos Posted July 18, 2009 Developers Share Posted July 18, 2009 Define crashing? what is the error you get? Did you look at the error handler that is part of the _IE**** UDF's? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
cane Posted July 18, 2009 Author Share Posted July 18, 2009 Define crashing? what is the error you get?Did you look at the error handler that is part of the _IE**** UDF's?JosThe window freezes Link to comment Share on other sites More sharing options...
Authenticity Posted July 18, 2009 Share Posted July 18, 2009 Seems like everything is working. It should popup a dialog box asking you to allow or otherwise disallow this applet behavior, you can add the site to the trusted zones. 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