amfafeta 0 Napisano 2 Listopada 2014 Udostępnij Napisano 2 Listopada 2014 (edytowane) ;---- ---- iTunes Script ---- ----;FEATURES: (Default Hotkeys);- Open/Play/Pause (Control+Shift+6);- Next Song (Control+Shift+9);- Volume Up (Control+Shift+7);- Volume Down (Control+Shift+8)#InstallKeybdHookSendMode Event#UseHook; ---- ---- Google Chrome: Open/Play/Pause ---- ----(Control+Shift+6)^Numpad5::DetectHiddenWindows, On ; Tells AHK to search for windows that are minimized/hiddenTarget := "ahk_class Google Chrome"IfWinNotExist %Target%{ ; Try to open Google Chrome if it's not openRun "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ;If you press the default hotkeys (Control+Shift+6) and iTunes is not open it will open it and start playing music. This will alt-tab ur current window.; WinWait ahk_parent ; This caused problems??;ReturnWinWait, %Target%}IfWinNotExist %Target%{ ; Check to make sure we were able to open WinampMsgBox Unable to open WinampReturn}; iTunes is now the last found window - funtions can now implicitly refer to it; Gets current play status (0=Stopped, 1=Playing, 3=Paused)SendMessage, 1024, 0, 104 ; IsGoogle ChromePlaying?iTunesPlayStatus := ErrorLevelIf( Google ChromePlayStatus == 0 ){ ; iTunes playback in in a 'Stopped' stateControlSend, ahk_parent, {Control+Shift+6} ; Play}else{ControlSend, ahk_parent, {Control+Shift+6}; Pause/Unpause}return; ---- ---- Google Chrome: Next Song ---- ----(Control+Numpad4)^Numpad6::DetectHiddenWindows, On ; Tells AHK to search for windows that are minimized/hiddenTarget := "ahk_class Google Chrome"IfWinNotExist %Target%{Return}ControlSend, ahk_parent, ^{right}return; ---- ---- Google Chrome: Volume Up ---- ----(Ctrl+Up Arrow Key)^Up::DetectHiddenWindows, On ; Tells AHK to search for windows that are minimized/hiddenTarget := "ahk_class Google Chrome"IfWinNotExist %Target%{ Return Witam. Chciałbym w grze (LOL) mieć możliwość korzystania z wcześniej ustalonych skrótów klawiaturowych do kontrolowanie muzyki. Korzystam w Chromie z aplikacji Streamus (bardzo wygodna) i mam globalne skróty do kontroli muzyki. play/pause/open- Control+Shift+6Next song- Control+Shift+9Vol. up- Control+Shift+7Vol. down- Control+Shift+8 Skróty mam podpięte w aplikacji Logitech Gaming Software pod dodatkowe przyciski myszy. Mój problem polega na tym że dane skróty nie działają w grze. Na innym forum znalazłem temat z skryptem do programu AutoHotkeys w którym rozwiązujemy ten problem tyle że działa on (skrypt) z programem winamp i iTunes. Próbowałem zmienić ten kod samemu, lecz z programowaniem nigdy nie miałem nic wspólnego i mam problem z odpowiednim wstawieniem komend skrótów do skryptu. Jak by ktoś mógł na to szybko zerknąć i poprawić lub powiedzieć jak to zrobić byłbym bardzo wdzięczny. Edytowane 2 Listopada 2014 przez amfafeta Cytuj Link to post Share on other sites
Recommended Posts
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.