hello i need some help or pointers
my gui has a lot program specific buttons, for the last 2 days i have tried to get my gui to follow the program i use in when i minimize maximize that window but i cant figure it out
i tried using winget minmax WinWaitActive WinWaitNotActive WinRestore, i tried to set a timer on winget
but reality is this is all above my head i cant piece it together i was hoping for some pointers
thank you
minimize/maximize my gui when a window is min/max Topic is solved
minimize/maximize my gui when a window is min/max
Last edited by OCP on 26 Jul 2018, 22:37, edited 1 time in total.
Re: minimize/maximize my gui when a window is min/max Topic is solved
Hi OCP,
The +Owner GUI option has the advantage of being simple to implement but will actually minimize/restore the GUI when the owner is minimized/restored, respectively. Maybe this meets your needs. Example with notepad:
The +Owner GUI option has the advantage of being simple to implement but will actually minimize/restore the GUI when the owner is minimized/restored, respectively. Maybe this meets your needs. Example with notepad:
Code: Select all
#NoEnv
WinWait, ahk_class Notepad
WinGet, ID, ID, % ahkid:="ahk_id " . WInExist() ; ; if all parameters are omitted, WinExist returns the ID of the Last Found Window, if it still exist; yet, WInWait sets the Last Found Window
Gui +Owner%ID% ; make the GUI owned by the window whose ID is the one stored in the variable 'ID'
WinWaitActive % ahkid
Gui, Show, w400 h400 NoActivate
return
Re: minimize/maximize my gui when a window is min/max
interesting that looks fairly simple ill play with this tomorrow
thank you
thank you
Last edited by OCP on 26 Jul 2018, 22:37, edited 1 time in total.