![]() |
#1 |
Junior Member
Join Date: Jan 2011
Posts: 17
|
Event dispatcher for Milkdrop2
Hello all. I am working on a project for timed lyrics appearance and images in Milkdrop2. I am writing separate code that manipulates Milkdrop2 through keystrokes rather than altering Milkdrop itself because (it seems?) the OpenSource code out there is all for version 1 and I don't know what I'd lose from Milkdrop2.
Also, rather than write a winamp plugin (learning curve and need to get done fast) I am just writing in VB. On to point... the program I am working on is a stand alone VB that polls for open Winamp instances and Milkdrop2 windows as well. Then upon song change detection, a file swap takes places to update custom message and image .ini files to reflect that for the new song. Finally, a specially formatted dispatcher file tells when during playback to send keystrokes to Milkdrop2 to make synched lyrics and/images appear. Not a totally original idea I know. Things that work: file swap is fast enough updating to new ini files sending F7 works fine splashing images by sending "K" key plus two numbers works fine splashing text by sending "Y" key plus two numbers works fine What fails: Refreshing the title sequence by sending a single "T" to the window! code: Any ideas would be awesome. Plan to share code here when complete. Worth noting: the code definitely reaches the correct WM_ code for sending the "T" key. What's REALLY odd to me, is that the code reaches the correct lines (labelled ** above) at the right time with a debug pause point. If at that point I hit continue/run - still fails to show title. BUT, if I step through the code line by line, then the title pops up! |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Apr 2011
Posts: 1
|
That does seem pretty odd! Do you know if any other keys have the same problem of not working right??
I found your message as I'm looking for something similar to what you're making. I'm trying to find a way, vbscript or something, to allow me to randomly send K+## keys to MilkDrop2 so that I can just leave Milkdrop running at it'd add images for me ;-) If you'd like me to test any code to see if I get the same problems of you, I'm more than happy to help! |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2011
Location: Australia
Posts: 40
|
Maybe try AutoHotKey. I'm currently using it to send the K## commands directly to the MilkDrop window (regardless of which window is in focus).
It's quite a powerful piece of software, I just had a quick look at some of the documentation and I'd say you would be able to script something that sends your commands in order or random order and at random or specific time intervals. |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Jan 2011
Posts: 17
|
bailed on this approach after Souce released
see my other link for copy of recompiled MilkDrop version and scripting file format.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|