This commit is contained in:
Namhyeon Go 2020-11-10 05:45:13 +09:00
parent 7cfc0a8924
commit 20571168c8
2 changed files with 8 additions and 6 deletions

View File

@ -71,8 +71,10 @@ exports.runWindow = function(cmd, fork) {
}
exports.createProcess = function(cmd) {
var c = makeCommand(cmd);
var WSH = CreateObject("WScript.Shell");
return WSH.Exec(makeCommand(cmd));
console.info("createProcess() -> " + c);
return WSH.Exec(c);
};
exports.elevatedRun = function(FN, args) {

View File

@ -21,9 +21,9 @@ var AppsMutex = [];
var items = XML.load("staticip.xml").select("/StaticIP/Item").toArray();
for (var i = 0; i < items.length; i++) {
try {
var name = items[i].select("Name").first().getText();
var uniqueId = items[i].select("UniqueID").first().getText();
var ipAddress = items[i].select("IPAddress").first().getText();
var name = items[i].getDOM().selectSingleNode("Name").text;
var uniqueId = items[i].getDOM().selectSingleNode("UniqueID").text;
var ipAddress = items[i].getDOM().selectSingleNode("IPAddress").text;
if (name in Apps) {
Apps[name][uniqueId] = ipAddress;
@ -78,7 +78,7 @@ var check_NoxPlayer = function() {
var hostname = items[i].hostname;
if (pid > 0 && AppsMutex.indexOf(pid) < 0) {
console.info("New launched NoxPlayer: " + title);
console.info("New launched NoxPlayer: " + hostname);
AppsMutex.push(pid);
if (hostname in Apps.NoxPlayer) {
@ -112,7 +112,7 @@ var check_Chrome = function() {
console.info("Starting Google 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);
}
}