安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








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://psteamcommunity.yuanyoumao.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