02-23-2012, 01:56 AM
Below is a simple macro to close an annoying notice board that pops up every now and then. I can't figure out why the "Window doesn't exist" line is never reached. I've tried different syntaxes, with and without the ;, err, err+, I just can't get the macro not to quit on me after the object isn't found. What am I doing wrong?
I
When I first wrote this, the line read if(!a.a) ret, and that worked fine. But now I want to do that stuff if the object doesn't exist.
Please forgive my ignorance, I'm still very new at this.
DC
I
Acc a=acc("" "CLIENT" win("SpeechQ Report Station" "WindowsForms10.Window.8.app.0.33c0d9d") "" "")
if(!a.a); err+
out("Window doesn't exist")
else
lef 2209 1785
When I first wrote this, the line read if(!a.a) ret, and that worked fine. But now I want to do that stuff if the object doesn't exist.
Please forgive my ignorance, I'm still very new at this.
DC