ToolWindow code Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Kevin_yeh2020
Posts: 106
Joined: 11 Apr 2020, 00:54

ToolWindow code

09 Apr 2021, 23:55

Hello,

Can you tell me how to do the following three functions at the same time?
1. Hide the Testing window below the screen
2. Delete the function of GuiClose in the upper right corner
3. Keep moving window and minimize box function

Code: Select all

Gui +AlwaysOnTop +MinimizeBox ; +ToolWindow
Gui, Color, dcdcdc
Gui, Show, x131 y91 h363 w305,Testing
Gui, Add, Button, 162 y17 w50,Close
Return

ButtonClose:
Gui, Destroy
Return

GuiClose:
ExitApp
Rohwedder
Posts: 7681
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: ToolWindow code  Topic is solved

10 Apr 2021, 00:45

Hallo,
perhaps?:

Code: Select all

Gui +AlwaysOnTop +MinimizeBox +Owner +HwndHGui ; +ToolWindow
Gui, Color, dcdcdc
HMenue := DllCall("GetSystemMenu", "Ptr", HGui, "UInt", 0, "UPtr")
DllCall("DeleteMenu", "Ptr", HMenue, "UInt", 0xF060, "UInt", 0) ; CLOSE
Gui, Show, x131 y91 h363 w305,Testing
Gui, Add, Button, 162 y17 w50, Close
Return

ButtonClose:
Gui, Destroy
Return

GuiClose:
ExitApp
Kevin_yeh2020
Posts: 106
Joined: 11 Apr 2020, 00:54

Re: ToolWindow code

10 Apr 2021, 02:18

mikeyww wrote:
10 Apr 2021, 00:45
HideOptions and styles
Hi mikeyww,

Thanks.
Kevin_yeh2020
Posts: 106
Joined: 11 Apr 2020, 00:54

Re: ToolWindow code

10 Apr 2021, 02:18

Rohwedder wrote:
10 Apr 2021, 00:45
Hallo,
perhaps?:

Code: Select all

Gui +AlwaysOnTop +MinimizeBox +Owner +HwndHGui ; +ToolWindow
Gui, Color, dcdcdc
HMenue := DllCall("GetSystemMenu", "Ptr", HGui, "UInt", 0, "UPtr")
DllCall("DeleteMenu", "Ptr", HMenue, "UInt", 0xF060, "UInt", 0) ; CLOSE
Gui, Show, x131 y91 h363 w305,Testing
Gui, Add, Button, 162 y17 w50, Close
Return

ButtonClose:
Gui, Destroy
Return

GuiClose:
ExitApp
Hi Rohwedder,

Thanks.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: GEOVAN, ShatterCoder and 140 guests