Jump to content

Control Click


ashley
 Share

Recommended Posts

ok, well im making this for a friend....

It needs to use a click that does not use he mouse... so control click should work i thing?

here is the script...

The cords are right it just dont work

#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", "", $oIE , "left", 1, 337, 399)
    EndSelect
WEnd

GUIDelete()

Exit

Thanks

Link to comment
Share on other sites

  • Developers

How did you come to the conclusion that you need to use the IE session handle as the Control for ControlClick?

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

  • Developers

Edit: Jos that's two topics now, you beat me on this one though.

The other one didn't have anything to do with "being faster"... just needed to "make a point" in that one. :)

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

You have ControlClick("Runecape Nbot", "", $oIE , "left", 1, 337, 399)

The third element is the controlID

you have $oIE = _IECreateEmbedded ()

Edit: Yes Jos but we did say basically the same thing in a round about way.

Edited by youknowwho4eva

Giggity

Link to comment
Share on other sites

  • Developers

what?i dont get what u meen

c'mon ashley... you are not trying at all.

You have been around long enough to know you need to do some reseach first before posting questions, but seems to resort to these type of posts over and over again.

Edited by 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

  • Developers

should it be SunAwtCanvas?

Ashley,

Look at all the _IE functions and all its examples.

Figure out what to do and play with them.

Come back when you have something to show.

Jos

Edited by 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

  • Developers

I have just pointed you in the right direction... the ball is in your court.

click

Edited by 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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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