Attached is my code. Page Up/Page Down/Close is working as expected, but Max/Min is not.
Code: Select all
</s>Gui, +LastFound +AlwaysOnTop +ToolWindow +Caption +Border +E0x08000000 ; 0x08000000 WS_EX_NOACTIVATE
Gui, Add, Button, w90 h90 gMin, Min
Gui, Add, Button, w90 h90 gPgUP ,Page`nUp
Gui, Add, Button, w90 h90 gMax ys, Max
Gui, Add, Button, w90 h90 gPgDown , Page`nDown
Gui, Add, Button, w90 h90 gClose ys, Close
Gui, Show ,, SimpleControl
return
PgUP:
{
SendInput, {PgUp}
return
}
PgDown:
{
SendInput, {PgDn}
return
}
Min:
{
; WinActivate
; WinMinimize
return
}
Max:
{
; WinActivate
; WinMaximize
return
}
Close:
{
SendInput, !{F4}
return
}
GuiClose:
ExitApp<e>