Any thoughts?
Code: Select all
#SingleInstance, Force
#NoEnv
#Include C:\Users\tdidr\Desktop\Scripts\Chrome.ahk_v1.2\Chrome.ahk
!rbutton::
page := Chrome.GetPage()
Loop, 10
{
num := A_Index-1
PDFS = document.querySelectorAll("a[href*='pdf']")[%num%].dispatchEvent(new MouseEvent( "click", { "button":1, "which":2}))
try
{
page.Evaluate(PDFS)
sleep 100
}
catch e
{
return
}
}
return