supposedlyGlobalVariable := \"blah\"
ARoutine()
{
localVariable := \"asdf\"
MsgBox, The global variable value is %supposedlyGlobalVariable%. The local variable v
You just need to declare the variable as global inside your function
supposedlyGlobalVariable := "blah"
ARoutine()
{
global supposedlyGlobalVariable
localVariable := "asdf"
MsgBox, The global variable value is %supposedlyGlobalVariable%. The local variable
value is %localVariable%.
}
^!X:: ;This assigns the hotkey CTRL + ALT + X to run the routine
ARoutine()
return