|
|
gothike Elite user 463 Posts |
INTRODUCTION
I created a AutoHotKey Script based on codes in forums and my custom coding. Took me a while to learn the language but here you go. The keyboard keys that control Winamp will be automated. In common terms, I did the keystrokes for you. Here are commands available and keyboard keys: Play= Left Arrow Stop= Right Arrow Previous Track= Up Arrow Next Track= Down Arrow Volume Up= e keyboard keyboard key Volume Down= d key Increase Playlist Font Size= a keyboard key Decrease Playlist Font Size=z keyboard key Launch Winamp= w keyboard key The script following this tutorial can be customized per your liking. Your own keyboard keys. However even with this script you still need the plugin Next On Stop by DrO Also in WinAmp, Manual Playlist Advanced has to be check boxed Opition - Prefences - General Preference - Playlist select Manual Playlist Advance under the Advanced Playback Settings. The arrow hotkeys should work with powerpoint remotes in theory or else I can easily change the script. SET-UP DIRECTIONS 1. Download and install http://www.autohotkey.com 2. Create a new .txt file. Rename it to have the winamp_hotkeys.ahk extension. 3.Right-click the file and select Edit Script 4. Input the following: ;BEGINNING OF CODE- START COPYING ;Code from Autohotkey forums and GOTHIKE from The MagicCafe, g0thike (at) aol . com DetectHiddenText, On DetectHiddenWindows, On winamppath = c:program fileswinampwinamp.exe ;change winamp path here ;WINAMP HOTKEYS ;___________PLAY (send Left Arrow) Left:: PostMessage, 0x111,40045,,,ahk_class Winamp v1.x return ;____________PREVIOUS TRACK (send Up Arrow) Up:: PostMessage, 0x111,40044,,,ahk_class Winamp v1.x return ;_______________NEXT TRACK (send Down Arrow) Down:: PostMessage, 0x111,40048,,,ahk_class Winamp v1.x return ;_______________STOP (send Right Arrow) Right:: PostMessage, 0x111,40047,,,ahk_class Winamp v1.x return ;_______________VOLUME UP (send e) e:: PostMessage, 0x111,40058,,,ahk_class Winamp v1.x return ;_______________VOLUME DOWN (send d) d:: PostMessage, 0x111,40059,,,ahk_class Winamp v1.x return ;PLAYLIST FONT SIZE settitlematchmode,2 ;______________Enlarge Playlist Font (send a) a:: IfWinExist, ahk_class Winamp PE { controlsend,ahk_parent,{Control Down}{NumpadAdd}; return } ;______________Shrink Plylist Font (send z) z:: IfWinExist, ahk_class Winamp PE { controlsend,ahk_parent,{Control Down}{NumpadSub}; return } ;LAUNCH WINAMP BY HOTKEY w:: Run, C:Program FilesWinampwinamp.exe return ; END OF CODE- STOP COPYING 5. Save 6. Right-click the file again, this time selecting Compile Script -Compiling the Script creates a winamp_hotkeys.exe file 7. Click on winamp_hotkeys.exe file to run The script is active as indicated in the Windows tray, image below 8. Place winamp_hotkeys.exe in "Windows Autorun Folder" if you want it to automatically start when you power the computer CUSTOM KEYSTROKES INSTRUCTIONS All the commands can be customized with your personal button presses (keystrokes) As an example with the PLAY code below: ;___________PLAY (send Left Arrow) Left:: PostMessage, 0x111,40045,,,ahk_class Winamp v1.x return With the code just above, if you want it to Play with the keyboard key of p, in the code replace Left:: with p:: So the new code would be: ;___________PLAY (send Left Arrow) p:: PostMessage, 0x111,40045,,,ahk_class Winamp v1.x return Any questions please ask, I could provide a .exe file but wanted to share the source code.
Control your Show Music from a PC from 800 ft away with a remote control. Send me a message to find out how......
|
Eldon Inner circle Virden, IL 1137 Posts |
Thanks for sharing.
|
gothike Elite user 463 Posts |
Eldon,
No problem, did it work? I am on Win 7 32-bit. What's your experience.
Control your Show Music from a PC from 800 ft away with a remote control. Send me a message to find out how......
|
Eldon Inner circle Virden, IL 1137 Posts |
Haven't had time to try it. Do you have a link for Dr. O's Next On Stop Plug-IN? I get a 404 error for all the links I've tried.
|
gothike Elite user 463 Posts |
On Windows 7, 32-bit
I am running Winamp 5.5.72, older version had C++ issues on Win 7. Here is Next On Stop, WinAmp and AutoHotkey stuff, ALL in a DROP BOX folder. https://www.dropbox.com/sh/pk2drsfkfxr8l......ueWhJXea The lastest WinAmp is 5.666, but I could not get NextOnStop v1.2 to work or load. DrO the creator of the plugin has been hired to develop Winamp and he will eventually integrate that feature.
Control your Show Music from a PC from 800 ft away with a remote control. Send me a message to find out how......
|
gothike Elite user 463 Posts |
Dropbox Updated:
I got 5.666 (latest WinAmp) working with NextOnStop 1.3 alpha 1, So if your Computer is slow and/or running XP use Winamp 5.5.72 or lower. Faster computers on Win 7, use Winamp 5.666. Also I included a fix for 5.666 if an mp3 is crashing Winamp. GUYS/GALS If you find this info useful please DONATE some cash to Dr0, the developer of NextOnStop, without it, things would be harder. His site is here: http://winampplugins.co.uk/ And he accepts PAYPAL.
Control your Show Music from a PC from 800 ft away with a remote control. Send me a message to find out how......
|
Eldon Inner circle Virden, IL 1137 Posts |
Quote:
On Jul 20, 2014, gothike wrote: Did it, and thanks again for all your hard work. I'll give it a try and let you know how I did. |
The Magic Cafe Forum Index » » F/X » » AutoHotKey Winamp for Key Stroke/Hotkey Automation (0 Likes) |
[ Top of Page ] |
All content & postings Copyright © 2001-2024 Steve Brooks. All Rights Reserved. This page was created in 0.04 seconds requiring 5 database queries. |
The views and comments expressed on The Magic Café are not necessarily those of The Magic Café, Steve Brooks, or Steve Brooks Magic. > Privacy Statement < |