Sign in to follow this  
Followers 0
tphant0m

Catching Window Events From Other Applications

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



I too have been searching for a way to grab that mouse click and determine what window it was in and what button was pressed

Take 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.

Share this post


Link to post
Share on other sites

search the forum for WH_MOUSE_LL

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

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