Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 08:05:12 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Protecting windows from minimising  (Read 3023 times)

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 245
    • View Profile
    • Mediaguy
    • Donate to Member
Protecting windows from minimising
« on: June 24, 2008, 03:03:01 AM »
I hope someone can help me. I've just moved computers to one with a dual display (rather than two separate computers). On the right is outlook, on the left is everything else.

I use Start + D very often to show the desktop, but I'd like Outlook (or a blanket 'whatever is on the second monitor') to stay put. Do you know of anything like that? I'm finding it very hard to google as I can't get the keywords to pick up what I'm trying to say.

Many thanks

Graham Robinson
Learning C# - Graham Robinson

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: Protecting windows from minimising
« Reply #1 on: June 24, 2008, 03:20:30 AM »
Just an idea, not sure if it will work or not:

Try any of the s/w using which you can pin programs so they always stay on top. Perhaps when you minimize everything else, outlook will remain after you've pinned it.
<a href="https://sridharkatakam.com">My blog</a>

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Protecting windows from minimising
« Reply #2 on: June 24, 2008, 06:11:47 AM »
as a matter of fact, there is some code that keeps OSD Mute from minimizing. so, will be you using this feature for only Outlook or other programs as well? :)

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 245
    • View Profile
    • Mediaguy
    • Donate to Member
Re: Protecting windows from minimising
« Reply #3 on: June 24, 2008, 06:39:39 AM »
Possibly, but I don't really care about anything but outlook disappearing.

If it was AHK, would that mean I couldn't use Start D? I use it without thinking, that's my main problem.
Learning C# - Graham Robinson

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Protecting windows from minimising
« Reply #4 on: June 24, 2008, 08:53:20 AM »
try this AHK script then: NoMin v1.0. i'm not sure what is the title of the Outlook window, so i went for "ahk_class OpusApp". but you may use the actual title by adding them in "ahk_class OpusApp"'s place, though.

#SingleInstance force
#Persistent
DetectHiddenWindows, On
SendMode, Input
SetTitleMatchMode, 2
appname=NoMin


#d::
Send, #d
IfWinExist, ahk_class OpusApp
  PostMessage, 0x112, 0xF120,,, ahk_class OpusApp
Return
« Last Edit: June 24, 2008, 08:58:40 AM by lanux128 »

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 245
    • View Profile
    • Mediaguy
    • Donate to Member
Re: Protecting windows from minimising
« Reply #5 on: June 24, 2008, 10:25:39 AM »
This is probably the fact that I haven't used AHK before but...

It still minimises, it is just that when it comes back up again it goes back as a restore rather than a maximised.

Script currently looks like this

#SingleInstance force
#Persistent
DetectHiddenWindows, On
SendMode, Input
SetTitleMatchMode, 2
appname=NoMin


#d::
Send, #d
IfWinExist, Outlook
  PostMessage, 0x112, 0xF120,,, Outlook
Return
Learning C# - Graham Robinson

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Protecting windows from minimising
« Reply #6 on: June 24, 2008, 08:10:08 PM »
hmm.. a maximised window. ok, try this then..

#SingleInstance force
#Persistent
DetectHiddenWindows, On
SendMode, Input
SetTitleMatchMode, 2
appname=NoMin


#d::
IfWinExist, Outlook
  WinGet isMax, MinMax, Outlook
Send, #d
If isMax
  PostMessage, 0x112, 0xF030,,, Outlook ;maximize
Else
  PostMessage, 0x112, 0xF120,,, Outlook ;restore
Return