AutoHotkey Community

It is currently May 27th, 2012, 4:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 29th, 2005, 11:38 am 
Offline

Joined: November 3rd, 2004, 11:24 am
Posts: 51
If I activate the window that minimized and active is -- it will not be restored and showed. As example: Mozilla Firefox -- if it is alone runned and minimized, it stay active and WinActivate has no effect.

_________________
My AHK project: http://landvermesser.tripod.com/


Report this post
Top
 Profile  
Reply with quote  
PostPosted: September 29th, 2005, 12:19 pm 
Online
User avatar

Joined: December 20th, 2004, 12:19 pm
Posts: 798
Location: LooseChange911.com Ask Questions, Demand Answers █ The WTC bldgs █ shouldn't have fallen █ that fast
Landvermesser wrote:
it will not be restored and showed. ...it stay active and WinActivate has no effect.

Trying to ignore the Engrish...I press on...

WinActivate & WinRestore are different things...activate basically (I think) means keyboard focus, a window can have focus but still be minimized. You should restore the window if you want to unminimize it...then if just restoring don't focus the window, add WinActivate too.

Engrish translation...
WinActivate & WinRestore different thing...activate mean keyboard focus, window have focus but minimized. You restore window if wants unminimize...then restoring no focus window, adds WinActivate.

_________________
AutoHotkey-Hotstring.ahk - Helping the world spell "AutoHotkey" correctly! (btw, it's a lowercase k!)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2005, 1:38 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
By design, WinActivate will unminimize the window if it is minimized. If this does not happen in the case of Mozilla Firefox, try using the following:
Code:
WinGet, MinMax, MinMax, WinTitle
if MinMax < 0  ; The window is minimized.
    PostMessage, 0x112, 0xF120,,, WinTitle  ; 0x112 = WM_SYSCOMMAND, 0xF120 = SC_RESTORE
WinActivate WinTitle  ; Done only after it has been unminimized.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2005, 1:50 pm 
Offline

Joined: November 3rd, 2004, 11:24 am
Posts: 51
Thanks Chris.

_________________
My AHK project: http://landvermesser.tripod.com/


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: No registered users and 1 guest


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