Morning everyone! I use the below code to launch a call center program...programatically. I'm using a delay (versus a threading.sleep) and it works fine, but what i would rather do is a (wait until program loads, then execute the rest of my function).
If cbNJ.Checked Then
System.Diagnostics.Process.Start("C:\Scripts\Agent Group Occupancy - SD_NJ.acsup")
delay(8000)
AppActivate("Avaya CMS Supervisor")
I'd rather have:
If cbNJ.Checked Then
System.Diagnostics.Process.Start("C:\Scripts\Agent Group Occupancy - SD_NJ.acsup")
'delay(8000)
Wait for prior instruction to complete then continue to next line...
AppActivate("Avaya CMS Supervisor")
How can i invoke wait for instruction to complete before continuing?