Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyboard Shortcut - Go to the Next Page in Google Search Results
#2
Lightbulb 
Hello denilama,

I found your AHK script quite useful! Basing on yours, here's a slight modification which can potentially speedup 200ms:

Code:
LastTitleMatchMode := A_TitleMatchMode
SetTitleMatchMode 2
if WinActive("Google Search")
    Send ^l
    Sleep 200
    SendInput javascript:document.getElementById("pnnext").click()`n
}
SetTitleMatchMode %LastTitleMatchMode%

In addition, non-English users (for example Chinese) have to change to RegEx matching mode to make it work:

Code:
SetTitleMatchMode RegEx
if WinActive("Google\s\x{641c}\x{5c0b}") {  ; "Google 搜尋"
; or WinActive("Google\s\x{641c}\x{5bfb}")  ; "Google 搜寻"

Cheers,
davidhcefx
Reply


Messages In This Thread
RE: Keyboard Shortcut - Go to the Next Page in Google Search Results - by davidhcefx - 03-15-2022, 09:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)