DarthAffe / CUE.NET

C# (.NET) library to work with the Corsair CUE-SDK.
GNU Lesser General Public License v2.1
109 stars 18 forks source link

Reinitialize interrupts any executing macro #44

Closed LordJZ closed 7 years ago

LordJZ commented 8 years ago

If there's a macro running while Initialize/Reinitialize is called, then the macro will be interrupted. Ran into this issue when trying to workaround losing CUE connection on wake up.

Corsair ticket 6778416, it might be their issue.

DarthAffe commented 8 years ago

I'm 100% sure, that this problem is CUE-related. I could reproduce the behavior you described with CUE but not with the CUE 2 Beta I'm using right now. So this problem seems to be already fixed but will take some time until it's available.

I did the following:

  1. I created a macro in CUE recording me pressing the digits from 1 to 7 with 2 seconds delay.
  2. I started the macro and ran a test-application containing this code
CueSDK.Initialize();

CorsairKeyboard keyboard = CueSDK.KeyboardSDK;
if (keyboard == null)
     throw new WrapperException("No keyboard found");

keyboard.Brush = new SolidColorBrush(Color.Black);
keyboard.Update();
Wait(3);

keyboard.Brush = new SolidColorBrush(Color.Yellow);
keyboard.Update();
Wait(3);

CueSDK.Reinitialize();
Wait(3);

keyboard.Brush = new SolidColorBrush(Color.Green);
keyboard.Update();
Wait(3);

return;
  1. In CUE 1 the macro stopped at the reinitialize leaving the output 12345, in CUE 2 I got the full output 1234567 and the lighting was as expected.
LordJZ commented 8 years ago

@DarthAffe could you please point me out how can I get CUE 2? Thanks.

DarthAffe commented 8 years ago

As you can read here the beta entry is currently closed. I'm afraid that you'd have to wait until it's officially released.

LordJZ commented 8 years ago

OK, thanks for looking into this!