Advertisement
Lorenzo501

Tabs Outliner UIA Scroll Test.ahk

Feb 8th, 2024 (edited)
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey 2.0
  2. #include <UIA>
  3. F3::{
  4.     WinActivate("Tabs Outliner ahk_exe chrome.exe")
  5.         if !(chromeID:= WinWaitActive("Tabs Outliner ahk_exe chrome.exe",, 10))
  6.             return
  7.  
  8.     chromeEl := UIA.ElementFromHandle(chromeID)
  9.     chromeEl["V"].ControlClick("WD", 273, "NA") ; ControlClick is defined in UIA.ahk (it's doing wheeldown 273 times, at 274 it'll scroll upwards instead..)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement