Key names without the modifiers?

Discuss the future of the AutoHotkey language
Posts: 4
Joined: 16 Jun 2015, 23:49

Key names without the modifiers?

15 Oct 2020, 23:25

I understand that there's an implicit parameter 'ThisHotKey' that exists on entry to every hotkey routine. Quite often I'm wanting just the key name(s)
from this parameter without the modifiers. So, for example, if ThisHotKey = "$!+LButton" then I often want just "LButton" to use in a command
like " keywait 'LButton' ". If it was a double hotkey like "~RButton & C" then I'd want just 'RButton' and 'C'.

I realise that it's a fairly trivial task to strip these modifiers out, but I was wondering if it would make any sense to have some other
parameter(s) that contain just the key name(s)?

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 2 guests