tabnation

cycle chrome tabs look at name

May 27th, 2021
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. settitlematchmode, 2
  2. f1::
  3. If Not WinExist("ahk_exe chrome.exe")
  4. {
  5. Return
  6. }
  7. ;WinGetTitle, Title, A
  8. WinActivate, ahk_class Chrome_WidgetWin_1
  9. Loop{
  10. Send, ^{Tab}
  11. Sleep, 50
  12. WinGetTitle, CurrentWindowTitle, ahk_class Chrome_WidgetWin_1
  13. If CurrentWindowTitle contains Pandora
  14. {
  15. send {right} ;next song
  16. Send {Alt down} ;back to old window
  17. Send {tab}
  18. ;WinActivate, %Title%
  19. Sleep 300
  20. IfWinNotActive, ahk_exe chrome.exe
  21. {
  22. Send {Alt up}
  23. break
  24. Return
  25. }
  26. break
  27. Return
  28. }
  29. }
  30. Return
Advertisement
Add Comment
Please, Sign In to add comment