Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to Macro and need some help.
#1
Hi i want to create a simple macro with actions
Code:
Select All      Help
opt save; opt slowkeys; opt slowmouse; spe 100
double F=1.0 ;;speed
int w1=act(win("application" "D3D Window"))
lef 488 374 w1 1; 0.90*F ;; 'app'
lef 426 285 w1 1; 0.57*F ;; 'app'
lef 434 285 w1 1; 1.39*F ;; 'app'
lef 517 367 w1 1 ;; 'app'
rep
    mac "action 1"  ;action 1 is in a loop and i call action 1 here want it to go for 1 minute
    wait 60
    mac-"action 1" ; this is supposed to stop action 1 loop but its not working
    wait 05
    'Y; 0.37*F      ;; Enter
    'text     ;; text
opt restore
#endregion
it works fine but the part with calling action 1 is screwed its not stoping once its started here and need some help on it. Thanks.
Reply
#2
Macro Macro2917
Code:
Select All      Help
int ht=mac("action 1")
wait 60
EndThread "" ht
Reply
#3
Thanks. It Works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)