boogieoompa Posted May 21, 2008 Posted May 21, 2008 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
evilertoaster Posted May 21, 2008 Posted May 21, 2008 You can fire the event with a window hook using GUISetOnEvent() or GUIRegisterMsg() with a WM_MOUSEXXX code. Or globably using the 'mousehook' UDF.
boogieoompa Posted May 22, 2008 Author Posted May 22, 2008 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
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