konani Posted April 20, 2010 Posted April 20, 2010 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,
somdcomputerguy Posted April 20, 2010 Posted April 20, 2010 ControlClick might work for you. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
konani Posted April 21, 2010 Author Posted April 21, 2010 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.
somdcomputerguy Posted April 21, 2010 Posted April 21, 2010 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.
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