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 

Tweetdeck Minimize / Restore - HowTo?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
thinkstorm



Joined: 17 Aug 2004
Posts: 38

PostPosted: Fri Dec 05, 2008 9:11 pm    Post subject: Tweetdeck Minimize / Restore - HowTo? Reply with quote

Hello,
I have problems with Minimizing/Restoring TweetDeck. If I use the WinMinimize function the application minimizes to the taskbar - when I use the Windows "_" button it actually goes to the system tray. So I'm using the SendMessage function now which does do the trick, but then for some reason neither WinActivate, WinRestore, or WinShow work anymore...

Here's the script:
Code:
RestoreMinimizeTweetDeckWindow()
{
; TweetDeck
; ahk_class ApolloRuntimeContentWindow
   DetectHiddenWindows, On
   SetTitleMatchMode, 1
   WinGet, hwnd, ID, TweetDeck ahk_class ApolloRuntimeContentWindow
   If hwnd
   {
      ifWinActive, ahk_id %hwnd%
      {
         SendMessage, 0x112, 0xF020,,, ahk_id %hwnd%
      } else {
         ; any idea?
      }
   } else {
      Run, C:\Program Files\TweetDeck\TweetDeck.exe
   }
}


Any idea what I have to put into the else part? SendMessage with 0x1c doesn't do the trick, it seems...
_________________
Cheers,

Thorsten
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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