![]() |
|
Winamp Controller - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43) +--- Thread: Winamp Controller (/showthread.php?tid=3388) |
Winamp Controller - Boop - 08-05-2009 ![]() Source code: http://www.mediafire.com/?mulumyzwjzg Just DLL: [attachment=1697] This more of a proof of concept, than something useful (although I'll be using this constantly now ).I included graphics.inc , which includes GetDCLF2 and ReleaseDCLF2 which I manged to reverse engineer from lf2. Using them you can draw to the screen using simple GDI commands. << If non of that made sense, go look at the source code. It also includes a few generic methods: DrawTextLF2 DrawRectangleLF2 DrawBitmapLF2 DrawBitmapLF2EX Most are self explanatory, just look at the code and you should be able to understand it. This also demonstrates how to use the mouse, I hooked the mouse click so now you can write code which runs when you click the mouse. 453CDCh : Y cord of mouse. 4546F0H : X cord of mouse. Hopefully someone gets some use out of this (if not, at least I will ).
RE: Winamp Controller - Evil Sonidow - 08-05-2009 That's really good work Silva, I like it. Do you think it's possible to turn off music at the start of the game and use winamp instead though? RE: Winamp Controller - naruto hyuuga - 08-05-2009 how to select sound? (i is just blank and i can't draw too) RE: Winamp Controller - Silverthorn - 08-05-2009 Pretty pwnsome stuff, man. And pretty fun to use. Looks like you got towards a new level in ASM. Time for something....bigger, more epic! :P @below: No. RE: Winamp Controller - naruto hyuuga - 08-05-2009 making lf2 like herofighter a bit maybe? just an weird idea when bp said that sentence RE: Winamp Controller - Boop - 08-07-2009 (08-05-2009, 10:33 PM)naruto hyuuga Wrote: how to select sound? (i is just blank and i can't draw too) This lets you control winamp from the lf2 window. For it to work, you need to have winamp running. If you can't draw, that is your fault. Go to patches.inc, detour proc. And between GetDCLF2 and ReleaseDCLF2 type: invoke DrawRectangleLF2,0,0,800,500,0FF0000h,0FFFFFFh You'll draw a large rectangle. |