Jump to content

Recommended Posts

Posted

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.

Posted

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?

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...