[In EN] Programmer assistance needed

10/26/2008 22:13 ufoloodek#16
Anyone familiar with Microsoft Spy ++ ?

I used it to listen to the messages going through the game (sent/received)...

What I already did is to emulate space-press in 90%.
There's only one thing I don't understand about Spy++...

[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]

In the screeny:

first green box - space-press emulated by following code:
Code:
	lP := makeLParam($0001, $0039);
	SendMessage(hMetin, WM_KEYDOWN, 32, lP);
	SendMessage(hMetin, WM_CHAR, 32, lP);
	lP := makeLParam($0001, $C039);
	SendMessage(hMetin, WM_KEYUP, 32, lP);
first red box - space pressed in-game

second green box - enter-press emulated by following code:
Code:
	SendMessage(hMetin, WM_CHAR, 13, 0);
second red box - enter pressed in-game


The not-so-funny part
1. Enter works as it should in both cases - emulated and 'legal'.
2. Space works the legal way ONLY.
3. What the hell are those marked by me letters ????

Anyone ?



[edit]
Did anyone try SendMessage from injected DLL ?
10/27/2008 17:50 Iron_Maiden91#17
Quote:
Originally Posted by ufoloodek View Post
...
[edit]
Did anyone try SendMessage from injected DLL ?
Yeah I tried it, but in my case, the AutoPachter from Metin2 creates a new DLL.
Maybe it did something wrong i don't now.

The P/R/S difrences i don't know, I simply used WinSpy for getting information.

Can you please send me the code with which you get the correct Handel (hMetin) ? Thx for your response, MaToBe
10/27/2008 18:25 °Remus°#18
its easy to disable the patcher here is a guide in german to do this
[Only registered and activated users can see links. Click Here To Register...]
you have to rename the metin.bin into metin.exe
10/28/2008 10:17 ufoloodek#19
Quote:
Originally Posted by Iron_Maiden91 View Post
(...)
Can you please send me the code with which you get the correct Handel (hMetin) ? Thx for your response, MaToBe
Code:
function findMetin(): Cardinal;
begin
  Result := FindWindow(nil, 'METIN2');
end;
Looking for the window using it's title bar text.
Window class name looks really weird and MAY vary from computer to computer I guess...
Although it shouldn't...
10/28/2008 15:41 Iron_Maiden91#20
Quote:
Originally Posted by ufoloodek View Post
Code:
function findMetin(): Cardinal;
begin
  Result := FindWindow(nil, 'METIN2');
end;
Looking for the window using it's title bar text.
Window class name looks really weird and MAY vary from computer to computer I guess...
Although it shouldn't...
Yeah it does. And because of that my programm doesn't worked. ;)

Maybe now it does, thank you :)
10/29/2008 15:06 BONU$PUNKT#21
Quote:
Originally Posted by Quade View Post
Like °Remus° said: Hiddenbots are hardly possible to make. We tested it a lot of times, but we do not find any solutions. What a program doyou use for making bots?
One Way is one Way !
Some AU programmars make some hidden tools
or installations managers and there working realy
good !
10/29/2008 15:23 °Remus°#22
Quote:
Originally Posted by RapCity[RUSS] View Post
One Way is one Way !
Some AU programmars make some hidden tools
or installations managers and there working realy
good !
yes but this was on other games not on metin2, and they don`t want to use autoit,
i know it was a metin2 specific discussion, but maybe someone from the other sections is able to help you
#moved