MoI discussion forum
MoI discussion forum

Full Version: Get pressed key name.

From: vector illustrator (QUARITEXA)
20 Jan 2020   [#1]
Hi, Michael.

How inside script, binded on hotkey determine which key was pressed for calling this script?
From: Michael Gibson
20 Jan 2020   [#2] In reply to [#1]
Hi Quaritexa, I guess the script could look through the shortcut key list. On MoI v4 that can be accessed by moi.shortcutKeys.getShortcuts(). On MoI v3 you could try parsing the moi.ini file. You can get the path to moi.ini by moi.settings.getIniPath();

- Michael