Yesterday I asked for help, but surprisingly it is not available now. It seems my question is lost in cyberspace.
I have run into AutoIT couple of days ago. It is interesting to me as I keep on working to a MS Word file where I am to perform a number of repetitive actions of mouse clicks and keystrokes. I opened the file through following code
$MSWordPath= "D:\Program Files\Microsoft Office\Office12\WINWORD.EXE"
$parameter = ' "E:\Backup-required\Backup\KnowledgeManagementEbooks\MainDoc.docx"'
Run($MSWordPath & $parameter)
Afterwards, I need to send few keystrokes as ALT+w. I used
Send("!w")
Here comes my problem. As MainDoc.docx requires certain time to get open the keystrokes were lost. There can be a possible solution. A dialogue box may be inserted with an OK button to get manual pause. When OK button is clicked, the dialogue box may disappear and focus should shift to Word file. Will someone help me how to code it?