|
-
Jun 27th, 2010, 10:32 PM
#1
Thread Starter
Addicted Member
External Checkbox?
hey
is it possible to find external window's checkbox and tick \ untick it?
like if the title is
Checkboxtest
and the checkbox text is
CheckBox1Test
how can i tick CheckBox1Test (which is seperate file) through my software
-
Jun 27th, 2010, 10:57 PM
#2
Re: External Checkbox?
If you want to manipulate an external application you would normally use the Windows API. In this case you would call FindWindow to get the top-level window of the app, then call FindWindowEx one or more times to get the desired child window, then call SendMessage or PostMessage to send the desired message.
You can use tools like Spy++, WinID and Winspector to get information about windows and the messages they receive, so you would have to what top-level window to get and where your desired child window is in its window tree so you know how to call FindWindow and FindWindowEx. You can then monitor the messages it receives as you perform the action you want to emulate so that you know how to call SendMessage or PostMessage.
I would suggest that you spend some time experimenting with those tools and also look for examples of those API functions online as there will be plenty.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|