View Single Post
  #2034  
Old 08.11.2021, 23:45
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,549
Default

Quote:
Originally Posted by Crank436 View Post
I cant access the variable from the first script in the second one. How can I make this global?
You can find details on the method in the built-in help in script editor.
Code:
/*
    After a reconnect
*/
    
setProperty("lastReconnectTime", Date.now(), true);
Code:
/*
    Before a reconnect
*/

var lastReconnectTime = getProperty("lastReconnectTime", true);
Reply With Quote