Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about add OpenDesktopManager feature. #41

Closed
lokielse opened this issue Jul 23, 2019 · 4 comments
Closed

How about add OpenDesktopManager feature. #41

lokielse opened this issue Jul 23, 2019 · 4 comments

Comments

@lokielse
Copy link

default key is win+tab.
I'd like to customize it.

@Elijas
Copy link
Collaborator

Elijas commented Jul 23, 2019

You can already customize it!:)

Step 1

Decide what will be your new hotkeys. For this example, let's use Ctrl + Space, which will trigger Win + Tab

Step 2

Find the commands (symbols) for each of the buttons. For example:

Button Command
Ctrl ^
Space space
Win #
Tab tab

You can find the table for all of the buttons here.

Step 3

Edit the file user_config.ahk and add this line at the bottom of the file:

^space::send, #{tab}
Click here for explanation.

You make the program do a command with your selected hotkeys like this:

HOTKEYS::COMMAND

In our case we want the program to click some buttons (Win+Tab) when we press the hotkeys. The way to do this is to use the command send (comma is optional):

HOTKEYS::send, BUTTONS

If we want that pressing Ctrl + Space would press the buttons h e l l o, then we use this line

^space::send, hello

If we want it to automatically press a button other than a letter, then we use { } around it (For example tab should be {tab}).

In this example Ctrl + Space will press the buttons Win + Tab:

^space::send, #{tab}

You can read more about how it works here

Step 4

Start the program.

If it is already running, you can click the tray icon with the right button and select Reload.

(EDIT: Fixed the errors and formatting)

@lokielse
Copy link
Author

@Elijas Thanks for your detail guide.

// This one is work, but it is not my wanted.
^`::!tab

// This is what I want, but it dose not work.
^`::#tab

@Elijas
Copy link
Collaborator

Elijas commented Jul 23, 2019

Oops, it seems that I gave the wrong solution. I've just got to my computer and fixed it. Try this:

^space::send, #{tab}

I've updated the comment above and explained this in more detail, too!

@lokielse
Copy link
Author

That's amazing!! It works like a charm. how do you come so cool. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants