2

I have several monitors and use the taskbar autohide feature together with fullscreen applications, so I don't know which window currently has focus. Pressing win+{currently focused window number} makes that window minimized and it is really annoying.

There is a similar question already, but it solves this problem for mouse clicking only.

6
  • So, what do you want to happen? Just nothing? Aug 20, 2013 at 11:57
  • Yes, just nothing. Aug 20, 2013 at 12:17
  • Is an AutoHotKey script a valid option? It would catch those key combinations {#1},{#2},{#3}... and then do nothing. Haven't tested it so far but I guess its possible.
    – nixda
    Aug 20, 2013 at 13:11
  • Ok, doing nothing in #1 handler really does nothing (no focusing even if that window does not have focus). So, I'm investigating how to also mimic the original behavior of <kbd>win</kbd>+# via AutoHotKey... Aug 20, 2013 at 13:43
  • Ok, current idea is to intercept those hotkeys, check if current active window (explained here - stackoverflow.com/questions/9115495/… ) is the same as the window which will be triggered by the hotkey (no idea how to do this) and do nothing if they match (easy =), otherwise pass hotkey through to activate/run that window (explained here - stackoverflow.com/questions/2349694/… ). Aug 21, 2013 at 7:45

1 Answer 1

2

It is possible to intercept the keystroke using a program like AutoHotkey. Once installed, you can write and run scripts that intercept keyboard input. The simplest kind of script is called a "hotkey". You simply state a keystroke and the desired action.

You could define the Windows+Num keystroke to do nothing, which would prevent it from being sent to Windows to toggle the visibility of the programs at that slot in the taskbar.

#1::
#2::
#3::

You will lose the capability of launching an application in the taskbar with this simple, global interception. But, I'm sure someone can recommend how to write a script that is aware of the window's focus and taskbar slot.

2
  • Thank you, this solution was already discussed in comments above... Aug 27, 2013 at 11:57
  • Oh snap, the comments were collapsed when I answered! If I get around to it, I'll try to actually make a script that behaves with focused windows. Aug 27, 2013 at 13:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .