If / Then & the Question Dialouge box

Discuss RoboTask here
Post Reply
SkyGull
Posts: 4
Joined: Sat Sep 17, 2005 9:33 am

If / Then & the Question Dialouge box

Post by SkyGull »

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"
SkyGull
Posts: 4
Joined: Sat Sep 17, 2005 9:33 am

If / Then & the Question Dialouge box

Post by SkyGull »

Sorry.. editor is EditPartner (editpart.exe), not notepad.

Thanks!!!
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

If / Then & the Question Dialouge box

Post by Oleg »

My name is Oleg.

I've changed your task (see below). You don't needed "Wait for task" action if you start another task with "Wait for finish" parameter

;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|1571495949
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task306"
Hide=INTEGER|0
ID=INTEGER|202909976
Name=STRING|"Create (v2)"
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
Action7=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|"Help_Needed"

[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action2\Params]
case=STRING|"0"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{Help_Needed}"

[Actions\Action3]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""HELP CREATE"""
Params=FOLDER

[Actions\Action3\Params]
taskid=STRING|"1182713022"
wait=STRING|"1"

[Actions\Action4]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[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"

[Actions\Action7]
ActionID=STRING|"A_VARIABLES_REMOVE"
Enabled=INTEGER|-1
Name=STRING|"Remove variable ""HELP_NEEDED"""
Params=FOLDER

[Actions\Action7\Params]
varname=STRING|"HELP_NEEDED"
SkyGull
Posts: 4
Joined: Sat Sep 17, 2005 9:33 am

If / Then & the Question Dialouge box

Post by SkyGull »

Oleg..

Sorry..

I used to work with a woman named Olga, for quite some time.. had to write her name when directing status & control reports..

My apologies..

Language is some else, isn't it?

I didn't even realize I had slipped.

Might help if I read what I was reading, 'y think?

take care,

John
Post Reply