tphant0m Posted June 11, 2008 Share Posted June 11, 2008 Hi, Im trying to have AutoIT run a function when it detects a 'Button Click' of a certain button on a certain application. I think i need to be using the PeekMessage() Function from the Win32API to to the thread message queue and look for messages from WM_MOUSEFIRST to WM_MOUSE last to pick up all mouse events, then loop thru those and try figure out which is a click, then work out if the click was on the button. However im hoping for something easier or even an example on how to read messages and events occurring in non AutoIT windows. Any suggestions? Link to comment Share on other sites More sharing options...
blurb Posted June 11, 2008 Share Posted June 11, 2008 I too have been searching for a way to grab that mouse click and determine what window it was in and what button was pressedTake a look at http://www.autoitscript.com/forum/index.ph...&hl=Au3Info The macrobuilding scripts may be a avenue to look at.It looks promising but i was hoping for a non DLL way of doing what you want to do. Link to comment Share on other sites More sharing options...
LarryDalooza Posted June 11, 2008 Share Posted June 11, 2008 search the forum for WH_MOUSE_LL Lar. AutoIt has helped make me wealthy 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