I'm having trouble understanding how parameters are accessed in AutoHotKey functions.
For example, I set myVar variable with the InputBox, then pass it to a function. How do I evaluate the arg in the TestFunction?
#t::
inputbox myVar, What is your variable?
myNewVar := TestFunction(%myVar%)
MsgBox %myNewVar%
return
TestFunction(arg)
{
MsgBox arg
msgBox %arg%
return %arg%
}
What I'm looking to do is setup a hotkey that will prompt for a keyword for an app, then evaluate what is entered in the function and fire up whatever app corresponds to that keyword.
Thanks!
Chris

myNewVar := TestFunction(myVar)– Bavi_H Feb 8 '11 at 4:56function("string")if they are strings, and justfunction(variable)(no percentage signs) if they are variables. It works if you just remove the percentage signs in your third line. I know how incredibly frustrating percentage signs and quotation marks can be in AHK: they kill me too from time to time. – Cerberus Feb 20 '11 at 23:40