Wait until a google chrome page charge then continue

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
guguf
Posts: 33
Joined: 12 Sep 2019, 09:20

Wait until a google chrome page charge then continue

22 Oct 2019, 05:03

Hi Everyone,

I have an issue, i would like to know if it's possible to put something in the script that say to wait until the page charge in Google Chrome ?

Code: Select all

^+i::
IfWinExist ahk_exe chrome.exe
{
winactivate, ahk_exe chrome.exe
winwaitactive, ahk_exe chrome.exe
}
Else
{
Run, C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
}
Sleep 1000
IfWinExist, Validate an IBAN ahk_class Chrome_WidgetWin_1
{ 
WinActivate Validate an IBAN
Send {TAB 14}
Sleep 300
Send {enter}
Sleep 500
Send {TAB 21}
Send %clipboard%
Send {enter}
}
Else
{
Send ^t
Sleep 500
[b]Send https://www.ibancalculator.com/iban_validieren.html[/b]
Send {enter}
Sleep 2000
Send {TAB 21}
Send %clipboard%
Send {enter}
}
return
I put in bold the link (the one that Google Chrome need to wait after the enter key)

Thank you for your help.

Best regards,
Guguf
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: Wait until a google chrome page charge then continue

27 Oct 2019, 04:52

Wait until the page loads? You are looking for that?

With Chrome (without using a Chrome driver) you can only guess by adding a sleep.

If you use COM you could wait more accurately
DRocks
Posts: 565
Joined: 08 May 2018, 10:20

Re: Wait until a google chrome page charge then continue

27 Oct 2019, 06:42

Use image search and identify the Tab icon.

Theres a loading animation going on that icon when the Tab is loading. When its done the icon returns to normal without animation.

Make a Loop that will break when the normal icon image is found (not loading any more) or break if its been looping for more than a certain amount of times.

Tell me if you need more details
guguf
Posts: 33
Joined: 12 Sep 2019, 09:20

Re: Wait until a google chrome page charge then continue

02 Nov 2019, 14:22

Hi,

Yes I think it's a good idead and how I do that ? ^^'

Best regards,
Guguf

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], mikeyww, Nerafius and 90 guests