Link to home
Start Free TrialLog in
Avatar of TedgCl
TedgCl

asked on

Programming Help - vb.net/C# app to click in another application window using Win API or sendmessage

I have to install a package on a bunch of machines and the package takes forever to install (45+ min).  To make matters worse it pops up with a continue box about every 5 min during the install forcing you to sit around and hit continue.

I want to write a simple program that clicks continue for me so I can automate the install process.  In VB 6 I use to use sendmessage but I can't seem to figure it out in vb.net

Example program structure of what I would like to write:
For each window in openWindowCollection
    If window.title = "Install Window" then
        Window.Sendmessage("Click Continue")
      end if
Next
Sleep()

Can someone help me out with this please?
Avatar of Hitesh Manglani
Hitesh Manglani
Flag of India image

Avatar of TedgCl
TedgCl

ASKER

What do I use to scan what windows are open to check to see if the "Continue' window is open?  How do I get that window handle?  How do I pass that handle to sendkeys?
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TedgCl

ASKER

Perfect!  Thanks!