I thought I should explain my problem a little clearer after proof reading what I'd written.
I have a single PacDrive... only 3 pins are connected for the RGB strip for the dancing Footwell Lighting.
The rest of the LED ports I wish to drive either independantly or run a second animation sequence for the police lights whilst maintaining the music lights.
The AutoHotkey script keeps the LED's on for the VR buttons till I press them, then i can do anything with them for a simple flash in the hotkey script or simple go out. This is scripted and works well on it's own
The brakelight was pretty well explained in the last post. This is scripted and also works perfectly on it's own
When the LEDBlinky Audio animation is running however. The animation appears to address the LED output states on a whole for the device rather than just addressing the pins it was setup for?
For example, here is my Police light test LWAX.
<?xml version="1.0"?>
<!-- (31B6905D01F51AFC4BC12516CF56C6DF02DAB185) -->
<!-- File created by LEDBlinkyAnimationEditor.exe -->
<!-- DO NOT EDIT THIS FILE MANUALLY -->
<LEDAnimation>
<Frame Number="1" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="2" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="3" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="4" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="5" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="6" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="7" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="8" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="9" Duration="50">
</Frame>
<Frame Number="10" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0"/>
</Frame>
<Frame Number="11" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="12" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0"/>
</Frame>
<Frame Number="13" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="14" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0"/>
</Frame>
<Frame Number="15" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="16" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0"/>
</Frame>
<Frame Number="17" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
</Frame>
<Frame Number="18" Duration="50">
</Frame>
</LEDAnimation>
The code shows that the entire 16 ports are given either a 1 or a 0 for their states. Regardless if I need unallocated pins assigned a state or not. What this does it override for a very brief moment, the status of the LED's being controlled and set by the AutoHotKey script. So my Always ON VR buttons now flicker as does my Brakelight when I'm braking (It's kinda cool to see in action even though the flickering to the sound is distracting)
I can make a small sequence in AutoHotKey without any issues at all, and I have the same police sequence already scripted. But the Audio animation addresses the entire Pacdrive and I can't seem to stop it? I looooove the audio animation and I really wish to keep it. But I'm not sure how I can use the LEDBlinky animations whilst still be able to access unallocated LED ports from LEDBlinky?
LEDBlinky must use the DLL Call to set all the outputs in one go, rather than changing only the outputs that need to be changed?
<Frame Number="1" Duration="50">
<State Device="PACDrive" Id="1" Value=" 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
Would changing the animation to look like
<Frame Number="1" Duration="50">
<State Device="PACDrive" Id="1" Value=" , , , 1, , , , , , , , , , , , "/>
... make any difference and stop it setting all the other outputs to 0? or is the State Device command the reference to the command to drive all the outputs?
I rarely use MAME on this machine as you can see it's quite dedicated to PC racing and a bit of Model 2 and Model 3 arcade fun too. Thats why since I'm not using any front end, I'm finding I'm having to write a psuedo mini front end in AutoHotkey myself to control LEDBlinky and LED's for PC games.
Thanks for any advice anyone can shed on my enquiry?