Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; https://stackoverflow.com/questions/32870613/check-all-tabs-in-browser-with-ahk
- #IfWinActive, Sublime
- F5::
- Send, ^s
- if (WinExist("Chrome"))
- {
- IfWinActive, html
- {
- ClipSaved := Clipboard
- Send, ^f ; Find
- ; Focus the title
- Send, <title>
- Send, {Enter}
- Send, {Esc}
- Send, {Right}
- Send, ^+{Right} ; Select the title
- Send, ^c ; Copy the title
- WinActivate, Chrome
- SearchedTab := Clipboard
- Loop, 20
- {
- Sleep, 40
- IfWinActive, %SearchedTab%
- break
- else
- send {Control down}{Tab}{Control Up}
- }
- Clipboard := ClipSaved
- return
- }
- }
- else
- Send, {f5}
- return
- #If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement