How to detect if a webpage is change

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
songdg
Posts: 557
Joined: 04 Oct 2017, 20:04

How to detect if a webpage is change

10 May 2019, 01:47

I use Internet Explorer, I want to know if there is a way to detect the webpage is changed and fully loaded.For example, I click on one link, then the page's contents is different from previous.
User avatar
tank
Posts: 3122
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: How to detect if a webpage is change

10 May 2019, 08:09

wait for page to load was answered here
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64206

i suggest use image search to detect if it changed
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
A_AhkUser
Posts: 1147
Joined: 06 Mar 2017, 16:18
Location: France
Contact:

Re: How to detect if a webpage is change

10 May 2019, 09:59

This might also be relevant:

Code: Select all

#Persistent
GUI, Add, ActiveX, vwb w400 h400, Shell.Explorer
wb.Navigate("https://duckduckgo.com/")
while (wb.busy || wb.readyState <> 4)
   sleep, 100
ComObjConnect(wb, {BeforeNavigate2: "onBeforeNavigate2"})
GUI, Show, w400 h400
return

onBeforeNavigate2(_p*) { ; BeforeNavigate2 Event (https://docs.microsoft.com/en-us/previous-versions/aa768326(v=vs.85))
	ToolTip % "Navigating @" _p.2 "..."
}
my scripts
songdg
Posts: 557
Joined: 04 Oct 2017, 20:04

Re: How to detect if a webpage is change

12 May 2019, 21:37

tank wrote:
10 May 2019, 08:09
wait for page to load was answered here
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64206

i suggest use image search to detect if it changed
Yes, this is maybe the best way. Thanks!
songdg
Posts: 557
Joined: 04 Oct 2017, 20:04

Re: How to detect if a webpage is change

12 May 2019, 21:37

A_AhkUser wrote:
10 May 2019, 09:59
This might also be relevant:

Code: Select all

#Persistent
GUI, Add, ActiveX, vwb w400 h400, Shell.Explorer
wb.Navigate("https://duckduckgo.com/")
while (wb.busy || wb.readyState <> 4)
   sleep, 100
ComObjConnect(wb, {BeforeNavigate2: "onBeforeNavigate2"})
GUI, Show, w400 h400
return

onBeforeNavigate2(_p*) { ; BeforeNavigate2 Event (https://docs.microsoft.com/en-us/previous-versions/aa768326(v=vs.85))
	ToolTip % "Navigating @" _p.2 "..."
}
Thanks for your help!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: NullRefEx, ShatterCoder and 92 guests