|
原来我想着保留netsetting这个,因为你以后更新的话有个比照,看了你的指导,简单起见,直接用ipconfig代替了,成功了直接上代码,上图。
点击托盘区那个网络和Internet设置,就直接看到ip地址配置。
H:\WimBuilder2-20190901\vendor\WinXShell\X_x64\Program Files\WinXShell\wxsUI\UI_WIFI.zip\main.jcfg
- {
- "name":"UI_WIFI",
- "class":"CDUIWIFIWindow",
- "singleton":true,
- "position":"rightbottom",
- "nobaricon":true,
- "#exstyle comment":"WS_EX_WINDOWEDGE(256) | WS_EX_TOPMOST(8)",
- "customstyle":true,
- "exstyle":264,
- "trans": 220,
- "OnDeactive":"hide",
- "wirednetworkicon":false,
- "OnClick":
- {
- "proxysettings":"
- PUSH 'inetcpl';
- PUSH 1;
- CALL ::Command();
- ",
- "netsetting":"
- PUSH 'netsetting';
- PUSH 1;
- CALL ::Command();
- ",
- "launch_osk":"
- PUSH 'osk';
- PUSH 1;
- CALL ::Command();
- "
- },
- "JS_CMD":
- {
- "::enable_firewall":{
- "command":"Wpeutil.exe",
- "parameters":"Enablefirewall",
- "flags meaning":"0 - SW_HIDE",
- "showflags":0
- },
- "::disable_firewall":{
- "command":"Wpeutil.exe",
- "parameters":"DisableFirewall",
- "showflags":0
- },
- "inetcpl":{
- "command":"rundll32.exe",
- "parameters":"Shell32.dll,Control_RunDLL inetcpl.cpl,,4"
- },
- "netsetting":{
- "command":"cmd.exe",
- "parameters":"/c ipconfig /all&&pause"
- },
- "osk":{
- "command":"osk.exe"
- }
- }
- }
复制代码 |
|