system variable

Discuss RoboTask here
Post Reply
wildrems
Posts: 16
Joined: Thu Jun 01, 2006 12:29 pm
Location: Canada

system variable

Post by wildrems »

hi everyone,
i would like to know if it is possible for robotask to receive information through system variable.
ex: i run a program. this program send a value to a system variable. then robotask go read this variable and use its value or use the variable.
i tried to create a new system variable, but robotask can't see it.
and is it possible for RT to create system variable
thanks for your help
Last edited by wildrems on Wed Jun 28, 2006 2:39 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

system variable

Post by Oleg »

Did you mean system environment variables?
See variable {EnvironmentVar()} Put the name of variable (e.g. path, temp, username , etc) as parameter and get the value.

For example:
{EnvironmentVar(Path)}
wildrems
Posts: 16
Joined: Thu Jun 01, 2006 12:29 pm
Location: Canada

system variable

Post by wildrems »

hi oleg,
if i understand, if i create a system environment variable, bob1.
and if a program put somthing in the value, then i simply need to tell RT {EnvironmentVar(bob2)} and it will return the value that the programe put in?
is that right?
well if it is, then it's exatcly what i want. so thanks a lot.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

system variable

Post by Oleg »

then i simply need to tell RT {EnvironmentVar(bob2)} and it will return the value that the programe put in?
Yes. But why bob2? Maybe you mean bob1?
One nuance: the variable must be created before starting of RoboTask. Because each Windows application copies the environment while starting and don't see the changes which was happened after starting of the application.

If you want pass some information from your program to RoboTask you can do it via text file (for example).
wildrems
Posts: 16
Joined: Thu Jun 01, 2006 12:29 pm
Location: Canada

system variable

Post by wildrems »

hi oleg,
bob2 is th first things that came to me.
i would like to thank you for your fast reply. you are of great help. and RT is awesome.
Post Reply