Jump to content
Sign in to follow this  
ashley

Control Click

Recommended Posts

ashley

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

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
youknowwho4eva

The controlID is _IECreateEmbedded ()?

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

Edited by youknowwho4eva

Giggity

Share this post


Link to post
Share on other sites
Jos

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. :)

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
youknowwho4eva

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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
youknowwho4eva

What ever the controlID of the control your trying to click. Use the autoit window info tool.

Edit: yea I thought it was kinda a basic question for having 1,024 posts.

Edited by youknowwho4eva

Giggity

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Jos

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

click

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
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.