---------------
I want to start a script only when some special windows are active - so I think "WinActive" is the right was.
All windows are different, but similar. The ahk_class begins always with "WindowsForms10.Window.8.app........" - see attachment.
Should be simple, but I'm failing ...

What's the right code?
Thanks and have a fine evening?
Peter2