SetGlobalVariable/GetGlobalVariable don't work on JS: SOLVED

zedola

New member
I’m running the following code within the chromium environment
Code:
                   exeoutput.SetGlobalVariable( 'alertskey', 'abc123', true );
                    var alerts_key = exeoutput.GetGlobalVariable( 'alertskey', null );
                    alert( alerts_key );
The alert reads “undefined” every time.

I’m wondering why it seems like everything I try with this thing doesn’t work 😦 :?:
 
Last edited:
Are other exeoutput. Javascript functions working for you? Or just these ones?
 
Last edited:
Try setting:

var alerts_key = exeoutput.GetGlobalVariable( ‘alertskey’, null );

to

var alerts_key = exeoutput.GetGlobalVariable( ‘alertskey’, “” );

I am using global vars heavily and chromium and having no issues.
 
Last edited:
Back
Top