If / Then & the Question Dialouge box
Posted: Wed Sep 21, 2005 12:33 pm
Olga..
Thanks very, very much for the timely help, before..
I have another question..
I want to learn RoboTask as well as I can, but I'm leaving for Oregon in a few days, and mom (~75 yrs old) will be trying to use my computer while I'm gone for some simple text editing.
I've been trying to build an if/then propsition to operate on sub-tasks in my main routine..
1) question dialouge: "Would you like to see help?"
2) YES = RoboTask message box with help("wait for task to end")
3) Runs Notepad.exe, and rest of task.
2) NO = (skip message box with help)
3) Runs Notepad.exe, and rest of task.
I was trying to assign a Task Command to a variable, but maybe I'm just not understanding something..
Can Task Commands & Dialouges be assigned to variables?
I'm also trying to do this with enabling & disabling tasks, & may make some headway.
Are the "Loops & Flows" functions assignable to Task Commands?
That should do me for quite a while..
Thanks very much..
The two Tasks are pasted below, if that helps.
Peace!!
========
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1799483458
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task2"
Hide=INTEGER|0
ID=INTEGER|1196056737
Name=STRING|"Create"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_QUESTION"
Enabled=INTEGER|-1
Name=STRING|"Question Dialog"
Params=FOLDER
[Actions\Action1\Params]
abortif=STRING|"0"
action=STRING|"0"
autotime=STRING|"0"
buttons=STRING|"0"
message=STRING|"""Would you like to see help for Create?"""
time=STRING|"60"
[Actions\Action2]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""HELP CREATE"""
Params=FOLDER
[Actions\Action2\Params]
taskid=STRING|"1182713022"
wait=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""Editpart.exe"""
Params=FOLDER
[Actions\Action3\Params]
program=STRING|"C:\EDITPART\Editpart.exe"
runas=STRING|"0"
wait=STRING|"1"
workdir=STRING|"C:\My Documents"
[Actions\Action4]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"open file dialouge"
Params=FOLDER
[Actions\Action4\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"""{DELAY 600}^(N){DELAY 200}^(S)"""
sendkind=STRING|"0"
wincaption=STRING|"EditPartner v3.0"
==============
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1075053972
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task2"
Hide=INTEGER|0
ID=INTEGER|1196056737
Name=STRING|"1) Create"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_QUESTION"
Enabled=INTEGER|-1
Name=STRING|"Question Dialog"
Params=FOLDER
[Actions\Action1\Params]
abortif=STRING|"0"
action=STRING|"1"
autotime=STRING|"0"
buttons=STRING|"1"
message=STRING|"""Would you like to see help for Create?"""
time=STRING|"60"
variable=STRING|"{IsProcessExists(notepad.exe)}"
[Actions\Action2]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""HELP Create"""
Params=FOLDER
[Actions\Action2\Params]
taskid=STRING|"876722896"
wait=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_TASKS_ENABLE"
Enabled=INTEGER|-1
Name=STRING|"Enable Task ""HELP Create"""
Params=FOLDER
[Actions\Action3\Params]
taskid=STRING|"876722896"
[Actions\Action4]
ActionID=STRING|"A_TASK_WAITCOMPETE"
Enabled=INTEGER|-1
Name=STRING|"Waiting for completion ""HELP Create"" infinity"
Params=FOLDER
[Actions\Action4\Params]
taskid=STRING|"876722896"
wait=STRING|"0"
[Actions\Action5]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""Editpart.exe"""
Params=FOLDER
[Actions\Action5\Params]
program=STRING|"C:\EDITPART\Editpart.exe"
runas=STRING|"0"
wait=STRING|"1"
workdir=STRING|"C:\My Documents"
[Actions\Action6]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"open file dialouge"
Params=FOLDER
[Actions\Action6\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"""{DELAY 600}^(N){DELAY 200}^(S)"""
sendkind=STRING|"0"
wincaption=STRING|"EditPartner v3.0"
Thanks very, very much for the timely help, before..
I have another question..
I want to learn RoboTask as well as I can, but I'm leaving for Oregon in a few days, and mom (~75 yrs old) will be trying to use my computer while I'm gone for some simple text editing.
I've been trying to build an if/then propsition to operate on sub-tasks in my main routine..
1) question dialouge: "Would you like to see help?"
2) YES = RoboTask message box with help("wait for task to end")
3) Runs Notepad.exe, and rest of task.
2) NO = (skip message box with help)
3) Runs Notepad.exe, and rest of task.
I was trying to assign a Task Command to a variable, but maybe I'm just not understanding something..
Can Task Commands & Dialouges be assigned to variables?
I'm also trying to do this with enabling & disabling tasks, & may make some headway.
Are the "Loops & Flows" functions assignable to Task Commands?
That should do me for quite a while..
Thanks very much..
The two Tasks are pasted below, if that helps.
Peace!!
========
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1799483458
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task2"
Hide=INTEGER|0
ID=INTEGER|1196056737
Name=STRING|"Create"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_QUESTION"
Enabled=INTEGER|-1
Name=STRING|"Question Dialog"
Params=FOLDER
[Actions\Action1\Params]
abortif=STRING|"0"
action=STRING|"0"
autotime=STRING|"0"
buttons=STRING|"0"
message=STRING|"""Would you like to see help for Create?"""
time=STRING|"60"
[Actions\Action2]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""HELP CREATE"""
Params=FOLDER
[Actions\Action2\Params]
taskid=STRING|"1182713022"
wait=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""Editpart.exe"""
Params=FOLDER
[Actions\Action3\Params]
program=STRING|"C:\EDITPART\Editpart.exe"
runas=STRING|"0"
wait=STRING|"1"
workdir=STRING|"C:\My Documents"
[Actions\Action4]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"open file dialouge"
Params=FOLDER
[Actions\Action4\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"""{DELAY 600}^(N){DELAY 200}^(S)"""
sendkind=STRING|"0"
wincaption=STRING|"EditPartner v3.0"
==============
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1075053972
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task2"
Hide=INTEGER|0
ID=INTEGER|1196056737
Name=STRING|"1) Create"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_QUESTION"
Enabled=INTEGER|-1
Name=STRING|"Question Dialog"
Params=FOLDER
[Actions\Action1\Params]
abortif=STRING|"0"
action=STRING|"1"
autotime=STRING|"0"
buttons=STRING|"1"
message=STRING|"""Would you like to see help for Create?"""
time=STRING|"60"
variable=STRING|"{IsProcessExists(notepad.exe)}"
[Actions\Action2]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""HELP Create"""
Params=FOLDER
[Actions\Action2\Params]
taskid=STRING|"876722896"
wait=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_TASKS_ENABLE"
Enabled=INTEGER|-1
Name=STRING|"Enable Task ""HELP Create"""
Params=FOLDER
[Actions\Action3\Params]
taskid=STRING|"876722896"
[Actions\Action4]
ActionID=STRING|"A_TASK_WAITCOMPETE"
Enabled=INTEGER|-1
Name=STRING|"Waiting for completion ""HELP Create"" infinity"
Params=FOLDER
[Actions\Action4\Params]
taskid=STRING|"876722896"
wait=STRING|"0"
[Actions\Action5]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""Editpart.exe"""
Params=FOLDER
[Actions\Action5\Params]
program=STRING|"C:\EDITPART\Editpart.exe"
runas=STRING|"0"
wait=STRING|"1"
workdir=STRING|"C:\My Documents"
[Actions\Action6]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"open file dialouge"
Params=FOLDER
[Actions\Action6\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"""{DELAY 600}^(N){DELAY 200}^(S)"""
sendkind=STRING|"0"
wincaption=STRING|"EditPartner v3.0"