pmb6tz / windows-desktop-switcher

An AutoHotKey script for Windows that lets a user change virtual desktops by pressing CapsLock + <num>.
MIT License
1.23k stars 230 forks source link

Hotkeys intercepted by cmd windows #27

Closed pmb6tz closed 5 years ago

pmb6tz commented 5 years ago

I've noticed that if a command prompt (cmd) window is currently focused, it captures the caps+num sequence, preventing desktop switching entirely. I personally use command windows quite a lot, so I'm adding an item to take a look at this issue.

Elijas commented 5 years ago

Does this still occur with "Run as Administrator"?

pmb6tz commented 5 years ago

That's fixed it.

Elijas commented 5 years ago

@pmb6tz I've encountered this with terminals too :) At the risk of stating the obvious, a nice way to silently run the script as root on boot is to make use of the Task Scheduler:

image