09-20-2013, 01:51 PM
If I use the SHORTCUTINFO (function/class) like this:
Macro Macro16
I can retrieve the shortcut's "si.hotkey", but it retrieves an integer value.
So if the shortcut is: CTRL + SHIFT + ALT + END
The output of "si.hotkey" is: 3875
From the helpfile:
I understand some of the LOW and HIGH order byte part but I do not understand how to do the following:
In my example the shortcut uses the hot-key CTRL + SHIFT + ALT + END but I want to replace it with: CTRL + F1.
How can I do this? (and how do I translate the integer "si.hotkey" to key codes or VK codes?)
Macro Macro16
str shortcut="x:\path\to\file.lnk"
SHORTCUTINFO si
GetShortcutInfoEx(shortcut &si)
out si.hotkey ;; 'CTRL' + 'SHIFT' + 'ALT' + 'END': 3875
I can retrieve the shortcut's "si.hotkey", but it retrieves an integer value.
So if the shortcut is: CTRL + SHIFT + ALT + END
The output of "si.hotkey" is: 3875
From the helpfile:
Quote:hotkey - hot key.
The low-order byte is virtual-key code.
The high-order byte is combination of flags HOTKEYF_ALT, HOTKEYF_CONTROL, HOTKEYF_SHIFT, HOTKEYF_EXT.
I understand some of the LOW and HIGH order byte part but I do not understand how to do the following:
In my example the shortcut uses the hot-key CTRL + SHIFT + ALT + END but I want to replace it with: CTRL + F1.
How can I do this? (and how do I translate the integer "si.hotkey" to key codes or VK codes?)