BALA Posted December 11, 2006 Posted December 11, 2006 I'm creating a program to record the positions of the mouse clicks of a user. Since I don't know how many times the user will click, I'm planning on using an array. Could someone tell me how I could do this with an array since I have no experience with arrays. [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
xcal Posted December 11, 2006 Posted December 11, 2006 (edited) HotKeySet('{esc}', 'quit') HotKeySet('{F2}', 'wherethehellismymouse') While 1 Sleep(100) WEnd Func wherethehellismymouse() $pos = MouseGetPos() MsgBox(0, '', $pos[0] & ',' & $pos[1]) ;array is here. Like the help file says [0] is x, and [1] is y. EndFunc Func quit() Exit EndFunc edit - Oh, and to detect the press, look up _IsPressed. Also, I'd be careful where you're going with this... Edited December 11, 2006 by xcal How To Ask Questions The Smart Way
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