Login | |
|
 |
Re: Closing a window (very basic newbie question) - 5/31/2001 12:48:08 AM
|
|
 |
|
| |
subnation
Posts: 20
Score: 0
Joined: 5/22/2001
From: USA
Status: offline
|
Thanks, This is just the kind of info that I have been looking for. I tried out the SendKeys function and it works (it closes pop up window and then later presses 'Stay Connected' button on the Auto Disconnect dialog). However, my solution is not very elegant due to the long wait states that I have to use. This is because I dont know how to do the following: a) Test for the pop up windows existance (make the script wait until window is has popped up and then send keys as soon as it is detected. (Maybe also make the pop up invisible so that wait state can be a bit longer but pop up wont be seen before it is closed). b) Specifically select the pop up window so that keys are not inadvertantly sent to another active window (how would you select the window to send keys to close it if it is hidden?). Can anybody tell me how to go about doing this please? It seems as if useful examples of code such as the one that Budmore has given me are very hard to find. All the examples I have seen are useless Hello World scripts or scripts that simple open a program (although no one tells you how to close it after its been run). Then they go from that straight into Active X control etc. etc. ! If anyone knows of a USEFUL beginners guide (ie properly commented real world code examples - not theoretical syntax examples) for such things as: Move, copy, rename, delete a file or folder Maximise, minimise, close, show, hide a window Select a window, set focus to various elements in that window and other such everyday function examples, I would be very, very grateful for any links that you provide. Cheers. :)
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|