Code: Select all
WinGetActiveTitle, title
FoundPos := RegExMatch(%title%, "\K\d{2,}-\d{2,}-\d{2,}(?=\s)")
If (FoundPos = 1)
{
<Rest of program>
}
For instance: "Example window 12-34-56 blah blah" should return FoundPos =1
My code doesn't work, I'm doing something wrong... Could someone help?