Sublime Forum

(solved) Why I can not bind this key?

#1

Hi all,

This command “Autohotkey Classic - Run” is from a plugin, it’s located in group: Tools --> AutoHotkey.

So I created one in Key Binding - User:

[
    	{ "keys": ["f5"], "command": "AutoHotkey Classic - Run" }
]

It does not work. I also tried “AutoHotkey_Classic_-_Run”.

What’s the correct way?

0 Likes

#2

The name of a command does not match the name in the menu. The command you’re looking for is: "command": "ahkrun", "args": {"version": "classic"}. You can grab this from package or by using sublime.log_commands(True) in the console.

3 Likes

#3

Thank you so much! Works like a charm.

I’ll remember this.

0 Likes