Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Any example how i can use "Run" action?
Tying "Run HelloWorld MyFancyProgB"
Just give me command and script info but nothing happen.
Run = Action
HelloWorld = Argument (program in that PB)
MyFancyProgB = Block name
Never tried with a PB... so I just did: it worked
Just remove "Helloworld".
--> "Run MyFancyProgB" it will run the prog in the targeted PB with default argument.
(A work around to pass arguments is to put a timer, with the PB run action with specific argument, and call the timer with "TriggerNow" action.)
I may add the argument option... to pass specific arguments to other PB...
Will be handy if i can send argument with the message.
Scripts like Easy Automation 2.0 use arguments to execute code block that do actions, set properties, render LCDs.
Using "Timer blocks" is like extra step that i need to do with all code blocks created for EasyAutomation.
If i make 120 code blocks i need 120 timers just to do single Action=Run=HelloWorld
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=694296356&searchtext=easy+automation
Also i have camera ruler script that i use argument text field to set distance and that is inpossible to ask with timers.
Use brackets "{...}" after "Run" command.
Run {Test argument value} PB target name
So you can now say hello to the world !
Note that if the targeted PB is busy it will fail and send a warning.
= try again when target PB ends his current action.
cya!
Example
On remote ship
1. -PB ArgumentPrompt- Run {prog(Helloworld)} MyFancyPB
2. -PB ArgumentPrompt- OnOff_Off SmallReactor
3. -ButtonPannel- Button1 = Run {prog(Helloworld)} MyFancyPB
4. -ButtonPannel- Button1 = OnOff_Off SmallReactor
On distant ship
1. Command recieved
2. Command recieved
3. No response
4. Command recieved
I need test this issue more
I tried:
- another grid with a PBtoSendCMD + an antena
- a 4 button panel
On button panel:
1 - PBtoSendCMD Run command --> prompt command = Run TargetPB
2 - PBtoSendCMD Run command --> prompt command = Run {prog(Helloworld)} TargetPB
3 - PBtoSendCMD Run command --> prompt command = Run {test arg with(parenthesis)} TargetPB
4 - PBtoSendCMD Run command --> prompt command = Run {test arg} TargetPB
All 4 commands worked, I could not reproduce the problem.
Please try again after hitting the recompile button of both PBs.
Anyway nice work!
Yes it used the caracter "{" and "}" to find the argument value, so if there is these caracters in the argument it cannot find it (stop at the first closure caracters and the rest interfere with the block name).
So I just updated to make it custom:
At the begining of the script (3rd line) you'll find:
-> const string _PBcustomArgDelimiters = "{}";
Try to change the "{}" by "[]" (on receiver PB, but best to do it on sender too).
Cya