cmd_open - LiXizhi/ParaCraft GitHub Wiki
command: /open
quick ref:
/open [-p] [-d] url
description:
open url in external browser
@param -p: if -p is used, it will ask user for permission.
@param -d: url is a directory
Examples:
/open http://www.paraengine.com
/open -name test_wnd_1 -title 窗口 -width 800 -height 600 -alignment _ct https://keepwork.com
/open -p http://www.paraengine.com
/open npl://learn open NPL code wiki pages
/open -d temp/
/open hello.html open mcml file relative to world or root directory. Page is always center aligned and auto sized.
/open mcml://hello.html default to open with mcml v1 (may change in future)
/open mcml1://hello.html open with mcml v1
/open mcml2://hello.html open with mcml v2
/open store
- 如果URL以
http://开头,则用外部浏览器打开。 - 如果没有协议名或以
mcml://开头, 则使用MCML v1显示一个可拖动的窗口。 窗口居中,大小根据内部MCML页面自动放缩。按ESC会自动关闭。文件路径可相对当前世界或者根目录。 例如:/open hello.html
例如: hello.html
<pe:mcml>
<div style="background-color:#808080;padding:10px;max-width:500px;min-height:300px">
Please Enter Radius:<br/>
<input type="text" name="radius" value="4"/><br/>
<input type="submit" name="btnCreate" value="Create It!" /><br/>
</div>
</pe:mcml>