boogieoompa Posted May 21, 2008 Share 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 Link to comment Share on other sites More sharing options...
evilertoaster Posted May 21, 2008 Share 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. Link to comment Share on other sites More sharing options...
boogieoompa Posted May 22, 2008 Author Share 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 Link to comment Share on other sites More sharing options...
boogieoompa Posted May 23, 2008 Author Share Posted May 23, 2008 bump Link to comment Share on other sites More sharing options...
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