Jump to content
Sign in to follow this  

Help with Arrays

Recommended Posts

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

Share this post

Link to post
Share on other sites

HotKeySet('{esc}', 'quit')
HotKeySet('{F2}', 'wherethehellismymouse')

While 1

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.

Func quit()

edit - Oh, and to detect the press, look up _IsPressed. Also, I'd be careful where you're going with this...

Edited by xcal

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...