Guest User

Untitled

a guest
Jun 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. ;
  2. ;
  3. ; AutoHotkey Version: 1.x
  4. ; Language: English
  5. ; Platform: Windows 7
  6. ; Author: Brian Kamrany
  7. ;
  8. ; Script Function: Control iTunes, Windows Media Player, and Winamp easily.
  9.  
  10. ;Numpad Subtraction = next
  11. ;Numpad Multiplication = previous
  12. ;Numpad Division = pause/unpause
  13.  
  14. ;Note: if you want to change the hotkeys to numpad numbers, you must add
  15. ;both the numpad number and it's alternate key.
  16. ;For example
  17. ;Numpad6::
  18. ;NumpadRight::
  19. ;(written like that) are both needed if you want to use 6 on the numpad as your hotkey
  20.  
  21. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  22. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  23. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  24. DetectHiddenWindows, on
  25.  
  26.  
  27. NumpadSub::
  28.  
  29. if WinExist("ahk_class ITWindow") or WinExist("ahk_class iTunes")
  30. {
  31. ControlSend, ahk_parent, ^{RIGHT}
  32. }
  33.  
  34. IfWinExist, ahk_class WMPlayerApp
  35. {
  36. SetKeyDelay, 0, 1 ;otherwise doesn't work if currently in WMP window
  37. ControlSend, ahk_parent, ^{f}
  38. }
  39.  
  40. IfWinExist, ahk_class Winamp v1.x
  41. ControlSend, ahk_parent, b
  42.  
  43. return
  44.  
  45.  
  46. NumpadMult::
  47.  
  48. if WinExist("ahk_class ITWindow") or WinExist("ahk_class iTunes")
  49. {
  50. ControlSend, ahk_parent, ^{LEFT}
  51. }
  52.  
  53. IfWinExist, ahk_class WMPlayerApp
  54. {
  55. SetKeyDelay, 0, 1
  56. ControlSend, ahk_parent, ^{b}
  57. }
  58.  
  59. IfWinExist, ahk_class Winamp v1.x
  60. ControlSend, ahk_parent, z
  61.  
  62. return
  63.  
  64.  
  65. NumpadDiv::
  66.  
  67. if WinExist("ahk_class ITWindow") or WinExist("ahk_class iTunes")
  68. {
  69. ControlSend, ahk_parent, ^{SPACE} ;control for better grip, otherwise doesn't work if were filtering songs
  70. }
  71.  
  72. IfWinExist, ahk_class WMPlayerApp
  73. {
  74. SetKeyDelay, 0, 1
  75. ControlSend, ahk_parent, ^{p}
  76. }
  77.  
  78. IfWinExist, ahk_class Winamp v1.x
  79. ControlSend, ahk_parent, c
  80.  
  81. return
Add Comment
Please, Sign In to add comment