Jump to content
Sign in to follow this  
Moosey

HotKeySet - Using more than one key bind.

Recommended Posts

Moosey

I've spent about 15 minutes looking for an answer for this but it's evaded me. I'm sure someone will be able to answer within seconds.

When I press Shift+e I'd like to call a function.

How do I add the 2nd key?

HotKeySet("e", "funcf1")

I've tried other combination but can't work out what is needed so that when I press left shift + e it calls Funcf1.

Any help would be welcome.

Regards

Edited by Moosey

Share this post


Link to post
Share on other sites
monoscout999

HotKeySet("+e", "funcf1")

+ = Shift

^ = Control

! = ALT

It is all in the help file, look for Send() or in the Apendix the part Send Key List.

Share this post


Link to post
Share on other sites
monoscout999

HotKeySet("E", "funcf1") --> Shift+e

HotKeySet("!E", "funcf1") --> Alt+Shift+e

HotKeySet("!^e", "funcf1") --> Alt+Ctrl+e

That is wrong. i didn`t test it... but in case that it works, what happends if you have the CAPS LOCK on?

Share this post


Link to post
Share on other sites
Rogue5099

That is wrong. i didn`t test it... but in case that it works, what happends if you have the CAPS LOCK on?

It works, but if you have CAPS LOCK on then it doesn't work!

Who keeps CAPS LOCK on anyways lol. Good catch thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.