Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if Object Not Found?
#1
Say i'm using Accessible objects. and the object wasn't found...
anyway of using if or something?
like...
Acc a=acc("Click here to create an account" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
a.DoDefaultAction
if..ObjectNotFound..
clo "Yahoo"

Thanks Guys Big Grin
#2
yep.

do this

Acc a=acc("Click here to create an account" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
a.DoDefaultAction
err
clo "Yahoo"
An old blog on QM coding and automation.

The Macro Hook
#3
Ok bro.
I had to change it to this. but errored.

Acc a=acc("Click here to create an account" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
a.DoDefaultAction
err
Acc b=acc("Close this window" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
b.DoDefaultAction

Anyway round this bro :?:
because i just get..
Error (RT) in TYLERS_Yahoo_1: object not found

Thanks Big Grin
#4
you have to indent the stuff you want the macro to do if there's an error.


Code:
Copy      Help
Acc a=acc("Click here to create an account" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
a.DoDefaultAction
err
,clo ;;add window info here
Acc b=acc("Close this window" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
b.DoDefaultAction
err
,clo ;;add window info here
An old blog on QM coding and automation.

The Macro Hook
#5
Wow thanks for the quick reply bro!
i will go try now Big Grin
#6
Ok bro just tried it.
Worked great!
just what i needed.
Thanks again! Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)