Jump to content

Still need help with control click?


ashley
 Share

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()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $Logginbutton
            ControlClick("Runecape Nbot", "", "SunAwtCanvas1" , "left", 1, 337, 399)
    EndSelect
WEnd

GUIDelete()

Exit

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...