ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Protecting windows from minimising

<< < (2/2)

mediaguycouk:
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

lanux128:
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

Navigation

[0] Message Index

[*] Previous page

Go to full version