| || |
Multiple Screen Events
I have a code that recognize 2 screen events, my problem is how to recognize with of the two is ocurring, I want to be able to recognize each as I use to do with QARun.
Here is my code:
Dim monitor As TEventGroup
Dim condition As TScreenEvent
Set monitor = CreateTEventGroup("Event Monitor")
Set condition = ScreenEvent("Hello World Screen Event")
condition.AttachName = "Application=NOTEPAD.EXE TypeName=EditBox"
condition.Text = "Hello World"
Set condition2 = ScreenEvent("QARun Web Page")
condition2.AttachName = "http10232248qarun - Microsoft Internet Explorer IEWindow"
condition2.Text = "ACCESS GRANTED"
If monitor.Wait(3000) Then
<font color="red">I NEED TO RECOGNIZE HERE WHICH EVENT HAS BEEN TRIGGERED </font>
MsgBox "Hello World Screen Event fired!"
MsgBox "Timed out after 3 seconds"
Re: Multiple Screen Events
Is it possible to make condition* as whenever events? If yes, then in whenever event handler you can query what is the name of the event that fired.