Resize browser window

What Wick Editor Version are you using?
1.19.3

Describe the Problem
How do i pop my project into a new window and close the other one, then change it?

concept… idk what to use this for but it works…

My Project12-12-2021_13-52-04.wick (1.5 KB)

1 Like

how do I use it?

if you’re asking what to use this for, i already said, i have no idea. you could make a platformer engine or something, or make a really scuffed 2048 game, flappy bird, etc.

if you’re asking how to see what i did, it should say in the project. press OPTION K to open the project in a new window, click on that window to focus it, and use the arrow keys.

whats that?

that’s a keyboard shortcut. your keyboard has an option key and a K key. press those two as a keyboard shortcut while in the wick project and it will open the project in a seperate window.

Idk if this could help

But I can tell you that this process is possible:

If the project is a web page, then you’d wanna do something like -

// Original window
var newWindow=window.open();
newWindow.location=window.location;

And to edit the project in the new window, you set a variable in the new window to something from the original window, and have the new window react to that variable someway…

// Original window
newWindow.variableName = '1243';

// New window
if(window.variableName==='1243'){
// Do something
}

After setting the variable to something, you can close the original window

// Original window 
window.close();

If it’s an html file, then you’d wanna rewrite the document from the original window into the new window (haven’t tried that yet… or maybe I had before? All I know is that it should work).

1 Like

I am on cromebook and dont have that key

Try alt + k

1 Like

that doesn’t do anything

sorry, i’m on a mac, i think option and alt are equivalent…

try changing the keyboard shortcut. follow the steps in the screenshot, then click where it says “alt + k”, then change it to something you have, like “control + k”.

1 Like