Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Total Commander Alt+tab fix


  • Please log in to reply
3 replies to this topic
TucknDar
  • Members
  • 47 posts
  • Last active: Jun 08 2011 04:48 PM
  • Joined: 07 Jan 2006
Total Commander (http://www.ghisler.com/) has this feature where you can minimize it to the system tray. However, you can still alt+tab to it, but you'll then have to press Enter to restore it, i.e. the infamous (Press ENTER after Alt+Tab) message.

this tiny script fixes that.

#Persistent
#SingleInstance force
#NoTrayIcon

SetTimer subTimer, 2000

subTimer:
	If WinActive( "ahk_class switchwin2" )
	{
		SendInput, {Enter}
	}
Return

Just experiment with the subTimer setting.

SanskritFritz
  • Members
  • 280 posts
  • Last active: Jan 09 2013 02:15 PM
  • Joined: 17 Feb 2005
TucknDar I hope you dont mind if I add this script to our Useful and growing collection of Total Commander scripts?
Is there another word for synonym?

TucknDar
  • Members
  • 47 posts
  • Last active: Jun 08 2011 04:48 PM
  • Joined: 07 Jan 2006

TucknDar I hope you dont mind if I add this script to our Useful and growing collection of Total Commander scripts?

Of course not! If there's anything that could benefit from a change in the tiny piece of code, just do so.

oh, and as you may have noticed, the basic "skeleton" of the script was shamelessly stolen from your "TC title dir script" :oops:

SanskritFritz
  • Members
  • 280 posts
  • Last active: Jan 09 2013 02:15 PM
  • Joined: 17 Feb 2005
Ok, done: Alt-Tab fix when minimized to tray
Is there another word for synonym?