Sign in to follow this  
Followers 0
ashley

Control Click

13 posts in this topic

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



#3 ·  Posted (edited)

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

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

#6 ·  Posted (edited)

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

#8 ·  Posted (edited)

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

#9 ·  Posted (edited)

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

#11 ·  Posted (edited)

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

#13 ·  Posted (edited)

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  
Followers 0