SetRepeat
Sets the Repeat property of the macro
Declarations:
VC++
long
SetRepeat (_bstr_t pFileName, long pRepeatType, long pRepeatTimes, long
pRepeatHour, long pRepeatMin, long pRepeatSec,long pWaitSec,long pWaitMin, long
pContinueonError );
VISUAL
BASIC:
SetRepeat (ByVal pFileName As String, ByVal pRepeatType As Long, Optional ByVal
pRepeatTimes As Long, Optional ByVal pRepeatHour As Long, Optional ByVal
pRepeatMin As Long, Optional ByVal pRepeatSec As Long, Optional ByVal pWaitSec
As Long, Optional ByVal pWaitMin As Long, Optional ByVal pContinueonError As
Long) As Long
Parameters:
-
pFileName:
The filename with complete path for which you want to set the Repeat property.
-
pRepeatType: Can have any one of the
values specified below
-
0:
Do not repeat
-
1:
Repeat for ‘n’ times
-
2:
Repeat until I stop (While playing of the macro, when Esc key is pressed the
playing of the Macro will be stopped.)
-
3:
Repeat for hh:mm:ss time
-
pRepeatTimes:
No of times, the macro has to be repeated. The Maximum limit for repeat is
32000 times. Specify value for this parameter only if pRepeatType is 1.
-
pRepeatHour: No. of Hours the macro has to be
repeated. The Maximum hour for which a macro can be repeated is 99. Specify
value for this parameter only if pRepeatType is 3.
-
pRepeatMin:
No. of minutes the macro has to be
repeated. The maximum minute for which a macro can be repeated is 59.
Specify value for this parameter only if pRepeatType is 3.
-
pRepeatSec: No. of seconds the macro has to
be repeated. The maximum seconds for which a macro can be repeated is 59.
Specify value for this parameter only if pRepeatType is 3.
-
pWaitSec: No. of seconds to wait before
continuing with the next repeat. The maximum seconds to wait is 59. Specify
value for this parameter only if pRepeatType is not 0
-
pWaitMin: No. of minutes to wait before
continuing with the next repeat. The maximum minutes to wait is 1440.
Specify value for this parameter only if pRepeatType is not 0
-
pContinueOnError:
Can have any one of the values specified below
-
0:
If an error occurs during the play of macro then don’t continue with the
next repeat. Specify value for this parameter only if pRepeatType is not 0.
- 1:
If an error occurs during the play of macro then continue with the next
repeat. Specify value for this parameter only if pRepeatType is not 0
Return Value:
Returns 1 if there is any kind of failure, or 0 if successful.