Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires AutoHotkey v2.0
- #include .\UIA-v2-main\Lib\UIA.ahk
- while WinExist("WABBAJACK")
- {
- if WinExist("Browser Window")
- {
- downloadWindowEl := UIA.ElementFromHandle("Browser Window ahk_exe Wabbajack.exe")
- try
- {
- downloadWindowEl.FindElement({Type:"Button",Name:"SLOW DOWNLOAD"}).Click() ; Try invoking download button
- }
- catch
- {
- sleep 1000
- }
- else
- {
- sleep 8000
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement