12-11-2007, 06:28 PM
I tried to do the same thing but instead of a child window the Acc event but it didn't work....
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
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"
,retIt 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
