Jump to content

Recommended Posts

Posted (edited)

Hi all,

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

Edited by nend
Posted

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

Posted

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
Posted

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.

Posted

  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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...