G15Mods.com & G19Mods.com

A community devoted to the Logitech G15 and G19 Gaming Keyboards
It is currently Mon Sep 06, 2010 8:00 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: GLight a Keyboard Mod Dll
PostPosted: Wed Jul 14, 2010 6:59 am 
Offline

Joined: Wed Jul 14, 2010 6:57 am
Posts: 2
I wrote a small C# Dll, to change the Light of the G19, G13 (Thanks to BoJan), and the G15.
Its very simple to use.

In C# it would be:
Code:
using GLight;

Then, setup the GKeyboards. Maybe in the Load of your Application:
Code:
G19.SetUp();
G15.SetUp(Keyboard);
G13.SetUp();

Then you can change the Light of the Keyboards like this:
Code:
G19.SetState(0,255,255) RGB 0 - 255
G13.SetState(0,255,255) RGB 0 - 255
G15.SetState(Keyboard, Panel, 0); 0 For off, 1 for LowLight, 2 for Bright light

You can Enable the Exception, if a Keyboard is not connected:
Code:
G13.ShowException = true / false
..
..

If ShowException is enabled, you will get the "SetUpException"
that means, that the Keyboard was found.

Written in C# .NET2.0

Thanks again to BoJan for his small example in his thread :)

If you use this Library, please leave a Comment in your Application and link to "Tsuyo.de" you are also allowed to "Compile in" the Library into your Application.
If you want to know how it works -> Decompile it.

Version 1.1:
You can switch the Light of the M Keys now.
Useage:
Code:
GLight.G19.ProfileLight(GLight.G19.keys.M1); // Would turn the Light on M1 On.
GLight.G19.ProfileLight(GLight.G19.keys.M1 | GLight.G19.keys.M2); // Would turn M1 and M2 on
GLight.G19.ProfileLight(GLight.G19.keys.M1 | GLight.G19.keys.M3 | GLight.G19.keys.MR); // Would turn M1 and M3 On.
GLight.G19.ProfileLight(GLight.G19.keys.M1 | GLight.G19.keys.M2 | GLight.G19.keys.M3 | GLight.G19.keys.MR); // Would turn M1, M2, M3 and the MR key On.
..
..

http://tsuyo.de/files/GLight1.1.rar


Version 1.0:
http://tsuyo.de/files/GLight.rar

Have fun :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group