Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Wait Statements -for Childwindow and for Acc
#4
I tried to do the same thing but instead of a child window the Acc event but it didn't work....

Code:
Copy      Help
Acc a=acc("Are you sure you want to sign this report?" "STATICTEXT" win("SampleApp" "#32770") "Static" "" 0x1001 0 0 "" 5)
if(a.a)
,mes "found it"
if(!a.a)
,mes "didn't find it in time"
,ret

It won't wait the 5 seconds for it to show up but immediately throws the error for not finding the object. It does work if it already on the screen when the macro is run.

I think my problem this time is syntax but I was so impressed how you wrote that function for the previuos question!!!
Thanks!!!!
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)