Jump to content
Sign in to follow this  
AzKay

MouseClick at certain co-ordinates in a client

Recommended Posts

Heres my code

Dim $i=0
$number= Inputbox("How Much?", "Input your number here")
If Int($number) then
While $i< $number
WinActivate("Dofus")
MouseClick("left", 608, 235, 1)
Sleep(2000)
MouseClick("left", 613, 268, 1)
Sleep(5000)
$i = $i+1
Wend
Else
Msgbox(0, "Number", "You MUST enter a Number")
Endif
Exit

Here is the AutoIt info box

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  Dofus  
Class:  ShockwaveFlash
Size:   X: 252  Y: 96   W: 760  H: 612

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Client: X: 613  Y: 268
Cursor ID:  0

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0xFF6600   Dec: 16737792

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:
Control ID:
ClassNameNN:
Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<


>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

So, i need it to

Currently, its not clicking where i want it too, its clicking at the co-ordinates but as "Full screen" but i want it to click at the co-ordinates in the client.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Try putting this at top of script

Opt("MouseCoordMode", 2)


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Try putting this at top of script

Opt("MouseCoordMode", 2)
thanks

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...