Jump to content
Sign in to follow this  
boogieoompa

Mouse drag event

Recommended Posts

boogieoompa

I must be blind but I cant find a way to moitor mose movements to initiate a function. Aka if mouse is clicked and draged in a particular app initiate function x.

I think I can do this manually but it would require a lot of scripting and cpu resources cause i will be manually checking the mouse every x MS. Is there an easier/cleaner way?

Thanks

Share this post


Link to post
Share on other sites
evilertoaster

You can fire the event with a window hook using GUISetOnEvent() or GUIRegisterMsg() with a WM_MOUSEXXX code. Or globably using the 'mousehook' UDF.

Share this post


Link to post
Share on other sites
boogieoompa

But doesnt the application need to have been created in Autoit for that to work (since I have no winhandle)? And I cant find anything in the help file concerning the other 2 functions. But I could be missing something (infact pretty sure I am).

Ben

Share this post


Link to post
Share on other sites
boogieoompa

bump

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  

×