These are chat archives for CoraleStudios/Colore

22nd
Dec 2017
Nufflee
@Nufflee
Dec 22 2017 14:21
Heya, just a quick question, can I use this with Ornata Chroma or only BlackWidow?
I'd need a response ASAP
Adam Hellberg
@Sharparam
Dec 22 2017 16:20
@Nufflee should work fine with the Ornata
note that it does not have macro keys, so if you're using the position-based grid then the left-most column (0) will have no effect
Nufflee
@Nufflee
Dec 22 2017 16:21
okay, thanks @Sharparam
also, how can i modify Keyboard.Instance[] from another thread? It throws some weird NativeCallException or something @Sharparam
Adam Hellberg
@Sharparam
Dec 22 2017 16:25
what is the exception?
Nufflee
@Nufflee
Dec 22 2017 16:27
gimme a sec
{Corale.Colore.Razer.NativeCallException: Call to native Chroma SDK function DeleteEffect failed with error: Unknown: Unknown. (1168) ---> System.ComponentModel.Win32Exception: Element not found --- End of inner exception stack trace --- at Corale.Colore.Core.NativeWrapper.DeleteEffect(Guid guid) at Corale.Colore.Core.Device.DeleteCurrentEffect() at Corale.Colore.Core.Device.SetGuid(Guid guid) at Corale.Colore.Core.Keyboard.SetPosition(Int32 row, Int32 column, Color color, Boolean clear) at Corale.Colore.Core.Keyboard.set_Item(Int32 row, Int32 column, Color value) at ColoreTest.Program.<>c.<Main>b__0_1() in F:\PROJECTS\CSharp\ColoreTest\ColoreTest\Program.cs:line 55 at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()}
it's when I'm using Keyboard.Instance[Key.Logo] = myColor;
(a pastebin because this formatting is awful: https://pastebin.com/d0KxGqLi)
It appears to be problem only with that call
Adam Hellberg
@Sharparam
Dec 22 2017 16:44
odd
does key values other than Logo work?
and that line of code is the first one that runs and causes the exception, or are there any other effects and/or keys getting set before it that do not cause an error?
you also mentioned threads, does it work if you run the Chroma code on the main application thread (the UI thread if this is a WPF/WinForms app, or directly in the Main method)?
Adam Hellberg
@Sharparam
Dec 22 2017 16:49
@Nufflee i have to get ready for taking a bus to parents for christmas, can you create an issue with as much detail as possible and i can take a look at it hopefully during next week
Nufflee
@Nufflee
Dec 22 2017 20:22
Yes I will, and it works with my Ornata I just got! @Sharparam