AutoHotkey Community

It is currently May 27th, 2012, 8:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: July 17th, 2006, 6:56 am 
Offline

Joined: January 7th, 2006, 1:38 pm
Posts: 47
Location: Oslo, Norway
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2006, 10:06 am 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2006, 10:31 am 
Offline

Joined: January 7th, 2006, 1:38 pm
Posts: 47
Location: Oslo, Norway
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" :oops:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2006, 10:53 am 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
Ok, done: Alt-Tab fix when minimized to tray

_________________
Is there another word for synonym?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: tomoe_uehara, Xx7 and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group