Code: Select all
#Persistent
Loop 3
{
Run, notepad.exe,,, thispid
WinWait, ahk_pid %thispid%
WinMove, ahk_pid %thispid%,, 200*(A_Index-1), 0, 200, 200
}
GroupAdd, NotepadGroup, ahk_class Notepad
SetTimer, ShowTooltip, 100
return
ShowTooltip:
MouseGetPos,,, mousehwnd
Tooltip, % (WinExist("ahk_id " mousehwnd " ahk_group NotepadGroup") ? "IN" : "NOT in") . "`tNotepadGroup"
. "`n" (WinExist("ahk_id" mousehwnd " ahk_group myGroup") ? "IN" : "NOT in") . "`tmyGroup"
return
F6::
MouseGetPos,,, m2hwnd
GroupAdd, NotepadGroup,,,, ahk_id %m2hwnd% ; <--- not allowing ahk_id in ExcludeTitle param
GroupAdd, myGroup, ahk_id %m2hwnd%
return
Esc::ExitApp
i want to exclude one specific window hwnd from an existing Window Group, but i think the ExcludeTitle params only accept text, and dont accept any of the ahk_* criteria that the WinTitle does