amcasperforu Posted August 15, 2008 Share Posted August 15, 2008 Hi guys, I'm very new to AutoIt and would like to automate the task since its repetitive. Here's the details. We have a application that monitors a server and this executable is running on a DOS prompt... The tool needs so much attention since from time to time we have to press Enter key in order for it to continue. BUT the tool is not user-friendly and there's no statement saying "Press Enter Key". Again we have to monitor it and press the Enter key. So that's the first question I have. Next question that should be included in the script is that, afte the tool runs everything it needs to do the tool disappears (command prompt - DOS window). The question now how can I create a script knowing the window disappers (tool) so I can move to the next step after the tool disappear. Please help guys... Thank you in advance Regards, Casper Link to comment Share on other sites More sharing options...
Zedna Posted August 15, 2008 Share Posted August 15, 2008 1) Send("{Enter}") 2) WinWaitClose() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
amcasperforu Posted August 15, 2008 Author Share Posted August 15, 2008 1) Send("{Enter}")2) WinWaitClose()Does it mean I'll use a delay function just to have the correct timing to send the Enter key?Is there a function that reads some text in the command prompt then this will be the time I'll push the Send("{Enter}") ?Thanks!Regards,Casper Link to comment Share on other sites More sharing options...
2words4uready Posted August 15, 2008 Share Posted August 15, 2008 have you looked at the help file? Link to comment Share on other sites More sharing options...
Bert Posted August 15, 2008 Share Posted August 15, 2008 Does it mean I'll use a delay function just to have the correct timing to send the Enter key?Is there a function that reads some text in the command prompt then this will be the time I'll push the Send("{Enter}") ?Thanks!Regards,CasperYou may need to search the forum for how to interact with the command prompt. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
amcasperforu Posted August 16, 2008 Author Share Posted August 16, 2008 You may need to search the forum for how to interact with the command prompt.That is true, like I said Im a newbie and would appreciate if you could point me to those help files and resources on the net, I found one but looks but not sure if this one is the one your refering tohttp://www.autohotkey.com/docs/commands/WinWaitClose.htmThanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now