Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I restore a minimized app window?

Status
Not open for further replies.

n2jesus

Programmer
May 20, 2003
66
US
Hi all,

another question. I have a script copying data from one app to another. For some reason, when the app that info is pasted to is left minimized, the first line of data pasted is lost. If the app is just in the background it works fine. How do I restore an app window from the minimized state? Hopefully this will take care of the above mentioned problem.

Thanks,

Jim
 
I think window state needs to be done with API calls which VBScript hasnt got - I dont know of a COM wrapper for these APIs. You could try SendKeys "% R" '(alt-space R). Probably sleep for half a second too.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top