Skip to content

Instantly share code, notes, and snippets.

@davebrny
Created December 28, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davebrny/1c9083935a67ad58af04a12b78c91453 to your computer and use it in GitHub Desktop.
Save davebrny/1c9083935a67ad58af04a12b78c91453 to your computer and use it in GitHub Desktop.
(autohotkey) - get the variable stored in a name
stored_in(variable_name) {
stored_in := %variable_name%
return stored_in
}
/*
[script info]
description = get the variable stored in a name
*/
@davebrny
Copy link
Author

davebrny commented Dec 28, 2016

examples;

foo = bar


var_name := "foo"
result := stored_in(var_name)
msgBox, % result
foo = bar


result := stored_in("foo")
msgBox, % result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment