Sign in to follow this  
Followers 0
alex OF DEATH

Checking if the mouse moved?

3 posts in this topic

Currently, I'm using two Mousegetpos() 's, then doing this:

If mousegetpos()1 not = mousegetpos()2 then BARRELROLL()

But this doesn't work. I didn't expect it to at all.

I put one of them into a while 1 = 1 loop, so one is constantly changing, and the other is read once, but this does not work because (I would think) When it goes over the If then statement, it checks (updates) them both, so they're both the same again.

I thought about throwing the first coordinate into a .INI that will delete itself, so it reads from there and doesn't change, but I don't want to do that.

All I need is the Original mouse coordinate to check with the current mouse coordinate, and if theres a difference, do the function I specify.

I'm in need of halp, even though this is probably a very simple problem to fix. I just can't figure out a way to do it.


Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Thank you sir, I just got pelted with three little rockets, because I forgot to add the hotkey to disable it.

Now, if anyone touches my computer, this thing will attack them :whistle:

Now to figure out how to send a key to a specific window.

Edited by alex OF DEATH

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  
Followers 0