Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
on error ?
#1
can some 1 help me ?
how do i set the error to close windows and restart macro ?
wait 0 C ??? ??? ???
err
#2
err make a code block in much the same way that 'if' statement do.
i'm not sure how to close all windows in a quick simple way but here's how to get the error block setup.

Code:
Copy      Help
do something here
err
,do more things here
,and then some more
,still more things

heres how to get a list of all the visible windows. you can apply the 'clo' command to each however you wish but don't do it to 'Program Manager'; i think that shutsdown windows.

Code:
Copy      Help
ARRAY(int) a; int i; str sc sn
out "[][9]ALL VISIBLE WINDOWS"
win("" "" "" 0 0 0 a)
for(i 0 a.len)
,sc.getwinclass(a[i])
,sn.getwintext(a[i])
,out "%i '%s' '%s'" a[i] sc sn
A new blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)