ahk_id in EXCLUDETITLE for window groups?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

ahk_id in EXCLUDETITLE for window groups?

16 Dec 2018, 14:45

might be having a brain fart, but can i do this somehow?

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
run the code, hover over the middle notepad window, and press the F6 hotkey

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

Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: ahk_id in EXCLUDETITLE for window groups?

17 Dec 2018, 01:15

Hello guest3456 :wave:.
i think the ExcludeTitle params only accept text, and dont accept any of the ahk_* criteria that the WinTitle does
Unfortunately, that is correct.

Cheers.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: ahk_id in EXCLUDETITLE for window groups?

17 Dec 2018, 07:27

Helgef wrote:
17 Dec 2018, 01:15
Hello guest3456 :wave:.
i think the ExcludeTitle params only accept text, and dont accept any of the ahk_* criteria that the WinTitle does
Unfortunately, that is correct.

Cheers.
are there any clever ways i could achieve this?

i mean i guess i could just save the hwnds in my own comma separated list or whatever instead of using a "group"


Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ShatterCoder, Xaucy and 176 guests