Hello SF7 forum.
As part of a setup, I include a screen to accept a character from the user, with 'Z' as the default character.
Once obtained, I would like to assign a Keyboard shortcut to a particular program, with the Keyboard shortcut comprising of 'CTRL+ALT+?' where '?' is the character obtained from the user (or 'Z' as default).
My quesion is, how do I convert my character obtained into a keycode, as required in Shell.CreateShortcut?
As an example, to create a Keyboard shortcut of 'CTRL+ALT+Z', I would use the following command:
DTFolder = SessionVar.Expand("%DesktopFolder%");
Shell.CreateShortcut(DTFolder, "TP", SessionVar.Expand("%AppFolder%\\TP.exe"), "", "", "", 0, SW_SHOWNORMAL, {ctrl=true,alt=true,keycode=90}, "");
However, I'm not sure how to build 'keycode=90' from the character 'Z' typed in an editbox.
Any suggestions would be greatly appreciated.
Regards,
Casman.

