how to make a macros to be repeated?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
mehdox
Newbie
Posts: 1
Joined: Wed Oct 24, 2012 8:09 pm

how to make a macros to be repeated?

Post by mehdox » Wed Oct 24, 2012 8:24 pm

i made this macros , i dont know how to make it reapeted?
thx for help

// C:\Documents and Settings\Administrateur\Mes documents\Macro Scheduler 13\rrrrrrrrrr.scp
// Recorded on mercredi, octobre 24, 2012, at 09:53 PM

//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>531,715
Wait>1.68
LClick
WaitWindowOpen>Microsoft Excel - fusion.xlsx
MoveWindow>Microsoft Excel - fusion.xlsx,-14,-14
ResizeWindow>Microsoft Excel - fusion.xlsx,1052,696
Wait>0.16
MouseMove>479,379
Wait>1.28
Press LCTRL
Wait>0.44
Send>f
WaitWindowOpen>Rechercher et remplacer
MoveWindow>Rechercher et remplacer,0,180
ResizeWindow>Rechercher et remplacer,642,253
Wait>0.13
Release LCTRL
Wait>0.8
Send>langue
Wait>0.17
MouseMove>469,407
Wait>1.46
LClick
Wait>0.75
MouseMove>435,467
Wait>2.38
Press Right
Wait>0.52
MouseMove>403,451
Wait>3.32
LDown
WaitWindowOpen>Microsoft Excel - fusion.xlsx
MoveWindow>Microsoft Excel - fusion.xlsx,-14,-14
ResizeWindow>Microsoft Excel - fusion.xlsx,1052,696
Wait>0.13
LUp
Wait>0.81
Press Right
Wait>1.5
Send>Français
Wait>2.49
Press Enter
Wait>1.26
MouseMove>449,381
Wait>1.35
LDown
WaitWindowOpen>Rechercher et remplacer
MoveWindow>Rechercher et remplacer,0,158
ResizeWindow>Rechercher et remplacer,642,253
Wait>0.14
LUp
Wait>7.34
MouseMove>881,691
Wait>7.12999999999997
RClick
Wait>0.52
MouseMove>817,551
Wait>0.54

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Wed Oct 24, 2012 11:18 pm

Is this what you want? Please read my remark above Let>TimesToRepeat=15

Code: Select all

// C:\Documents and Settings\Administrateur\Mes documents\Macro Scheduler 13\rrrrrrrrrr.scp
// Recorded on mercredi, octobre 24, 2012, at 09:53 PM
//Recorded Events

/*
Set TimesToRepeat to the number of times you want
to repeat your script. Set it to 0 (zero) to repeat indefinitely.
*/
Let>TimesToRepeat=15

Let>RepeatCounter=0
Repeat>RepeatCounter
Add>RepeatCounter,1

Let>WW_TIMEOUT=5
CapsOff
MouseMove>531,715
Wait>1.68
LClick
WaitWindowOpen>Microsoft Excel - fusion.xlsx
MoveWindow>Microsoft Excel - fusion.xlsx,-14,-14
ResizeWindow>Microsoft Excel - fusion.xlsx,1052,696
Wait>0.16
MouseMove>479,379
Wait>1.28
Press LCTRL
Wait>0.44
Send>f
WaitWindowOpen>Rechercher et remplacer
MoveWindow>Rechercher et remplacer,0,180
ResizeWindow>Rechercher et remplacer,642,253
Wait>0.13
Release LCTRL
Wait>0.8
Send>langue
Wait>0.17
MouseMove>469,407
Wait>1.46
LClick
Wait>0.75
MouseMove>435,467
Wait>2.38
Press Right
Wait>0.52
MouseMove>403,451
Wait>3.32
LDown
WaitWindowOpen>Microsoft Excel - fusion.xlsx
MoveWindow>Microsoft Excel - fusion.xlsx,-14,-14
ResizeWindow>Microsoft Excel - fusion.xlsx,1052,696
Wait>0.13
LUp
Wait>0.81
Press Right
Wait>1.5
Send>Français
Wait>2.49
Press Enter
Wait>1.26
MouseMove>449,381
Wait>1.35
LDown
WaitWindowOpen>Rechercher et remplacer
MoveWindow>Rechercher et remplacer,0,158
ResizeWindow>Rechercher et remplacer,642,253
Wait>0.14
LUp
Wait>7.34
MouseMove>881,691
Wait>7.12999999999997
RClick
Wait>0.52
MouseMove>817,551
Wait>0.54

Until>RepeatCounter=TimesToRepeat

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Tue Nov 27, 2012 5:41 am

if you want it to be an infinite loops /repeate forever
use this

Code: Select all

label>start

//rest of code here//


goto>start

if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts