Virtual key name

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Virtual key name

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
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Virtual key name

Post by Dorian (MJT support) » Mon Mar 08, 2021 4:03 pm

I'll mention this to Dev.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Marcus Tettmar
Site Admin
Posts: 7376
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Virtual key name

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
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Virtual key name

Post by Grovkillen » Fri Mar 12, 2021 3:16 pm

Thanks for the suggestion Marcus.
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts