Find out the underlying executable names via task manager, and identify your windows like #IfWinActive, ahk_exe vlc.exe ahk_class QWidget
. Keep the window class, just to make sure there's no other (maybe even hidden) window involved; the narrower the selection, the more reliable it will be.
Using the window title is usually okay, but it should be avoided where possible, since window titles can be dynamic. Especially editors and players almost always have dynamic titles.
Note that ahk_exe
is AHK_L only.