Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

How to hide a window from Alt Tab


  • Please log in to reply
2 replies to this topic
dannybens
  • Guests
  • Last active:
  • Joined: --
Hello,

I am very VERY novice at AHK, but so far I was able to do the things I wanted.
My last quest was to create a hotkey that eliminates a window from the Alt Tab sequence.

I was able to do so, using the WinSet Enable / Disable function, but this also eliminates my ability to interact with this window.

Can anyone please point me to a different function (if it exists) to only eliminate a window's alt tab sequence icon?

Thanks in advance.

evl
  • Members
  • 1237 posts
  • Last active: Oct 20 2010 11:41 AM
  • Joined: 24 Aug 2005
Well under the WinSet command it says:

WinSet, ExStyle, ^0x80, WinTitle ; Toggle the WS_EX_TOOLWINDOW attribute, which removes/adds the window from the alt-tab list.


So here F12 would toggle the state:

F12::
  Winget, id, id, A
  WinSet, ExStyle, ^0x80,  ahk_id %id% ; 0x80 is WS_EX_TOOLWINDOW
Return


dannybens
  • Guests
  • Last active:
  • Joined: --
Excellent!
Thanks a lot

(Its not that I was lazy, I simply did not find it :) )