Forum Discussion
Hi,
Need some help with original code.
Original:
var w = p.Window("NativeHWNDHost", "Add or Remove Programs", 1);
var applicationWnd = w.FindChild("Caption", applicationName, 2);
if (!applicationWnd.Exists)
{
Log.Error("The " + applicationName + " was not found");
}else
{
while(4 > applicationWnd.ChildCount)
{
applicationWnd.Keys("[Down]");
applicationWnd.Refresh();
}
}....
I expected applicationWnd will hold the object of the application that I want to uninstall but how come the ChildCount will change after Key down and Refresh called?
while(4 > applicationWnd.ChildCount)
{
applicationWnd.Keys("[Down]");
applicationWnd.Refresh();
}
Thanks in advance.
Puyo
Related Content
- 5 months ago
- 4 years ago
Recent Discussions
- 11 hours ago