Ideas for new features & functions
Moderators: Dorian (MJT support), JRL
-
Grovkillen
- Automation Wizard
- Posts: 1027
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
-
Contact:
Post
by Grovkillen » Wed Mar 03, 2021 12:10 pm
It would make the code more readable if I could have a switch to use the VK_name (
list of current VK names) as the OnEvent parameter:
Code: Select all
OnEvent>KEY_DOWN,VK27,0,KeyPress
VK_USE_NAME=1
OnEvent>KEY_DOWN,VK_ESCAPE,0,KeyPress
-
Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Fri Mar 12, 2021 12:05 pm
Why not do:
Code: Select all
Let>VK_ESCAPE=VK27
OnEvent>KEY_DOWN,VK_ESCAPE,0,KeyPress
-
Grovkillen
- Automation Wizard
- Posts: 1027
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
-
Contact:
Post
by Grovkillen » Fri Mar 12, 2021 3:16 pm
Thanks for the suggestion Marcus.