Thank you. I'll try it.I recently added Acc_EnumChildren to the Acc Library. Try using this:
Wait until site has finished loading?
Started by
thegoat54
, Nov 17 2011 04:21 AM
19 replies to this topic
#16
-
Posted 27 November 2011 - 04:31 AM
Please share some of these websites; I'd like to try the code provided by jethrow above with these websites.Although, on some websites, certain content continues to load even after the reload button reappears.
Thanks.
#17
-
Posted 27 November 2011 - 02:05 PM
#18
-
Posted 27 November 2011 - 07:27 PM
Win7 (x64)
Look up commands faster by using the AutoHotkey Help File's index.
Start→AllPrograms→AutoHotkey→AutoHotkey Help File
The issue is that webpage has frames. You could just wait for an element on the page to exist:
*Note - this requires the update I made to the Acc Library today.
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.
#19
-
Posted 27 November 2011 - 11:16 PM
Thanks for sharing!
#20
-
Posted 28 November 2011 - 05:02 AM
Win7 (x64)
Look up commands faster by using the AutoHotkey Help File's index.
Start→AllPrograms→AutoHotkey→AutoHotkey Help File