At work I use a ticketing system called ServiceNow. I can run scripts using this example $oIE.document.parentWindow.execScript. I am able to create a JS variable using the execScript method. Though it does not return a value. I can see the variable I need from the console. I have seen in the past $oIE.document.parentWindow.eval was used but this does not seem to work with IE 11. Is there anyway to pull a JS variable into Autoit? Currently I am writing the results of one of the ServiceNow queries
A nice oneline to call short scripts thru the addressbar
$oIE.Navigate2("javascript:console.log(123);void(0);")
So this should set a global object reference variable
;~$quote=""""
;~ $js="javascript:var JSglobal = (1,eval)(" & $quote & "this" & $quote & ");void(0);"
$js="javascript:var JSglobal = typeof self === 'object' && self.self === self && self;void(0);"
consolewrite($js & @CRLF)
$oIE.Navigate2($js)
@Chimp