Jump to content
Sign in to follow this  
Juvigy

HotKeySet function with parameters?

Recommended Posts

Juvigy

I am making a small template copy app.

So i am doing something like this:

HotKeySet("^1", "ShowMessage")

HotKeySet("^2", "ShowMessage")

HotKeySet("^3", "ShowMessage")

HotKeySet("^4", "ShowMessage")

HotKeySet("^5", "ShowMessage")

HotKeySet("^6", "ShowMessage")

HotKeySet("^7", "ShowMessage")

HotKeySet("^8", "ShowMessage")

HotKeySet("^9", "ShowMessage")

HotKeySet("^0", "ShowMessage")

ShowMessage function accepts parameters.How can i pass the parameters here so for "^1" to use 1 as parameter , for "^2" to use 2 and etc.

I know i can copy the ShowMessage function 10 times , but i have like 50 parameters and it will be ugly and large code.

Any ideas how i can do it elegantly ?

Share this post


Link to post
Share on other sites
Juvigy

Hi 69255,

Thanks , @HotKeyPressed is what i needed.

BR,

Juvigy

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  

×