Sign in to follow this  
Followers 0
konani

Mouse click in inactivate window (mouse hook)

4 posts in this topic

Hi all,

I want to click a button in inactivate window (I wont activate this window because I'm working in another window), it like use mouse hook. How to do this? Please help me!

Thanks in advance,

Share this post


Link to post
Share on other sites



ControlClick might work for you.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

ControlClick might work for you.

Thanks, but you forget that we must activate a window before using ControlClick(). See more in function remarks:

Some controls will resist clicking unless they are the active window. Use the WinActivate() function to force the control's window to the top before using ControlClick().

Using 2 for the number of clicks will send a double-click message to the control - this can even be used to launch programs from an explorer control!

If the user has swapped the left and right mouse buttons in the control panel, then the behaviour of the buttons is different. "Left" and "right" always click those buttons, whether the buttons are swapped or not. The "primary" or "main" button will be the main click, whether or not the buttons are swapped. The "secondary" or "menu" buttons will usually bring up the context menu, whether the buttons are swapped or not.

Share this post


Link to post
Share on other sites

Some doesn't always mean all.. So maybe you musn't, but maybe you must. Try ControlFocus out, that might work for you too.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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