Valhalla Legends Forums Archive | Visual Basic Programming | [VB6] Screen hooks to display text on a screen (Diablo II)

AuthorMessageTime
Fr0z3N
Not much to say, I wanna print text on my diablo window (IE. winamp song, ping, fps or w/e). All tips are appreciated as I know nothing so far.
February 27, 2006, 11:23 PM
Quarantine
Find the function D2 calls to display text when you type something, it should call an even more generic function, backstep into that then find out the address. Hook into the Render loop to remove flicker or find an address which changes on refresh to patch.
February 27, 2006, 11:29 PM
Topaz
You can use DirectDraw.
February 27, 2006, 11:32 PM
dRAgoN
[quote author=Fr0z3N link=topic=14386.msg147242#msg147242 date=1141082610]
Not much to say, I wanna print text on my diablo window (IE. winamp song, ping, fps or w/e). All tips are appreciated as I know nothing so far.
[/quote]
You can turn on the FPS printing on in D2 via a command line "/command".
February 27, 2006, 11:58 PM
Fr0z3N
[quote author=Warrior link=topic=14386.msg147244#msg147244 date=1141082955]
Find the function D2 calls to display text when you type something, it should call an even more generic function, backstep into that then find out the address. Hook into the Render loop to remove flicker or find an address which changes on refresh to patch.
[/quote]

Now put that in perspective when reading

[quote author=Fr0z3N link=topic=14386.msg147242#msg147242 date=1141082610]
All tips are appreciated as I know nothing so far.
[/quote]



[quote author=l)ragon link=topic=14386.msg147255#msg147255 date=1141084730]
[quote author=Fr0z3N link=topic=14386.msg147242#msg147242 date=1141082610]
Not much to say, I wanna print text on my diablo window (IE. winamp song, ping, fps or w/e). All tips are appreciated as I know nothing so far.
[/quote]
You can turn on the FPS printing on in D2 via a command line "/command".
[/quote]

That was an example....
February 28, 2006, 12:02 AM
UserLoser
[quote author=l)ragon link=topic=14386.msg147255#msg147255 date=1141084730]
[quote author=Fr0z3N link=topic=14386.msg147242#msg147242 date=1141082610]
Not much to say, I wanna print text on my diablo window (IE. winamp song, ping, fps or w/e). All tips are appreciated as I know nothing so far.
[/quote]
You can turn on the FPS printing on in D2 via a command line "/command".
[/quote]

Or type "fps" in-game.
February 28, 2006, 1:38 AM
Fr0z3N
[quote author=UserLoser link=topic=14386.msg147276#msg147276 date=1141090696]
[quote author=l)ragon link=topic=14386.msg147255#msg147255 date=1141084730]
[quote author=Fr0z3N link=topic=14386.msg147242#msg147242 date=1141082610]
Not much to say, I wanna print text on my diablo window (IE. winamp song, ping, fps or w/e). All tips are appreciated as I know nothing so far.
[/quote]
You can turn on the FPS printing on in D2 via a command line "/command".
[/quote]

Or type "fps" in-game.
[/quote]

That was an example I don't actually want to do that wow... Do you have any input for what I do want to do? (Print text on the d2 window LIKE the /fps commands)
February 28, 2006, 3:28 AM
Quarantine
Hey, I told you how to do it. I've told you in other threads what you need to do as well, if you choose not to listen that's not my fault.
February 28, 2006, 3:45 AM
Fr0z3N
I am choosing to listen, I am simply asking for it in more "noob" friendly terms.

If you could talk with me over aim or msn that'd be great.
February 28, 2006, 4:16 AM
Topaz
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7/directdraw7/ddover_5ak7.asp

DirectDraw!
February 28, 2006, 11:22 PM
Fr0z3N
[quote author=Topaz link=topic=14386.msg147368#msg147368 date=1141168963]
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7/directdraw7/ddover_5ak7.asp

DirectDraw!
[/quote]

Just looked at it, followed the Tutorial 1 and I have no idea what to do.
March 1, 2006, 12:09 AM
Quarantine
You're going to have to put some effort into this, google some tutorials understand game hacking, etc..

March 1, 2006, 12:33 AM
Fr0z3N
Just to update if anyone wants to do this, I had to inject a dll which I wrote in c++

[code]
typedef void (_stdcall *pPrint)(wchar_t* Text, char Color);

void PrintMessage(char *Message, char Color)
{
pPrint Print = (pPrint)0x6FAC6780; //function for adding message to chat
wchar_t Buffer[0x130];  //buffer (0x130 was maximum from what i read somewhere)
        //convert to WideChar (2 bytes per each character)
MultiByteToWideChar(0, 1, Message, 100, Buffer, 100);
Print (Buffer, Color);    //and print
}
[/code]

Used:

[code]
PrintMessage("Inject Successful",1);
[/code]
March 18, 2006, 6:25 PM

Search