Guest User

Mediaknapper i Wimp (Play/pause, next,prev) med AutoHotkey

a guest
Apr 20th, 2012
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.10 KB | None | 0 0
  1. ;Scriptet er en videreutvikkling og utvidelse av scriptet som TormodRL la ut på http://www.pastebin.com/MPtmGEDx
  2. ;Man må laste ned AutoHotkey (gratis for windows) for å kjøre scriptet. http://www.autohotkey.com/
  3.  
  4. ; ------------------------8<----------------------
  5.  
  6. #SingleInstance force
  7.  
  8. ; Play/Pause-button pauses Wimp (to use custimized button change "Media_Play_Pause" with desired button ref: http://www.autohotkey.com/docs/KeyList.htm )
  9. Media_Play_Pause::
  10.     ; Need to use regex mode to match ahk_class since Wimp windows title changes each song
  11.     SetTitleMatchMode RegEx
  12.    
  13.     ; Check if wimp is running (possibly any Adobe Air application running??)
  14.     IfWinExist, ahk_class ApolloRuntimeContentWindow
  15. {
  16.     ;Change "C:\Program Files (x86)\Wimp\" with your instalation path
  17.     Run "C:\Program Files (x86)\Wimp\wimp.exe" "C:\Program Files (x86)\Wimp\play"
  18.     return
  19. }
  20. return
  21.  
  22.  
  23. ; Next-button next song in wimp (to use custimized button change "Media_Next" with desired button ref: http://www.autohotkey.com/docs/KeyList.htm )
  24. Media_Next::
  25.     ; Need to use regex mode to match ahk_class since Wimp windows title changes each song
  26.     SetTitleMatchMode RegEx
  27.    
  28.        
  29.     ; Check if wimp is running (possibly any Adobe Air application running??)
  30.     IfWinExist, ahk_class ApolloRuntimeContentWindow
  31. {
  32.     ;Change "C:\Program Files (x86)\Wimp\" with your instalation path    
  33.     Run "C:\Program Files (x86)\Wimp\wimp.exe" "C:\Program Files (x86)\Wimp\next"  
  34.     return
  35. }
  36. return
  37.  
  38.  
  39. ; Prev-button prev song in wimp (to use custimized button change "Media_Prev" with desired button ref: http://www.autohotkey.com/docs/KeyList.htm )
  40. Media_Prev::
  41.     ; Need to use regex mode to match ahk_class since Wimp windows title changes each song
  42.     SetTitleMatchMode RegEx
  43.            
  44.     ; Activate WiMP if on(possibly any Adobe Air application running??)
  45.     IfWinExist, ahk_class ApolloRuntimeContentWindow
  46. {
  47.     ;Change "C:\Program Files (x86)\Wimp\" with your instalation path
  48.     Run "C:\Program Files (x86)\Wimp\wimp.exe" "C:\Program Files (x86)\Wimp\previous"  
  49.     return
  50. }
  51. return
Advertisement
Add Comment
Please, Sign In to add comment