Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Hotstring() doesn't work when #If present

$
0
0
So... first of all, hi again fellow AHK users.


Second, I've come up with the following bit of code in order to set up Hotstrings with Variables and a Func():

CODE:

Hotstring(":X:" prefix name, Func("Extras").Bind(name, text))

It works fantastic, as long as there isn't an #If present in the script.
Declaring the Hotstring() in or outside the #If block makes no difference.
Is there any way to keep the #If because I need it, but also make the Hotstring() work?


And as per usual, thanks in advance!

Statistics: Posted by Dzverry — 15 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles