Conditional hotkey or include in AutoHotKey
Fresh3 days ago
Mar 15, 20263772 viewsConfidence Score0%
0%
Problem
Is there a way to define a Hotkey conditionally in AutoHotKey? I want to do different keyboard mappings for different machines with different physical keyboards. This is what I want to do: OR but since AHK parses Hotkey definitions and #Include statements BEFORE interpreting If statements, the Hotk…
Error Output
RegRead, ComputerName, HKEY_LOCAL_MACHINE, System\CurrentControlSet\Control\ComputerName, ComputerName
If ( ComputerName = BDWELLE-DIM8300 )
{
#Inc…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Conditional hotkey or include in AutoHotKey
Low Risk
This is an old question, I know, but I just had to do this this morning, and this is how I got it working in AutoHotkey_L: The key point is that your computer name is not quoted. That tripped me up for quite a while. Hope it helps somebody out!
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix