GetRepeat
Retrieves
the Repeat property of the macro
Declarations:
VC++
long
GetRepeat (_bstr_t pFileName, long * pRepeatType, long * pRepeatTimes, long *
pRepeatHour, long * pRepeatMin, long * pRepeatSec, long * pWaitSec, long *
pWaitMin, long * pContinueonError );
VISUAL
BASIC:
GetRepeat(ByVal pFileName As String, ByRef pRepeatType As Long, ByRef
pRepeatTimes As Long, ByRef pRepeatHour As Long, pRepeatMin As Long, ByRef
pRepeatSec As Long, ByRef pWaitSec As Long, ByRef pWaitMin As Long, ByRef
pContinueonError As Long) As Long
Parameters:
-
pFileName:
The filename with complete path for which you want to retrieve the Repeat
property.
-
pRepeatType: Will return one of the
following values
-
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 stoped.)
-
3:
Repeat for hh:mm:ss time
-
pRepeatTimes:
Returns the No. of times, the macro has to be repeated.
-
pRepeatHour: Returns the No. of Hours the
macro has to be repeated.
-
pRepeatMin: Returns the No. of minutes the
macro has to be repeated.
-
pRepeatSec: Returns the No. of seconds the
macro has to be repeated.
-
pWaitSec: Returns the No. of seconds to
wait before continuing with the next repeat.
-
pWaitMin:
Returns the No. of minutes to wait before continuing with the next repeat.
-
pContinueOnError:
Will return on of the following values
- 0:
If an error occurs during the play of macro then don’t continue with the
next repeat.
- 1:
If an error occurs during the play of macro then continue with the next
repeat.
Return
Value:
Returns 1
if there is any kind of failure, or 0 if successful.