I found a very promising FAQ post explaining how to make toolbar buttons and hotkeys to control Winamp from Dopus using a plugin called "gen_dde".
I played around with this for a while and here are my results. First, the successes:
With code (1), Winamp starts playing, but it doesn't play the file selected in Dopus; it simply plays the file that was already enqueued in Winamp. (This makes sense though.)
(1)
ddeexec play
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
With code (2), Winamp plays the file selected in Winamp, but it doesn't work for folders.
(2)
ddeexec play({filepath})
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
Now the failures. None of the following produced the desired result. I took the commands from the help text included with the gen_dde file.
(3)
ddeexec enqueue({filepath})
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
(4)
ddeexec next
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
(5)
ddeexec prev
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
(6)
ddeexec stop
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
(7)
ddeexec pause
ddeapp WINAMP
ddetopic System
"C:\Program Files\WinAMP\WinAMP.exe" /dde
Though I was certainly tickled to figure out something and make it work, neither (1) nor (2) are actually useful in practice. Just hitting Enter is a much easier way to get a file to play in Winamp since it's my default player. What I was really hoping for is a way to play folders. I usually do this through the context menu, where the "Play in Winamp" option works the same for files and folders. (Nevermind that I can't figure out how to hotkey context menus in Dopus! Aargh! I'll make a separate post for that.)
Any ideas? This would be a really awesome customization of Dopus!
I looked through all 143 googits for "gen_dde" but couldn't find any educational materials about this program. (I'm a total newbie to this fancy software stuff, but I'm trying to learn...)
By the way, the nunzioweb.com/sawgstuff/ site linked to in the FAQ post actually doesn't contain any "further details". It only has a link to the download.
Thanks,
Mike