euphonics

Untitled

Feb 23rd, 2022 (edited)
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' Command name:
  2.  
  3. <media_options> track
  4.  
  5. ' Media options list:
  6.  
  7. mute
  8. next
  9. pause
  10. play
  11. previous
  12.  
  13. ' My Advanced Scripting script:
  14.  
  15. '#Uses "C:\Users\username\Documents\Dragon\wristofdoom.txt"
  16. Sub Main
  17.     AHKmediaOptions(ListVar1)
  18. End Sub
  19.  
  20.  
  21. ' From my functions file WristOfDoom.txt:
  22.  
  23. Function AHKmediaOptions(ListVar1)
  24. ' Depends on autohotkey script epomaker.ahk
  25.     If ListVar1 = "pause" Then
  26.         SendKeys "{Windowshold}{F8}", 1
  27.     ElseIf ListVar1 = "play" Then
  28.         SendKeys "{Windowshold}{F8}", 1
  29.     ElseIf ListVar1 = "mute" Then
  30.         SendKeys "{Windowshold}{F10}", 1
  31.     ElseIf ListVar1 = "next" Then
  32.         SendKeys "{Windowshold}{F9}", 1
  33.     ElseIf ListVar1 = "previous" Then
  34.         SendKeys "{Windowshold}{F7}", 1
  35.     End If
  36. End Function
  37.  
  38.  
  39. ' From Autohotkey file
  40.  
  41. #F7::Media_Prev
  42. #F8::Media_Play_Pause
  43. #F9::Media_Next
  44. #F10::Volume_Mute
  45. #F11::Volume_Down
  46. #F12::Volume_Up
  47.  
RAW Paste Data Copied