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?
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! Thanks!
http://bytes.com/topic/net/answers/642229-vb-net-sendkeys