AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Total Commander Alt+tab fix

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
TucknDar



Joined: 07 Jan 2006
Posts: 47
Location: Oslo, Norway

PostPosted: Mon Jul 17, 2006 5:56 am    Post subject: Total Commander Alt+tab fix Reply with quote

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.

Code:
#Persistent
#SingleInstance force
#NoTrayIcon

SetTimer subTimer, 2000

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


Just experiment with the subTimer setting.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SanskritFritz



Joined: 17 Feb 2005
Posts: 280
Location: Hungary, Budapest

PostPosted: Mon Jul 17, 2006 9:06 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
TucknDar



Joined: 07 Jan 2006
Posts: 47
Location: Oslo, Norway

PostPosted: Mon Jul 17, 2006 9:31 am    Post subject: Reply with quote

SanskritFritz wrote:
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" Embarassed
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SanskritFritz



Joined: 17 Feb 2005
Posts: 280
Location: Hungary, Budapest

PostPosted: Mon Jul 17, 2006 9:53 am    Post subject: Reply with quote

Ok, done: Alt-Tab fix when minimized to tray
_________________
Is there another word for synonym?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group