nend Posted September 30, 2011 Posted September 30, 2011 (edited) Hi all, Is it possible to block the minimize option from a windows even when the windows key + d is used? Edited September 30, 2011 by nend
Xenobiologist Posted September 30, 2011 Posted September 30, 2011 WinLock.dll can block the keys 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
nend Posted September 30, 2011 Author Posted September 30, 2011 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.
JoHanatCent Posted September 30, 2011 Posted September 30, 2011 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
nend Posted September 30, 2011 Author Posted September 30, 2011 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.
martin Posted September 30, 2011 Posted September 30, 2011 On 9/30/2011 at 1:26 PM, nend said: 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now