Logitech G15 MxO Applet (Beta)

64 posts · 2008-08-28 23:09:11 to 2008-11-02 19:57:27

#36300493129 08/28/2008 23:09:11 Logitech G15 MxO Applet (Beta)
Yesh, I bought myself one of these, and I'm fiddling with the SDK (curiosity killed the programmer). I currently have it animating a few matrix code bmp frames at the moment. Hopefully I'll be able to read the game's HP and IS meters (bit tricky, but I've written code that'll snapshot that in the past) and route an approximation to the LCD. I might need a small gfx favor soon (my current one isn't "full screen" and is shiesty at best).

Wish me luck in my new "God I'm so bored I might as well program" venture.


EDITTED FOR TEH ROADMAP

THE ROADMAP (OMG)
-Determine pixel locations for reading, taking into account making it game resolution independent. (HP / IS )
-
Snapshotting pixels of screen (HP / IS )
-
Read copied pixels for information (HP / IS )
-
Convert the pasted image into a readable form and expand to be sent. (HP / IS )
-
Import my MxO Clock code.
-
Convert ALL OF THE ABOVE into a single image
-Shove that image to the LCD. (
Static text / MxO Info )
-Throw it all on a timer.
-Cleanup

-Configurable options

Repeat the following as necessary:
-Bugfix (<-here)
-Party


Link to beta 3 post

#36300493139 08/29/2008 00:03:41 Re:G15 MxO Applet (In development)
I'm curious, what exactly is this?
#36300493193 08/29/2008 02:15:05 Re:G15 MxO Applet (In development)
Send me a copy plz.
#36300493196 08/29/2008 02:35:01 Re:Re:G15 MxO Applet (In development)
I believe it's a program for Logitech's G15 Keyboard which includes an LCD display for information output and is highly configurable.
#36300493199 08/29/2008 03:14:23 Re:G15 MxO Applet (In development)
Me likey.  Good luck Sai.  You're venturing where I never could.
#36300493200 08/29/2008 03:15:38 Re:G15 MxO Applet (In development)
Oh man if you get it working that would be awsome Sai i've had the G15 V2 for a while and have been searching high and low for a MXO applet for it but no one has made one, hope you can make one
#36300493215 08/29/2008 05:45:41 Re:G15 MxO Applet (In development)

I've always wondered about the G15 and MxO compatability for the LCD. Go, Tsus, go!

Also can you really launch macros at the push of a button, even if the macro isn't coded into a hotbar button? Or is that just wishful thinking?

#36300493229 08/29/2008 07:04:12 Re:G15 MxO Applet (In development)
You can macro keystrokes, so yes it is possible to have these keystrokes correspond to macro's you have in game.

Eg, you could macro a button to enter the keystrokes /Thrown "Enter". Then have a macro on your hotbar called "Thrown" which puts on a pile of thrown resistance clothing. Press the button on your keyboard and it will automatically enter those keystrokes to activate it.

There's also inbuilt macro programs for games with more options and customisation. In short, the G15 is secks.
#36300493234 08/29/2008 07:27:34 Re:G15 MxO Applet (In development)
OMG YES! I have one of these. I have a few of the function keys activating toolbar actions, but I'd love to see a lil custom MxO applet for it to see what else if could do. Especially if it could take better advantage of that screen at the top. That would be sweet! SMILEY
/as
#36300493243 08/29/2008 08:20:04 Re:G15 MxO Applet (In development)
From my side of the client aspect, its going to be bare minimum in functionality, since I don't have the client source to send accurate and pure data to the LCD. (after I'm done tinkering with this, I wouldn't mind writing up what would need to be done to the MxO client if Rare or 9mmfu wants to see)

The idea is this:
Take a small "snapshot" of the personal data at the right hand corner, and attempt to pull an approximate HP/IS reading.
Show Matrix stream when it cannot determine the above data.

I can't do anymore than that really.

Since I'm not that great in the graphic department, I'm requesting the following:
Several small images (probably no more than 10 frames) for a looping matrix code.  Width 160, Height 43, 2 color black and white.

After 2 hrs of coding last night.  Not the prettiest piece of coding, and you can see why I need a better image set (threshold doesn't do the work on existing gifs)
Alpha 1 (extract all files to C:\ ....told you it was messy alpha code.  I make segments of code work first before massive cleanup.)

#36300493271 08/29/2008 09:48:09 Re:G15 MxO Applet (In development)
*watches with interest*
#36300493280 08/29/2008 10:33:31 Re:G15 MxO Applet (In development)
Hmmm...
#36300493292 08/29/2008 11:22:14 Re:G15 MxO Applet (In development)
I have 4 media keys to assign functions to. I'm thinking of one for "Jack Into the Matrix" to launch the game, or leaving them up to the user in some form of config.ini thingy.

What say you?

#36300493370 08/29/2008 13:38:13 Re:Logitech G15 MxO Applet (In development)
Want!

Was wondering if anyone created an applet for the G15, just picked up one a couple weeks back.

Personally, as far as features go, I don't really care about seeing vitals (maybe of your target, if that's even possible).  Perhaps some stuff like whether or not you have unread e-mail, how much inventory space you have left, how many spaces left in your Loading Archive storage, your current location read in coordinates, how much $info you currently have, and maybe even a MegaCity time display.  I could never find much use for the health meters on the LCD, but other info like the stuff mentioned above could be nice.
#36300493379 08/29/2008 14:00:36 Re:Re:Logitech G15 MxO Applet (In development)
LoTekGhost wrote:
Want!

Was wondering if anyone created an applet for the G15, just picked up one a couple weeks back.

Personally, as far as features go, I don't really care about seeing vitals (maybe of your target, if that's even possible).  Perhaps some stuff like whether or not you have unread e-mail, how much inventory space you have left, how many spaces left in your Loading Archive storage, your current location read in coordinates, how much $info you currently have, and maybe even a MegaCity time display.  I could never find much use for the health meters on the LCD, but other info like the stuff mentioned above could be nice.
Most of that is out of my power without it being actually written into the client (vitals are pushing it for my skillz), however, a MCT display is possible and an excellent idea and I will put that in.  Any other random little features?

EDIT: Thinking about it, current target may be possible, I'd have to see.

EDIT 2:
I dove into the magical world of analyzing displayed pixels again and ran into some issues with some ideas. 
*) The HP/IS reading is coming through.  However, things like UI transparency will not be corrected for.  It throws my screen pixel reading off.
*) Target Reading: First, the black background isn't black, but transparent.  So there's no way for me to zip through it and convert anything non black to white to send to the LCD.  However, target HP MAY be available, as it is a solid color system like HP and such.
*) I dove into my MxO clock code.  I should be able to display it on the LCD.

So the current plan is the following:
-Determine pixel locations for reading, taking into account making it game resolution independant.
-Read pixels for information
-Algorithm to determine vitals of self and enemy.
-Import my MxO Clock code.
-Convert the above into a single image
-Send Image to LCD.
-Party.

EDIT 3:  Enemy HP dumped.  Too complicated since the target info isn't a static thing on the screen.  The thing of main importance though is the small white area in the bottom left of this image SMILEY.  Its 12:30am now, off to bed for work, since I'm probably gonna do a simple one for work, throwing our company logo on it if I can find me a image to work with.
#36300493579 08/30/2008 11:01:56 Re:Logitech G15 MxO Applet (In development)
Do you guys that have this keyboard like it?I'm using my 2 year old plain hp keyboard and it's well horrible ;p
#36300493585 08/30/2008 11:22:58 Re:Re:Logitech G15 MxO Applet (In development)
WoKeN wrote:
Do you guys that have this keyboard like it?I'm using my 2 year old plain hp keyboard and it's well horrible ;pI like it personally.
  • The keys are a good size, and have good response (at least good enough for me).  The only thing that takes time (at least for me) to get used to was the size of the Ctrl and Tab keys (a bit smaller than what I'm used to) due to the placement of the G keys on the left-side of the keyboard.  The Escape key is a bit closer than I was used to as well, but I'm getting used to it along with the Tab and Ctrl.  If you can get around that, it's all good.
  • The lighting is great for night gaming and low-lit rooms (keys come in mostly clear, a few areas have spotty shadows on the actual character display...but if you're a touch-typist like me, it doesn't matter). The lighting also has 3 settings; low, high, and off, so you can adjust it to your liking.
  • The game-specific apps that tend not to be all that great IMO (I usually look to my screen for vitals), but some have good features like game Mail notification and current amount of cash/inventory left. However, 3 of the default apps are nifty: Time Date display, Stopwatch/Countdown display (great for timing spawns and whatnot), Computer resource use display (shows dynamic CPU/RAM usage on the display). The other apps that I like out of game are the XFire (shows sent messages in the LCD) and the Windows Media Player app (shows song title, artist, time and movie/scene titles when watching DVDs).
  • The Windows-key disable switch is great too, especially if you use Alt and Ctrl a lot and have mis-hit the Windows key before.
  • The wrist-support attachment is a cheap piece of plastic, but it gets the job done in that department.
  • The G keys can be quite useful both in and out of game. They have great applications in apps like Photoshop, Word, etc. In-game, I've used them for stuff like potions and consumables (in other games, haven't added any for MxO yet. You get a total of 18 G keys (there are 6 physical keys, but 3 separate Modes, so 6x3=18). You can program macros both in and out of game, using either the MR - Macro Record key - for in-game, or the Game Profile app outside).

This review comes from about 3 weeks of personal ownership, feel free to ask about other features if you have questions too. Hope that helped!

#36300493727 08/30/2008 22:22:28 Re:Logitech G15 MxO Applet (In development)
I have a G11 (I figured that there's nothing in any game that I need to see on the Keyboard display) and it has 18 "G" buttons. the g-buttons have 3 memory modes (that's 54 programmable functions).

Of course you can give each game it's own profile, so that's 54 buttons per game or application... that's a lot of custom buttons.

The buttons are broken up like so:

G1 G2 G3
G4 G5 G6

G7 G8 G9
G10 G11 G12

G13 G14 G15
G16 G17 G18

The top set are basic emotes (on my system): /sit, /tiphat, /cheer, /wave, /bow etc...

The middle set are set loaders: /loadlo MA etc...

the bottom set are chat modes: /say /tc /cc /fc with G17 & G18 = xfire chat and Xfire screenshot


Despite all this usefullness I do find that the in game chatbox macros (any commands beginning with a "/") don't work properly if they run too fast and you need to tweak any recorded macros by inserting a .05 second delay between the last keystroke and the Enter key. But that's only because my macros are set to record events only not time delays (so the macros type much faster than human input).
phiAU - The Kings of Never - noblesse oblige
#36300493801 08/31/2008 08:27:03 Re:Logitech G15 MxO Applet (In development)
I'll share my g15 profile with anyone who wants to have it. Just send me a PM with your email address.

Interested with what others have done with theirs to see if i'm getting the most out of it.
#36300493806 08/31/2008 08:53:16 Re:Logitech G15 MxO Applet (In development)
I currently have SirReal's Panel on my G15.  It is semi-customisable and allows loads of info to be displayed at once (rather than cycling through other apps.)  For example, on mine I have Date, Time, MCT Time, CPU and RAM Usage, Network Activity, Speaker Arrangment, TS, FRAPS framerate, WinAmp and probably more.
#36300493814 08/31/2008 09:22:48 Re:Logitech G15 MxO Applet (In development)
Update: It looks like with some more clever coding, it looks like I can stretch the pixels I've captured just a bit to make it into an actual gauge on the G15 (124x1 stretched to 124x3 or so), and I'll put that image on there. I'm also looking at improving the game detection (is it running? is it the active window? (these are already there, just need to rearrange it in the code)) and adding messages like "Jack In" or "Vitals Unavailable"

So far its vitals and MCT time, and they still look feasible to add. Is there anything else you guys can think of that might be interesting?
#36300493919 08/31/2008 15:45:59 Re:Logitech G15 MxO Applet (In development)
Current loadout maybe not sure if that is possible
#36300493924 08/31/2008 16:04:22 Re:Logitech G15 MxO Applet (In development)
I can't hack into the client for that level of details ><
#36300493941 08/31/2008 17:25:58 Re:Logitech G15 MxO Applet (In development)
Someone asked if the next time I posted a pic, it wasn't so....un-descriptive.
Well, here we go.  Pulling HP and IS bars for reading.  Working with this image before I send to the LCD (All I have to do is put in SendToLCD();




#36300493947 08/31/2008 18:22:32 Re:Logitech G15 MxO Applet (In development)
I've been watching this thread with interst as i've had the g15 for about a year now and luv it completely!  Tho I'm a nub at programming (i'm a builder not a coder!!!) I'm very interested in where your going Tsusai!.  I'm willing to test anything you want on my unit. If you want i'll send you the specs as I just built it about 4 months ago.


Photo Sharing and Video Hosting at Photobucket
#36300493963 08/31/2008 19:41:08 Re:Logitech G15 MxO Applet (In development)
Thanks, although sometimes I wish I could trade some of this coding stuff in for art talent.
Rearranged the stuff.  All I think I have to do now, is cleanup / document my code, set it up on a timer, and make a configure section to find launcher.exe or your own personal shortcut.  Oh course, this end product will NOT have this lovely interface SMILEY




#36300494022 09/01/2008 06:07:08 Re:Logitech G15 MxO Applet (In development)
Looking good man....so what ya want for it?  some beerskis?   Digital Chonic(see meh DownTown)?   my Seeester?
Photo Sharing and Video Hosting at Photobucket
#36300494168 09/01/2008 16:41:20 Re:Logitech G15 MxO Applet (In development)
Labor Day Update.

I got it all cleaned up and the such, but ran into an issue. The premade helper component that links my app to the LCD, is a P.O.S. It actually causes Access Violations when the keyboard isn't there, so I'm bugfixing someone else's code before I release.
#36300494284 09/02/2008 07:07:40 Re:Logitech G15 MxO Applet (In development)
Hey Tsu, do you want better quality images made for that thing?
#36300494287 09/02/2008 07:26:22 Re:Logitech G15 MxO Applet (In development)

Clever stuff! SMILEY

Have to say, though, I don't much see the point in an LCD on the keyboard. I can just look at the monitor - which I'm doing anyway. SMILEY The G11 sounds cool, though. Oh, the things I could do with those extra buttons. >_>

#36300494289 09/02/2008 07:42:41 Re:Logitech G15 MxO Applet (In development)
Will the file work on both versions of the keyboard? Currently I have the original one:

But Logitech recently updated it:

Smaller, fewer G-keys, and it seems to have a smaller display.
May I ask which variant of the keyboard you're testing this on?
/as
#36300494297 09/02/2008 09:07:00 Re:Logitech G15 MxO Applet (In development)
It should work on all models from what the documentation says (testing on the 2nd version though), and the quality in the debug is smaller because its 160x43 pixels I have to work with.


#36300495211 09/04/2008 21:22:31 Re:Logitech G15 MxO Applet (In development)
Update: I'm sitting down, watching Aqua Teen Hunger Force, with 3 pages of printed out code and a pen. Its like I'm grading homework....and this person failed to take into consideration things like hotplugging the keyboard while his code is used.

Makes me sad...even a second person made mods to this, claiming to have coded for 20 yrs (I've coded for 10) and I can't believe he missed these stupid things...

There are better ways to handle errors than using Assert(); *massive eye roll*

EDIT
OMGWTFBBQ ACTUAL SCREENSHOTS!!!! (No, I did not fix the above issues yet)
#36300495252 09/05/2008 03:38:44 Re:Logitech G15 MxO Applet (In development)
Wow, those scnshots are just the way to start my day!!

GJ man.  Looking great!
Photo Sharing and Video Hosting at Photobucket
#36300495299 09/05/2008 07:54:39 Re:Logitech G15 MxO Applet (In development)
Corrected a bug fix in the LCD. Out of curiosity, anyone see the problem? XD (odj you don't count since I just told you)
#36300495302 09/05/2008 08:00:55 Re:Logitech G15 MxO Applet (In development)
Something to do with the colour. One of the four lines is yellow in all four photos, although it alternates.
#36300495303 09/05/2008 08:04:22 Re:Logitech G15 MxO Applet (In development)
Mega City Time Time? Oh bug, then something to do with the colour as Proc says. If anything changes on a line does it turn yellow? /shrug
#36300495307 09/05/2008 08:43:06 Re:Logitech G15 MxO Applet (In development)
Its not the color its just my camera's flash up close and its a bad lit area.  Its a monochrome display.

Vinia is on the right track. Its something to do with the MCT time.

Why I'm asking?  Just having a bit of fun with you guys/girls while I work on the whole thing :)
#36300495308 09/05/2008 08:47:23 Re:Logitech G15 MxO Applet (In development)
It says PM instead of AM.
#36300495309 09/05/2008 08:53:38 Re:Logitech G15 MxO Applet (In development)
Close, it was 10 PM Pacific at the time of the taking and posting of this image.  I'm in Central time.  It was Friday AM for me, and Thursday PM for Pacific :)
#36300495460 09/05/2008 19:39:30 Re:Logitech G15 MxO Applet (In development)
Did alot of coding tonight, but I haven't tested it on mine, since I'm mobile right now.

Beta 1 Notes:
Fixed:
*)Cleaned up this guy's code, now I have silent, manageable errors (you guys don't want popup windows now do you ;)
*)Fixed MxO Clock feature.  Day part of the time string is now correct.
*)Increased internal refrest time from 800ms to 50ms.

Todo:
*)Verify Jack Into The Matrix arrow location.
*)Add configuration features (to take advantage of single button pressing to start the game)
*)Tweak internal timer if needed

Beta 1 REMOVED

Beta 2 Notes: (Got home to test it)
Fixed:
*)Increased internal timer to 500ms.  20ms caused alot of FPS drop on my machine
*)Display now shows up when MxO isn't running anymore.

Todo:
*)Fix Jack Into The Matrix arrow location.
*)Add configuration features (to take advantage of single button pressing to start the game)
*)Tweak internal timer as needed

Beta 2

Archived Media

#36300495543 09/06/2008 01:20:09 Re:Logitech G15 MxO Applet (In development)
I've downloaded your Beta2. When I'm next Jacked in I'll take it for a spin.
#36300495831 09/06/2008 21:41:43 Re:Logitech G15 MxO Applet (In development)
Any others? I love feedback so I can adapt it.
#36300495872 09/07/2008 05:27:20 Re:Logitech G15 MxO Applet (In development)
If you need any help with this feel free to contact me.  I still lurk around here these days and make a post now and then...

- DA
#36300498325 09/14/2008 10:29:51 Re:Logitech G15 MxO Applet (Beta)
Status Update

RL has pwn'd me this week. I'm reinstalling my Delphi right now, and will be working on the "Jack In" feature, and configuration so you can point it to any existing shortcut or where launcher.exe is located.  I probably won't be tweaking the rest of the system as no one has complained.

#36300508499 10/09/2008 21:27:49 Re:Logitech G15 MxO Applet (Beta)
Well, since no one has really complained, I'm currently working on the "Jack-In" system.  I decided since I can't just call the game directly (anti hack / hook stuff), I thought it would be cool to load several shortcut files in the folder with it.  This grants it some fake extra abilities!

ie.
G15MxO.exe would see some shortcuts I made like
SaiRec.lnk (Shortcut to use my character on recursion)
SaiSyn.lnk (Shortcut to use my character on Syntax)
SaiVec.lnk (Shortcut to use my character on Vector)

Up to 7 should be supported, else I'll knock it down to 4.

With a press of a button, you could start MxO with special shortcuts to login under whatever characters you want.  How cool'ith is that?
#36300508659 10/10/2008 09:37:24 Re:Logitech G15 MxO Applet (Beta)

Umm, what are you talking about? There weren't any exploits in that post.

All he did was warn the OP of digging too deep, lessons he learned from personal experience.

*sigh* Here we go with the over-modding again.

#36300508689 10/10/2008 11:26:24 Re:Logitech G15 MxO Applet (Beta)
I dunno what happened, I didn't see the original post, but what I had meant was I couldn't call MxO from via ShellExecute() (nothing to do with exploiting in any form, its just programming jargon), a windows API call. I apologize if a person misunderstood me and may have had action taken against his forum account.

#36300508854 10/10/2008 20:57:01 Re:Logitech G15 MxO Applet (Beta)

I would love to give this a try!  I have a Logitech G15 and really enjoy running across programs that make use of the screen to display stuff like the clock, health stats, etc.

Am I correct at the time of this post that the last link you posted is the most recent?  Or should I wait for another build?

Thanks very much for all your hard work!