Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for Pressing onscreen buttons (Yes or No) - case....
#1
Hi Gintaras,

An application dialog from the application has two PUSHBUTTON choices (Yes and No)

Code:
Copy      Help
Acc a=acc("Yes" "PUSHBUTTON" win("SampleApp" "#32770") "Button" "" 0x1001)
,a.DoDefaultAction

and

Code:
Copy      Help
Acc a=acc("No" "PUSHBUTTON" win("SampleApp" "#32770") "Button" "" 0x1001)
,a.DoDefaultAction

I would like to wait for one of those buttons to be pressed and if Yes do one thing and if No do another - In addition to letting the application do what it normally does with Yes and No.

i.e.

if Yes - means "Yes, sign report and exit", then I will write the QM code to wait for the next screen to come up and perform an action.
If No - means "don't exit, just stay in report" then I will end my macro with a ret.

Thanks,

Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)