12-11-2007, 06:32 PM
Hi Gintaras,
An application dialog from the application has two PUSHBUTTON choices (Yes and No)
and
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
An application dialog from the application has two PUSHBUTTON choices (Yes and No)
Acc a=acc("Yes" "PUSHBUTTON" win("SampleApp" "#32770") "Button" "" 0x1001)
,a.DoDefaultAction
and
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