Jump to content
Sign in to follow this  
nend

Block minimize of a window even when use windows key + d

Recommended Posts

nend

Hi all,

Is it possible to block the minimize option from a windows even when the windows key + d is used?

Edited by nend

Share this post


Link to post
Share on other sites
Xenobiologist

WinLock.dll can block the keys :graduated:


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
nend

Yeah but that will block it for al my windows and keys.

I just don't wan't to block it for al windows only for my program.

Share this post


Link to post
Share on other sites
JoHanatCent

Not Blocking but could help?

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$myGUI = GUICreate("My Gui", 357, 197, 192, 124, BitOR($WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX))
$Button1 = GUICtrlCreateButton("Press Me!", 48, 64, 200, 50)
GUISetState(@SW_SHOW)
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case $GUI_EVENT_MINIMIZE
GUISetState(@SW_RESTORE)
Case $Button1
MsgBox(0, '', 'You pressed the Button!', 2)
Case $GUI_EVENT_MAXIMIZE
WinSetState("My Gui", "", @SW_MAXIMIZE)
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd

Share this post


Link to post
Share on other sites
nend

Hoi JohanatCent,

Thanks for you reply, but this will only work when you minimize it with the minimize button.

But what I'am looking for is that this will work with "windowskey + d"

I also tryd it with WinGetState but the function won't regonise it.

Share this post


Link to post
Share on other sites
martin

Hoi JohanatCent,

Thanks for you reply, but this will only work when you minimize it with the minimize button.

But what I'am looking for is that this will work with "windowskey + d"

I also tryd it with WinGetState but the function won't regonise it.

You could make a window which has no $WS_SYSMENU and I think that will not minimize for Windows + D.

You can add your own buttons to allow manual minimizing or maximizing.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×