mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21:21:03 +00:00
fix
This commit is contained in:
parent
7cfc0a8924
commit
20571168c8
|
@ -71,8 +71,10 @@ exports.runWindow = function(cmd, fork) {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.createProcess = function(cmd) {
|
exports.createProcess = function(cmd) {
|
||||||
|
var c = makeCommand(cmd);
|
||||||
var WSH = CreateObject("WScript.Shell");
|
var WSH = CreateObject("WScript.Shell");
|
||||||
return WSH.Exec(makeCommand(cmd));
|
console.info("createProcess() -> " + c);
|
||||||
|
return WSH.Exec(c);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.elevatedRun = function(FN, args) {
|
exports.elevatedRun = function(FN, args) {
|
||||||
|
|
10
shadow.js
10
shadow.js
|
@ -21,9 +21,9 @@ var AppsMutex = [];
|
||||||
var items = XML.load("staticip.xml").select("/StaticIP/Item").toArray();
|
var items = XML.load("staticip.xml").select("/StaticIP/Item").toArray();
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
try {
|
try {
|
||||||
var name = items[i].select("Name").first().getText();
|
var name = items[i].getDOM().selectSingleNode("Name").text;
|
||||||
var uniqueId = items[i].select("UniqueID").first().getText();
|
var uniqueId = items[i].getDOM().selectSingleNode("UniqueID").text;
|
||||||
var ipAddress = items[i].select("IPAddress").first().getText();
|
var ipAddress = items[i].getDOM().selectSingleNode("IPAddress").text;
|
||||||
|
|
||||||
if (name in Apps) {
|
if (name in Apps) {
|
||||||
Apps[name][uniqueId] = ipAddress;
|
Apps[name][uniqueId] = ipAddress;
|
||||||
|
@ -78,7 +78,7 @@ var check_NoxPlayer = function() {
|
||||||
var hostname = items[i].hostname;
|
var hostname = items[i].hostname;
|
||||||
|
|
||||||
if (pid > 0 && AppsMutex.indexOf(pid) < 0) {
|
if (pid > 0 && AppsMutex.indexOf(pid) < 0) {
|
||||||
console.info("New launched NoxPlayer: " + title);
|
console.info("New launched NoxPlayer: " + hostname);
|
||||||
AppsMutex.push(pid);
|
AppsMutex.push(pid);
|
||||||
|
|
||||||
if (hostname in Apps.NoxPlayer) {
|
if (hostname in Apps.NoxPlayer) {
|
||||||
|
@ -112,7 +112,7 @@ var check_Chrome = function() {
|
||||||
console.info("Starting Google Chrome: " + uniqueId);
|
console.info("Starting Google Chrome: " + uniqueId);
|
||||||
|
|
||||||
listenPort = SS.connect(Apps.Chrome[uniqueId]);
|
listenPort = SS.connect(Apps.Chrome[uniqueId]);
|
||||||
Chrome.start("https://naver.com", listenPort, uniqueId);
|
Chrome.start("https://www.showmyip.com/", listenPort, uniqueId);
|
||||||
AppsMutex.push("chrome_" + uniqueId);
|
AppsMutex.push("chrome_" + uniqueId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user