n9mfk9 Posted June 28, 2006 Share Posted June 28, 2006 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 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 28, 2006 Moderators Share Posted June 28, 2006 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 beauYour 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. Link to comment Share on other sites More sharing options...
BigDod Posted June 28, 2006 Share Posted June 28, 2006 (edited) Try $Mouse1x="304" $Mouse1Y="199" MouseClick("Left", $Mouse1x , $Mouse1y ) Edit - Too slow at typing Edited June 28, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now