I think I am coming close to finishing a code I've been working on. Issue is, I keep getting an error message that says that the property cannot be readd. I am coding an invisible window that opens on the players screen for a few seconds and then closes.
Code:
◆Script:let myWindow;
: :const options = {transparent:true,frame:false,};
: :var newWin=null;
: : myWindow = nw.Window.open("Cute.html", options, function(win){newWin = win; win.moveTo(300,400);});
: :setTimeout(() => {
: : function closeWin() {
: : if(myWindow){
: : myWindow.close();
: : }
: :}
: :}, 5000);
: :
: :
: :