New to Macro and need some help.

Post here your macros, QM projects, solutions, etc.

New to Macro and need some help.

Postby kamilos09 on Sun Nov 19, 2017 9:41 am

Hi i want to create a simple macro with actions
Code: Select all
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

Warning: The code possibly is invalid because some important characters (tabs, spaces) disappeared. Read more.
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.
kamilos09
 
Posts: 2
Joined: Sun Nov 19, 2017 9:32 am

Re: New to Macro and need some help.

Postby Gintaras on Sun Nov 19, 2017 11:14 am

Macro Macro2917     ?
int ht=mac("action 1")
wait 60
EndThread "" ht

Gintaras
Site Admin
 
Posts: 10411
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania

Re: New to Macro and need some help.

Postby kamilos09 on Sun Nov 19, 2017 12:24 pm

Thanks. It Works!
kamilos09
 
Posts: 2
Joined: Sun Nov 19, 2017 9:32 am


Return to My QM

Who is online

Users browsing this forum: No registered users and 1 guest