Jump to content

HotKeySet function with parameters?

Recommended Posts

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 ?

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...