{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/3838","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/3838/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/3838/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/3838/events","html_url":"https://github.com/nwjs/nw.js/issues/3838","id":106837474,"number":3838,"title":"nw.js with command line argument?","user":{"login":"sourceskyboxer","id":3496136,"avatar_url":"https://avatars.githubusercontent.com/u/3496136?v=3","gravatar_id":"","url":"https://api.github.com/users/sourceskyboxer","html_url":"https://github.com/sourceskyboxer","followers_url":"https://api.github.com/users/sourceskyboxer/followers","following_url":"https://api.github.com/users/sourceskyboxer/following{/other_user}","gists_url":"https://api.github.com/users/sourceskyboxer/gists{/gist_id}","starred_url":"https://api.github.com/users/sourceskyboxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourceskyboxer/subscriptions","organizations_url":"https://api.github.com/users/sourceskyboxer/orgs","repos_url":"https://api.github.com/users/sourceskyboxer/repos","events_url":"https://api.github.com/users/sourceskyboxer/events{/privacy}","received_events_url":"https://api.github.com/users/sourceskyboxer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-16T18:49:50Z","updated_at":"2015-09-16T23:23:47Z","closed_at":null,"body":"Hello gyus, \r\n\r\nI want to create invokement like Adobe Air or node webkit with parenments.\r\n\r\nexample:\r\nnw.exe -paren1 <path or line>\r\n```\r\n<!DOCTYPE HTML>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<title>GameLauncher</title>\r\n</head>\r\n\r\n<body onLoad=\"init\">\r\n\t<script type=\"text/javascript\">\r\n\t\tfunction init(){\r\n\t\t\tvar gui = require('nw.gui');\r\n\t\t\tvar commands = gui.App.argv;\r\n\t\t\tgui.App.on('open', function(cmdline) {\r\n\t\t\t\tswitch(commands)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase '-testargs':\r\n\t\t\t\t\t\tcmdline = alert(\"Test Alert into NW.js\")\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t</script>\r\n</body>\r\n</html>\r\n```\r\nis it correct or wrong?\r\ni want to create for example:\r\n\r\ngame.exe was packed by Engima Virtual Box with nw.exe\r\ngame.exe -game `<moddirectory>`\r\ngame.exe starts default example `<defaultdirectory>`\r\n```\r\ngame.exe\r\n../mod <- mod game directory\r\n../game <- default game directory\r\n```\r\nWhy do i like this because i am exited to build own gamelauncher for HTML5, CSS3, Javascript with node Webkit JS :)\r\n\r\nCan you help me a bit because i want know like real game like Quake 3 and Half-Life 2 were moved to HTML5 and Javascript frameworks because they are working under all plattform speficetion.\r\n\r\nThanks sorry for bad english"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/140924608","html_url":"https://github.com/nwjs/nw.js/issues/3838#issuecomment-140924608","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/3838","id":140924608,"user":{"login":"sourceskyboxer","id":3496136,"avatar_url":"https://avatars.githubusercontent.com/u/3496136?v=3","gravatar_id":"","url":"https://api.github.com/users/sourceskyboxer","html_url":"https://github.com/sourceskyboxer","followers_url":"https://api.github.com/users/sourceskyboxer/followers","following_url":"https://api.github.com/users/sourceskyboxer/following{/other_user}","gists_url":"https://api.github.com/users/sourceskyboxer/gists{/gist_id}","starred_url":"https://api.github.com/users/sourceskyboxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourceskyboxer/subscriptions","organizations_url":"https://api.github.com/users/sourceskyboxer/orgs","repos_url":"https://api.github.com/users/sourceskyboxer/repos","events_url":"https://api.github.com/users/sourceskyboxer/events{/privacy}","received_events_url":"https://api.github.com/users/sourceskyboxer/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T23:23:47Z","updated_at":"2015-09-16T23:23:47Z","body":"How do I get command from app.exe like it myapp.exe -paren1 -paren2 true or more how does it work? "}}