Advertisement
tabnation

auto stream deck v1

Apr 19th, 2022
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. f2::reload
  2. ;===================================================
  3. ; GUI and Settings
  4. ;===================================================
  5. f1::
  6. Hidden1=0
  7. Hidden2=0
  8. settitlematchmode, 2
  9. CoordMode, Mouse, Screen
  10.  
  11. SysGet, Mon3, Monitor, 3
  12. Mon3Right := Mon3Right - Mon3Left
  13. Mon3Bottom := Mon3Bottom - Mon3Top
  14.  
  15. Gui, Destroy
  16. Gui,+AlwaysOnTop
  17. Gui, Color, White
  18.  
  19. ;open all tabs in chrome
  20. Gui, Add, Button, x12 y9 w90 h90 gGoodMorning, All Tabs
  21.  
  22. ;remote
  23. Gui, Add, Button, x122 y9 w90 h90 gRemoteSub, Remote
  24. Gui, Add, Picture, x62 y129 w110 h100 vBremote1 gLast Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\last.png
  25. Gui, Add, Picture, x192 y129 w100 h100 vBremote2 gPause Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\pause.png
  26. Gui, Add, Picture, x312 y129 w110 h100 vBremote3 gPlay Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\play.png
  27. Gui, Add, Picture, x442 y129 w110 h100 vBremote4 gNext Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\next.png
  28. Gui, Add, Picture, x62 y279 w110 h80 vBremote5 gMute Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\mute.png
  29. Gui, Add, Picture, x192 y279 w100 h80 vBremote6 gVolDown Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\vol down.png
  30. Gui, Add, Picture, x312 y279 w100 h80 vBremote7 gVolUp Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\vol up.png
  31. Gui, Add, Picture, x712 y129 w50 h60 vBremote8 gPandora Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\pandora.jpg
  32. Gui, Add, Picture, x792 y129 w50 h60 vBremote9 gYT Hidden, C:\Users\Thom\Desktop\Auto S Deck\pictures\yt.png
  33.  
  34. ;gaming
  35. Gui, Add, Button, x242 y9 w90 h90 gGaming , Gaming
  36.  
  37.  
  38. Gui, Show, x%Mon3Left% y%Mon3Top% w%Mon3Right% h%Mon3Bottom%, Auto S Deck
  39.  
  40. Return
  41.  
  42.  
  43. GoodMorning:
  44. run, www.youtube.com
  45. sleep 1000
  46. run, www.reddit.com
  47. sleep 1000
  48. run, www.discord.com
  49. sleep 1000
  50. run, www.facebook.com
  51. sleep 1000
  52. run, www.beech.org/webmail
  53. sleep 1000
  54. run, https://mail.google.com/mail/u/0/?tab=rm&ogbl#inbox
  55. Return
  56.  
  57.  
  58. RemoteSub:
  59. if !( Hidden1)
  60. { ; if results are false, 0 or blank...
  61. GuiControl, Show, Bremote1
  62. GuiControl, Show, Bremote2
  63. GuiControl, Show, Bremote3
  64. GuiControl, Show, Bremote4
  65. GuiControl, Show, Bremote5
  66. GuiControl, Show, Bremote6
  67. GuiControl, Show, Bremote7
  68. GuiControl, Show, Bremote8
  69. GuiControl, Show, Bremote9
  70. Hidden1 = 1
  71. }
  72. else
  73. {
  74. GuiControl, Hide, Bremote1
  75. GuiControl, Hide, Bremote2
  76. GuiControl, Hide, Bremote3
  77. GuiControl, Hide, Bremote4
  78. GuiControl, Hide, Bremote5
  79. GuiControl, Hide, Bremote6
  80. GuiControl, Hide, Bremote7
  81. GuiControl, Hide, Bremote8
  82. GuiControl, Hide, Bremote9
  83. GuiControl, Hide, gaming1
  84. GuiControl, Hide, gaming2
  85. GuiControl, Hide, gaming3
  86. GuiControl, Hide, gaming4
  87. GuiControl, Hide, gaming5
  88. GuiControl, Hide, gaming6
  89. GuiControl, Hide, gaming7
  90. GuiControl, Hide, gaming8
  91. GuiControl, Hide, gaming9
  92. Hidden1 = 0
  93. }
  94. Return
  95.  
  96. Gaming:
  97. if !( Hidden2)
  98. { ; if results are false, 0 or blank...
  99. GuiControl, Show, Gaming1
  100. GuiControl, Show, Gaming2
  101. GuiControl, Show, Gaming3
  102. GuiControl, Show, Gaming4
  103. GuiControl, Show, Gaming5
  104. GuiControl, Show, Gaming6
  105. GuiControl, Show, Gaming7
  106. GuiControl, Show, Gaming8
  107. GuiControl, Show, Gaming9
  108. GuiControl, Hide, Bremote1
  109. GuiControl, Hide, Bremote2
  110. GuiControl, Hide, Bremote3
  111. GuiControl, Hide, Bremote4
  112. GuiControl, Hide, Bremote5
  113. GuiControl, Hide, Bremote6
  114. GuiControl, Hide, Bremote7
  115. GuiControl, Hide, Bremote8
  116. GuiControl, Hide, Bremote9
  117. Hidden2 = 1
  118. }
  119. else
  120. {
  121. GuiControl, Hide, gaming1
  122. GuiControl, Hide, gaming2
  123. GuiControl, Hide, gaming3
  124. GuiControl, Hide, gaming4
  125. GuiControl, Hide, gaming5
  126. GuiControl, Hide, gaming6
  127. GuiControl, Hide, gaming7
  128. GuiControl, Hide, gaming8
  129. GuiControl, Hide, gaming9
  130. Hidden2 = 0
  131. }
  132. Return
  133.  
  134. Last:
  135. #IfWinExist ahk_class Youtube
  136. Send, {Media_PREV}
  137. #IfWinExist
  138.  
  139. Return
  140.  
  141. Pause:
  142. Send, {Media_Play_Pause}
  143. Return
  144.  
  145. Play:
  146. #IfWinExist ahk_class Youtube
  147. Send, {Media_Play_Pause}
  148. #IfWinExist
  149.  
  150. Return
  151.  
  152. Mute:
  153. #IfWinExist ahk_class Youtube
  154. Send {VOLUME_MUTE}
  155. #IfWinExist
  156.  
  157. Return
  158.  
  159. Next:
  160. #IfWinExist ahk_class Youtube
  161. Send, {Media_Next}
  162. #IfWinExist
  163.  
  164. Return
  165.  
  166. VolUp:
  167. SoundSet, +5
  168. Return
  169.  
  170. VolDown:
  171. SoundSet, -5
  172. Return
  173.  
  174. Pandora:
  175. Run, https://www.pandora.com/station
  176. Return
  177.  
  178. YT:
  179. Run, www.youtube.com
  180. Return
  181.  
  182.  
  183.  
  184.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement