02-13-2009, 07:26 AM
Run the first macro. After it has completed its tasks, you can use what is listed below.
mac "macro/function" "win";; runs macro or funtion in a specific window. Window is optional.
break; mac "macro/function" "win;; breaks rep tab and runs next specified macro or function. Window is optional.
If you are using a function you will want to use ret to return value or end to... well, end it properly.
example:
Macro1
Macro2
Macro3
Macro1 running...
================
spe -1
rep
,2.5
,if(IsWindow("window name" "class"))
,,break; mac "Macro2" "window name";; run macro2 and break repeat on macro1
Macro2 running...
================
spe -1
rep
,2.5
,if(IsWindow("window name" "class"))
,,break; mac "Macro3" "window name";; run macro3 and break repeat on macro2
mac "macro/function" "win";; runs macro or funtion in a specific window. Window is optional.
break; mac "macro/function" "win;; breaks rep tab and runs next specified macro or function. Window is optional.
If you are using a function you will want to use ret to return value or end to... well, end it properly.
example:
Macro1
Macro2
Macro3
Macro1 running...
================
spe -1
rep
,2.5
,if(IsWindow("window name" "class"))
,,break; mac "Macro2" "window name";; run macro2 and break repeat on macro1
Macro2 running...
================
spe -1
rep
,2.5
,if(IsWindow("window name" "class"))
,,break; mac "Macro3" "window name";; run macro3 and break repeat on macro2