Hi.
@Dummie1138
The script below waits until a page is completely loaded and then continues to the next. This should ensure that all pages are always loaded.
The only thing you have to pay attention to is that you don't change the tabs as long as the script is active, otherwise the script won't notice whether the current tab has finished loading.
@Dummie1138
The script below waits until a page is completely loaded and then continues to the next. This should ensure that all pages are always loaded.
The only thing you have to pay attention to is that you don't change the tabs as long as the script is active, otherwise the script won't notice whether the current tab has finished loading.
CODE:
#Requires AutoHotkey >=2.0
#Warn
#SingleInstance
BrowserPath := "C:\Program Files\LibreWolf\librewolf.exe"
MyUrls := [["François Boudine" , "https://hephaistos.azurewebsites.net/character/1248425706"],
[ "Markus Marckson" , "https://hephaistos.azurewebsites.net/character/740605618" ],
[ "Belka No. 424" , "https://hephaistos.azurewebsites.net/character/562694983" ],
[ "Odhran DeHaugney" , "https://hephaistos.azurewebsites.net/character/1652325866"],
[ "Vennesa" , "https://hephaistos.azurewebsites.net/character/249664700" ],
[ "Biase" , "https://hephaistos.azurewebsites.net/character/1825282164"],
[ "Telovee" , "https://hephaistos.azurewebsites.net/character/1727792860"],
[ "Starfinder GM Screen" , "https://docs.google.com/document/d/1y4LfKaGBGe1txek4EvTVMSRMb4QxiUvHfUK5NWWyvzw/edit"],
[ "Starfinder Player Reference Sheet", "https://docs.google.com/document/d/1HrggLPd3Kl0_YMk7EWNwWTZSnABR8qvxrl2UOwN4ZQk/edit"]]
if !WinExist("ahk_exe librewolf.exe") {
Run BrowserPath . A_Space . MyUrls[1][2]
WinWait "ahk_exe librewolf.exe"
Loop {
Sleep 250
if InStr(WinGetTitle("ahk_exe librewolf.exe"), MyUrls[1][1]) {
MyUrls.RemoveAt(1)
break
}
if A_Index > 240 { ; 1min
MyUrls.RemoveAt(1)
break
}
}
}
Loop MyUrls.Length {
Run BrowserPath . A_Space . MyUrls[Index := A_Index][2]
Loop {
Sleep 250
if InStr(WinGetTitle("ahk_exe librewolf.exe"), MyUrls[Index][1])
break
if A_Index > 240
break
}
}
MsgBox "done"
Statistics: Posted by Noitalommi_2 — Today, 09:34