AutoHotkey Community

It is currently May 26th, 2012, 7:36 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: May 8th, 2009, 6:48 pm 
Offline

Joined: February 20th, 2008, 8:08 am
Posts: 22
well I have 2 apps and one of them minimizing another on some event, which may ruin my interaction with it.

can I disable in any way an option to minimize a window? or are there any other solutions? thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 8th, 2009, 6:56 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
Code:
SetTimer, RestoreWindow, 500 ; runs the 'RestoreWindow' subroutine every half a second

RestoreWindow:

WinGet, WinState, MinMax, << some window >>
If MinMax = -1 ; if window is minimized
  WinRestore, << some window >>
else
  return

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 8th, 2009, 8:00 pm 
Offline

Joined: February 20th, 2008, 8:08 am
Posts: 22
ty for reply, its what a came with as well. but it takes time to minimize and restore a window so it will still ruin my script :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 8th, 2009, 9:08 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
You could also try this:

Code:
WinSet, AlwaysOnTop, On, << some window name >>

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 8th, 2009, 9:15 pm 
Offline

Joined: October 22nd, 2008, 11:52 am
Posts: 85
Decreasing the timer lapse could help too. I would use SetTimer.

In addition, you may find this useful:

Tested

Code:
Sl=0 ; Ctr-Left toggles the action
^Left::
If  Sl=0
{
WinGetActiveTitle, T
WinSet, Style, -0xC00000, %T%
Sl=1
Return
}
Sl=0
WinSet, Style, +0xC00000, %T%
Return

_________________
AutoHotKey


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: dmg, Google [Bot], krajan, over21, RaptorX, Yahoo [Bot] and 62 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