Code: Select all
#Requires AutoHotkey v2.0
v1 := "q"
v2 := "e"
v3 := "r"
str := "123"
CurChar := SubStr(str, 1 , 1)
x::SendInput "{" %"v" CurChar% " down}"
For dereference operations, there is %Expr%.
Code: Select all
#Requires AutoHotkey v2.0
v1 := "q"
v2 := "e"
v3 := "r"
str := "123"
CurChar := SubStr(str, 1 , 1)
x::SendInput "{" %"v" CurChar% " down}"
https://www.autohotkey.com/docs/v2/v2-changes.htm#built-in-variables wrote:Removed:
[...]
A_IsUnicode (v2 is always Unicode; it can be replaced with StrLen(Chr(0xFFFF)) or redefined with global A_IsUnicode := 1)