View Full Version : GET STATUS of a TASK or RUNNING APPLICATION
ronwilliams
05-28-2009, 11:38 AM
My first question did not get any response, so I thought I would rephrase the question.
If an launched application crashed the STATUS under Windows Task Manager turns from Running to Aborted. Is there any way I can have AMS see this?
Hope this is clearer.
Thanks
(Awaiting anxiously)
MicroByte
05-29-2009, 07:59 AM
My first question did not get any response, so I thought I would rephrase the question.
you mean the one you asked 2 hours before this one ?
anyways, a simple soultion to your problem would be to use AMSWaves super AutoIT plugin
Test
On Show
result = File.Run(_WindowsFolder.."\\notepad.exe", "", "", SW_SHOWNORMAL, false);
AutoIt.WinWaitActive("Untitled - Notepad", "", 10)
if AutoIt.WinActive("Untitled - Notepad","") == 0 then
Dialog.Message("Error","Window Not Active")
else
Page.StartTimer(500)
end
On Timer
if AutoIt.WinActive("Untitled - Notepad","") == 0 then
Page.StopTimer()
Dialog.Message("Error","Window Not Active")
end
not very pretty but it works
ronwilliams
05-29-2009, 03:09 PM
Sorry for posting the same question twice in such a short period! I was just in such a hurry, because I had to deliver a presentation today and I was completely freaked out at the idea that the application launched from AMS would crash while presenting!!
Thank God it went smoothly.....
Thanks for the great reply, I will try and add it to my program to be safe for the next presentation.
Thanks again!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.