BALA Posted December 11, 2006 Posted December 11, 2006 (edited) I'm making a program that records the mouse clicks of the user, then plays it for them. Right now I've been stuck on how to record all those positions. I already know how to get the position of one, but I can't figure out a way to record each individual one so it can be played back in that order. I can create an individual variable for each click, but since I don't know how many times the user's gonna click, to limit him to a certain amount isn't quite what I had in mind. If there is a way, perhaps with arrays or a variable in the variable name, please post. If AutoIt can't handle it, please also post. You can also contact me at: shadowmailliw@aim.com Edited December 11, 2006 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
The Kandie Man Posted December 11, 2006 Posted December 11, 2006 (edited) Use _Ispressed(01) to get left mouse button clicks. When it detects a click, have it go to a separate function that logs the click to an array variable. You said you don't know how many variables you need, that is what an array is for. An array is basically a single variable that can store millions of different values in it that a normal non-array variables would store. Use Redim to resize to array to make it larger each time the mouse button is clicked. You could then store the position in one element of the array, and various other data in other elements of the array. Hope that helps. Edited December 11, 2006 by The Kandie Man "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire
BALA Posted December 11, 2006 Author Posted December 11, 2006 Thanks, that helps, and also for a quick reply [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
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