Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Wait until site has finished loading?


  • Please log in to reply
19 replies to this topic
LazyMan
  • Members
  • 587 posts
  • Last active: Oct 21 2014 05:13 PM
  • Joined: 17 Feb 2011

I recently added Acc_EnumChildren to the Acc Library. Try using this:

Thank you. :D I'll try it.

LazyMan
  • Members
  • 587 posts
  • Last active: Oct 21 2014 05:13 PM
  • Joined: 17 Feb 2011

Although, on some websites, certain content continues to load even after the reload button reappears.

Please share some of these websites; I'd like to try the code provided by jethrow above with these websites.

Thanks. :)

Honest Abe
  • Members
  • 310 posts
  • Last active: Jan 08 2015 08:56 PM
  • Joined: 07 Jan 2011
Here you go:

3Ds Max Help File

Win7 (x64)
Look up commands faster by using the AutoHotkey Help File's index.
Start→AllPrograms→AutoHotkey→AutoHotkey Help File


jethrow
  • Moderators
  • 2854 posts
  • Last active: May 17 2017 01:57 AM
  • Joined: 24 May 2009
The issue is that webpage has frames. You could just wait for an element on the page to exist:

Run, Firefox.exe "http://download.autodesk.com/us/3dsmax/2012help/index.html?url=files/GUID-8677D7F6-B959-43E2-9E5D-78C3EA4F56F-9.htm,topicNumber=d28e5064"

while Not PropPage
	PropPage := FFGetPropertyPage()
while Not InStr(Link.accName(0), "3ds Max 2012 Subscription Advantage Pack")
	Link := GetChild(PropPage, 5,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,2,2)
PropPage:=Link:="" ; release objects

MsgBox, Page Loaded



FFGetPropertyPage(hwnd="") { ; tested on FireFox v8
	WinGet, hwnd, id, % hwnd? "ahk_id" hwnd:"ahk_class MozillaWindowClass"
	Win := Acc_ObjectFromWindow(hwnd)
	for PropPage in Acc_EnumChildren(Win)
		if Acc_GetRoleText(PropPage.accRole(0))="property page"
			return PropPage
}
GetChild(AccObj, p*) {
   For Each, num in p
      try AccObj := Acc_EnumChildren(AccObj)[num]
      catch
         return
   return AccObj
}

*Note - this requires the update I made to the Acc Library today.

Honest Abe
  • Members
  • 310 posts
  • Last active: Jan 08 2015 08:56 PM
  • Joined: 07 Jan 2011
:O
Thanks for sharing!

Win7 (x64)
Look up commands faster by using the AutoHotkey Help File's index.
Start→AllPrograms→AutoHotkey→AutoHotkey Help File