🚀 Kişisel Pencere Yöneticim
👁🗨 Pencereyi Gizleme / Gösterme
ToggleWindow(windowName)
{
WinGet, WinState, MinMax, %windowName%
if (WinState == -1)
{
WinRestore
WinActivate
}
else
{
WinMinimize
WinMinimize ; Tureng için 2 tane pencere açılıyor
}
return
}
ToogleTray(windowName, mode=3)
{
SetTitleMatchMode, %mode%
DetectHiddenWindows, Off
IfWinNotExist, %windowName%
{
WinRestore
WinShow
WinActivate
}
else
{
WinHide
}
return
}
ToogleTrayWithId(ahkId, mode=3)
{
SetTitleMatchMode, %mode%
DetectHiddenWindows, Off
IfWinNotExist, ahk_id %ahkId%
{
WinRestore
WinShow
WinActivate
}
else
{
WinHide
}
return
}
✨ Pencere Yoksa Oluşturma ve Gizleme / Gösterme
🎴 Hesap Makinesini Tray Icon Olarak Açma
#Persistent
Menu, Tray,Icon, Calc.exe, 1
Menu, Tray, NoStandard
Menu, Tray, Add, &Calculator, Calc
Menu, Tray, Add,
Menu, Tray, Standard
Menu, Tray, Default, &Calculator
Return
Calc:
If WinExist("Calculator")
WinClose, Calculator
else
Run, Calc.exe
Return
WinSet, ExStyle, ^0x80, ahk_id %ahkID%
🧐 Aktif Olan Tüm Pencerelerin ID'sini Alma
WinGet, WindowID, List
Loop, % WindowID {
cWindow = % WindowID%A_Index%
WinGetTitle, Title, ahk_id %cWindow%
WinGetClass, Class, ahk_id %cWindow%
Message=% Message "`n" Class "`t`t" Title
}
MsgBox, 64, List of Visible Windows, %Message%
ExitApp