Jump to content

Recommended Posts

Posted (edited)

Well here is my code

#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 by cane
Posted

Define crashing? what is the error you get?

Did you look at the error handler that is part of the _IE**** UDF's?

Jos

The window freezes

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
×
×
  • Create New...