Results 1 to 2 of 2

Thread: External Checkbox?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    130

    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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width