How can I asign a command to tab, I'm just trying to make it so when I press tab it does "ctrl + z"

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
draftsmen2021
Posts: 1
Joined: 27 Jun 2022, 18:27

How can I asign a command to tab, I'm just trying to make it so when I press tab it does "ctrl + z"

Post by draftsmen2021 » 27 Jun 2022, 18:30

I was going through the authotkey readme and I could not see how I could assign anything to tab, it had keys for ctrl etc but not tab.

Trying to make a script so when I press tab it sends "ctrl + z"

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: How can I asign a command to tab, I'm just trying to make it so when I press tab it does "ctrl + z"

Post by gregster » 27 Jun 2022, 18:56

A few links from the AHK v2 docs where Tab and its syntax is listed (since you posted in the v2 help section):
https://lexikos.github.io/v2/docs/KeyList.htm#general (list of hotkey names)
https://lexikos.github.io/v2/docs/commands/Send.htm#keynames (Send syntax for keys)
https://lexikos.github.io/v2/docs/Hotkeys.htm#AltTabRemarks

you can also find Tab on the corresponding pages in the AHK v1 docs (please note that there have been some syntax changes in v2)

v2:

Code: Select all

Tab::send "^z"
v1:
Spoiler

Post Reply

Return to “Ask for Help (v2)”