syntax with referenced variables
Posted: 13 Feb 2018, 06:34
I've been trying to adopt this line of code I found elsewhere on the AHK forums:
but this still doesn't work, with the error saying it contains Illegal characters, yet when I inspect the variable it contains what I want it to. I've tried heaps of other variations but I just can't get it to work.
Is it even possible to do?
Code: Select all
Send % m ?"{Volume_Up}":"{Volume_Down}"
Into something along the lines of:
send % "{Volume_Up}"
which works fine, but using a referenced variable, like:
Vu={Volume_Up}
send % "%Vu%"
but this just sends the raw text %Vu%, so I try instead perhaps swapping the quotes to be included with the variable:
Vu="{Volume_Up}"
send % %Vu%
Is it even possible to do?