Node webkit "single-instance": false PLEASE!

Discussion and feedback on Construct 2

Post » Tue Jul 01, 2014 1:08 pm

Please Add "single-instance": false to C2's node webkit package.json.

or add a option let user to set it
thankyou!
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Thu Aug 14, 2014 2:33 pm

I'm running into the same issue. Have you figured out how to change this?
B
11
S
2
Posts: 19
Reputation: 889

Post » Thu Aug 14, 2014 5:40 pm

Outland Pictures wrote:I'm running into the same issue. Have you figured out how to change this?

No...only way is com a new nodewebkit by urself
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Tue Nov 28, 2017 9:09 pm

Message: hgouveia can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
https://www.scirra.com/tutorials/1119/h ... ode-webkit
B
4
Posts: 5
Reputation: 234

Post » Tue Nov 28, 2017 9:17 pm

hgouveia wrote:https://www.scirra.com/tutorials/1119/h ... ode-webkit


@hgouveia

Why bump a thread that is over 3 years old?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
138
S
31
G
88
Posts: 5,639
Reputation: 61,209

Post » Thu Nov 30, 2017 4:12 pm

Posting for people that are looking for a solution that works with NW.js (ancient versions used the name Node-Webkit).
First things first, this Chromium Arg is outdated and got depreciated quite a while ago so it's completely useless now.

Currently the only workaround as far as I know, is to do the following:
Image

Steps to open multiple NW.js windows:
  1. Add the Browser and Keyboard (optional) plugins
  2. Add the condition on button pressed
  3. Add the execute javascript action and execute this code: "window.open('" & Browser.URL & "');"
  4. Open as many windows as you like by pressing the selected button

Warning: Don't do the following things:
  • Execute on start of the layout
    > Will create an infinite loop aka "windowception". (You have been warned!)
  • Open a new window using the browser action open new window
    > Will create a broken window or limit the amount of windows for unknown reasons.
  • Execute JS code while the 1st instance of your project still loads (e.g. loader layout)
    > Will create broken "flickering" window instances, generally results in weird and unexpected behavior.
ImageImageImage
B
72
S
26
G
78
Posts: 702
Reputation: 45,571


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests