0
I have to open a program named "EDI Tracker.exe" and browse for an excel file"867_CCM.xls" and press enter and wait for the program to process the excel file. The processing time may differ based upon size of the file. Then after the processing is finished a message box with title "Result" will pop up saying "Congratulations! No Failure found". As this message box appears I will print screen and email the screen shot in outlook along with the excel attachment. The point is this is my daily routine and I want to automate it. So I am using AHK. Below is my script so far
Run, open "C:\Program Files\EDI867 Tracer\EDITracker.exe"
sleep, 1500
MouseClick, left, 1299, 85
Send, "867_CCM.xls
Send {Enter}
Return
Now I want the script to wait until the message box appears and as soon as it appears I want to do print screen and email the screenshot and the excel file mentioned above as an attachment to specific people.
P.S: I always keep the excel file in my desktop.
1
Try using
– AEonAX – 2015-09-07T03:49:40.563WinWait