Jump to content
Sign in to follow this  
n9mfk9

mousecilk?

Recommended Posts

hi all what did i do wrong here

$Mouse1= "304,199"

MouseClick("left",$Mouse1)

I went to use a variable for the x y but what did

what did i do wrong thanks beau

Share this post


Link to post
Share on other sites

hi all what did i do wrong here

$Mouse1= "304,199"

MouseClick("left",$Mouse1)

I went to use a variable for the x y but what did

what did i do wrong thanks beau

Your trying to use a string for both x and y in the "x" parameter only.

Local $MouseX1 = 304, $MouseY1 = 199
MouseClick('left', $MouseX1, $MouseY1)

Or Make an array:

$Mouse1 = StringSplit('304,199', ',')
MouseClick('left', $Mouse1[1], $Mouse[2])

Or if using Beta:

Dim Mouse1[2] = [304,199]
MouseClick('left', $Mouse1[0], $Mouse1[1])
Or many other ways I'm sure.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Try

$Mouse1x="304"
$Mouse1Y="199"
MouseClick("Left", $Mouse1x , $Mouse1y )

Edit - Too slow at typing

Edited by BigDod


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

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  

×
×
  • Create New...