Win wait

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
farzad7970
Posts: 2
Joined: 28 May 2022, 02:46

Win wait

Post by farzad7970 » 29 May 2022, 00:28

hi i want use winwait to check page load but its dont work my its like that

Code: Select all

run,https://www.google.com/
WinWait,google,,6,,
if ErrorLevel
{
 
    MsgBox, WinWait timed out.
    
    return
}
else
   MsgBox,itsworking
[Mod edit: [code][/code] tags added.]
Last edited by gregster on 29 May 2022, 02:21, edited 1 time in total.
Reason: Topic moved from 'Forum Issues'.

Rohwedder
Posts: 7635
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Win wait

Post by Rohwedder » 29 May 2022, 08:51

Hallo,
try:

Code: Select all

run, https://www.google.com/
WinWait, Google,, 6
if ErrorLevel
{
	MsgBox, WinWait timed out.
	return
}
else
	MsgBox, itsworking
Return
https://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm
Regardless of the current TitleMatchMode, WinTitle, WinText, ExcludeTitle and ExcludeText are case sensitive. The only exception is the case-insensitive option of the RegEx mode; for example: i)untitled - notepad.

With Regex:

Code: Select all

SetTitleMatchMode, Regex
run, https://www.google.com/
WinWait, i)google,, 6
if ErrorLevel
{
	MsgBox, WinWait timed out.
	return
}
else
	MsgBox, itsworking
Return

Post Reply

Return to “Ask for Help (v1)”