Code: Select all
SetTitleMatchMode, Regex
IfWinExist, Privat ITP file.*1
WinWait, Privat ITP file.*2 ; the code just skips that line, doesn't react to winwait or winwaitactive. I want to force the tool wait until the new file will appear.
; the full name of file can be Privat ITP file (2015)2 - Excel or Privat ITP file (2015)1 - Excel