Jump to content
Sign in to follow this  

Still need help with control click?

Recommended Posts


Ok as i said im my last post which got locked...

Im making this for a friend....

I wont click on the java applet. i have no idea why, i have looked in the _IE Functions and i still have no idea...

Here is the code

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Runescape Nbot", 950, 595)
$GUIActiveX = GUICtrlCreateObj($oIE, 5, 5, 820, 590)
$userinput = GUICtrlCreateInput("Username", 830, 5, 115, 25)
$passinput = GUICtrlCreateInput("Password", 830, 35, 115, 25)
$Logginbutton = GUICtrlCreateButton("Login", 830, 65 , 115, 25)

GUISetState()       ;Show GUI

_IENavigate ($oIE, "http://www.runescape.com/game.ws?m=1&j=1")

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $Logginbutton
            ControlClick("Runecape Nbot", "", "SunAwtCanvas1" , "left", 1, 337, 399)



If you run it and then use the autoitwindow it says SunAwtCanvas1, but im not sure if this is correct/

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.