I ran WinSpy on that window and here is the screenshot:

Please, ignore "Vortex Studio" - I need the script to work in some sub-windows of it, and they have different title, so binding to "Vortex Studio" is incorrect.
The script should be somehow bound to the ahk_class, but the problem is that only first part of it is static (WindowsForms), the rest is dynamic.
Please, someone tell me how to write the "if win active" condition for my case correctly.




