Code: Select all
;chrome is opened
SendInput "^p" ;print
TextFix := "Chrome Legacy Window`r`nChrome Legacy Window`r`n"
TextVar := ""
Loop
{
Sleep 100
WinWait "ahk_exe vivaldi.exe", , 1
TextVar := WinGetText()
}
Until TextFix == TextVar ;check if print screen openend the second window
;do something in the printing dialog