Could some very nice help me?J'd like to create task like this:1. use key stroke Clrl+N2. paste value: [sound:1.mp3]3. use key stroke Clrl+N4. paste value: [sound:2.mp3]5. use key stroke Clrl+N
6. paste value: [sound:3.mp3]7. use key stroke Clrl+N
8. paste value: [sound:4.mp3]etc up to 17 000J will be really grateful to some one that help meragards
create task
create task
Last edited by Xomos on Sat Dec 17, 2011 2:57 pm, edited 1 time in total.
create task
You should use the loop in your task.
See two examples with Text Loop and Simple Loop below:
Example #1:
Example #2:
See two examples with Text Loop and Simple Loop below:
Example #1:
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|125880069
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task1128"
Hide=INTEGER|0
ID=INTEGER|437735173
LocalVariables=STRING|"cline"
LogOnAsUser=INTEGER|1
Name=STRING|"Send keystrokes in the loop #1"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
[Actions\Action1\Params]
destvar=STRING|"CLINE"
line0=STRING|"[sound:1.mp3]"
line1=STRING|"[sound:2.mp3]"
line2=STRING|"[sound:3.mp3]"
line3=STRING|"[sound:4.mp3]"
line4=STRING|"[sound:5.mp3]"
line5=STRING|"[sound:6.mp3]"
line6=STRING|"[sound:7.mp3]"
linecount=STRING|"7"
sourcetext=STRING|"1"
[Actions\Action2]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action2\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"^(N)"
pause=STRING|"20"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action3]
ActionID=STRING|"A_CLIPBOARD_PUT"
Enabled=INTEGER|-1
Name=STRING|"Put Text"
Params=FOLDER
[Actions\Action3\Params]
line0=STRING|"{cline}"
linecount=STRING|"1"
sourcetext=STRING|"1"
[Actions\Action4]
ActionID=STRING|"A_CLIPBOARD_PASTE"
Enabled=INTEGER|-1
Name=STRING|"Paste"
Params=FOLDER
[Actions\Action4\Params]
mode=STRING|"1"
[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|125880069
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task1129"
Hide=INTEGER|0
ID=INTEGER|1396995068
LocalVariables=STRING|"cline,num"
LogOnAsUser=INTEGER|1
Name=STRING|"Send keystrokes in the loop #2"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOOP_SIMPLE"
Enabled=INTEGER|-1
Name=STRING|"Simple Loop"
Params=FOLDER
[Actions\Action1\Params]
begin=STRING|"1"
end=STRING|"100"
variable=STRING|"NUM"
[Actions\Action2]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action2\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"^(N)"
pause=STRING|"20"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Actions\Action3]
ActionID=STRING|"A_CLIPBOARD_PUT"
Enabled=INTEGER|-1
Name=STRING|"Put Text"
Params=FOLDER
[Actions\Action3\Params]
line0=STRING|"[sound:{num}.mp3]"
linecount=STRING|"1"
sourcetext=STRING|"1"
[Actions\Action4]
ActionID=STRING|"A_CLIPBOARD_PASTE"
Enabled=INTEGER|-1
Name=STRING|"Paste"
Params=FOLDER
[Actions\Action4\Params]
mode=STRING|"1"
[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
Last edited by Oleg on Sat Dec 17, 2011 5:23 pm, edited 1 time in total.
create task
thank You very much for your effort, but J don't know where should paste this script above?Could you export those scripts to "task file" and J just import them ?Also J'd like to know if script above paste at end [sound:17000.mp3] (after repeating itself 17000 times) ?once again thank you
Last edited by Xomos on Sat Dec 17, 2011 5:18 pm, edited 1 time in total.
create task
Save the text of script as simple text file and use menu Task->Import in order to import into RoboTask.
Next, you can see and edit imported task in task editor.
Next, you can see and edit imported task in task editor.
create task
Thank You for support everything work like J wanted.Merry Christmas !