tabnation

open chrome tabs then close

Feb 26th, 2021
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. SetTitleMatchMode, 2
  2.  
  3. f1::
  4. Run, Chrome.exe https://docs.microsoft.com/en-us/visu...​
  5. Run, Chrome.exe https://www.youtube.com/user/tadamm​
  6. Return
  7.  
  8. F2::
  9. If WinExist("Google")
  10. {
  11. WinActivate, ahk_class Chrome_WidgetWin_1
  12. Loop 10{
  13. WinGetTitle, CurrentWindowTitle, ahk_class Chrome_WidgetWin_1
  14. If CurrentWindowTitle contains Creating
  15. {
  16. Send ^w
  17. Return
  18. }
  19. Else
  20. {
  21. Send, ^{Tab}
  22. }
  23. }}
Advertisement
Add Comment
Please, Sign In to add comment