Posts: 60
Threads: 24
Joined: Jan 2008
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
Posts: 1,769
Threads: 410
Joined: Feb 2003
yep.
do this
Acc a=acc("Click here to create an account" "TEXT" "YahooLogin" "id=0" "" 0x1801 0x40 0x20000040)
a.DoDefaultAction
err
clo "Yahoo"
Posts: 60
Threads: 24
Joined: Jan 2008
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
Posts: 1,769
Threads: 410
Joined: Feb 2003
you have to indent the stuff you want the macro to do if there's an error.
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
Posts: 60
Threads: 24
Joined: Jan 2008
Wow thanks for the quick reply bro!
i will go try now
Posts: 60
Threads: 24
Joined: Jan 2008
Ok bro just tried it.
Worked great!
just what i needed.
Thanks again!