Jump to content
Sign in to follow this  
PPowerHouseK

Hotkeys Within Switch Cases

Recommended Posts

PPowerHouseK

Hello all,

I am trying to get my AutoIt script to have hotkeys. Most of the script works off of the Switch function. I need to set a hotkey, that when pressed, goes to a certain case. Kind of like the GOTO function in batch, if that makes sense. Anyhow I realize that the Hotkey must be set then the function that controls it must be placed elsewhere, in my case, below my giant switch function with its many cases. I tried to place the function within the case of the switch function, however that didn't work either. I am very new to this so please bear with me. Thanks in advance.

Share this post


Link to post
Share on other sites
pedmacedo

I don't think it's possible to redirect the execution to a case with hotkeys.

Istead, why don't you make each case a different function with a different hotkey?

Share this post


Link to post
Share on other sites
PPowerHouseK

Thank you very much for your reply I have found a solution.

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  

×