I actually have done one myself (i just merged to diferent scritpts) with the help of the guys from autohotkey forum. I should just bumped this with that info, but since no one reply i though this was already dead, sorry for the work.
But tks, yours have the hotkey to disable wich is a bonus.
Code:
#SingleInstance Force
#Persistent
SetTimer IrfanView, 100
Return
IrfanView:
WinGet IDs, List, ahk_class GFX_INT_DLG_WINDOW_GAME
Loop %IDs%
{
ID := IDs%A_Index%
If ID not in %Old_IDs%
{
WinWait ahk_id %ID%
GoSub, GetTitle
}
New_IDs .= ID ","
}
StringTrimRight Old_IDs, New_IDs, 1
New_IDs =
Return
GetTitle:
WinID := WinExist("A")
WinGetTitle, CTitle, ahk_id %WinID%
If CTitle=Program Manager
Exit
WinSetTitle, ahk_id %WinID%,, Diamondbet - %CTitle%, Diamondbet