Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Maple] Wierd thing happened..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Fri Aug 31, 2007 4:18 am    Post subject: [Maple] Wierd thing happened.. Reply with quote

Hey

I used the TranslateMessage and DispatchMessage functions to send a message to maple, but something wierd happened..
When I was in game, I clicked the hotkey that I made to send the message (It was supposed to send WM_KEYDOWN and WM_KEYUP of the button 'Z', which I put for jump) and nothing happend. But, when I clicked enter to write something and then clicked the hotkey, it wrote 'z' twice.
The code I used:

Code:

if( GetAsyncKeyState( VK_F8 ) )
   {
      MSG Msg;
      Msg.hwnd = hWnd;
      Msg.lParam = 0;
      Msg.wParam = 'Z';
      Msg.message = WM_KEYDOWN;
      Msg.time = 0;
      TranslateMessage(&Msg);
      DispatchMessage(&Msg);
      Msg.message = WM_KEYUP;
      TranslateMessage(&Msg);
      DispatchMessage(&Msg);
   }


Does anyone knows what's the problem?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 31, 2007 6:13 am    Post subject: Reply with quote

my guess they patched keystrokes but with translate msg it types but doesnt preforms moving events (move, jump, shoot...)
try other keys? like I for Inventory? see if it opens and then tell us =P but who knows, maybe im wrong, just a guess...
Back to top
View user's profile Send private message
Grieverus
Expert Cheater
Reputation: 0

Joined: 31 Aug 2007
Posts: 136

PostPosted: Fri Aug 31, 2007 9:09 am    Post subject: Reply with quote

is there anyway to bypass gg
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Aug 31, 2007 10:02 am    Post subject: Reply with quote

copy zuans driver Wink
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
SystemShock
How do I cheat?
Reputation: 0

Joined: 31 Aug 2007
Posts: 8

PostPosted: Fri Aug 31, 2007 10:04 am    Post subject: Reply with quote

Poor MS its been haxd soo much. Its gonna Splode soon. Very Happy
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Aug 31, 2007 10:09 am    Post subject: Reply with quote

fuck ms, go ghost online. i had to quit though cuz of school =(
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
SystemShock
How do I cheat?
Reputation: 0

Joined: 31 Aug 2007
Posts: 8

PostPosted: Fri Aug 31, 2007 10:12 am    Post subject: Reply with quote

Yea Ghost is ok and also DragonGem.
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Fri Aug 31, 2007 12:58 pm    Post subject: Reply with quote

oib111 wrote:
copy zuans driver Wink
Mad
_________________
Back to top
View user's profile Send private message
kittonkicker
I post too much
Reputation: 1

Joined: 19 Apr 2006
Posts: 2171

PostPosted: Fri Aug 31, 2007 1:02 pm    Post subject: Reply with quote

http://msdn2.microsoft.com/en-us/library/ms644944.aspx

msdn wrote:
BOOL PostMessage(HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);


Figure out what you need to put in lParam, then it'll work!

_________________
All gone Sad
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Fri Aug 31, 2007 1:38 pm    Post subject: Reply with quote

A follow up hint: WParam & LParam are both considered "extra" instructions..

WParam is the virtual keycode, so what do you think LParam could be? (the opposite of virtual is...?)
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Fri Aug 31, 2007 4:07 pm    Post subject: Reply with quote

SCANCODE!!!!!!!!!! i already released the format. and so did x0r and so did john.
_________________
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Sun Sep 02, 2007 3:54 am    Post subject: Reply with quote

Ok, I'm not sure I understand it completely, but will this work?
Code:

MSG Msg;
Msg.hwnd = hWnd;
Msg.lParam = MapVirtualKey('z',MAPVK_VK_TO_VSC);
Msg.wParam = 0;
Msg.message = WM_KEYDOWN;
Msg.time = 0;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
Msg.message = WM_KEYUP;
TranslateMessage(&Msg);
DispatchMessage(&Msg);


I couldn't find sponge/x0r/john explainations..
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Sun Sep 02, 2007 7:52 am    Post subject: Reply with quote

0x1D0001 for LPARAM

But I don't know why you are doing it this way, I would create a function that send keys and use it whenever I need. Like this:
Code:
void __declspec(dllexport)__stdcall Send(UINT Message, WPARAM Wp, LPARAM Lp)
{
   HWND hWND = FindWindow("MapleStoryClass", "MapleStory");
   MSG Msg;

   Msg.hwnd = hWND;
   Msg.lParam = Lp;
   Msg.message = Message;
   Msg.wParam = Wp;

   TranslateMessage(&Msg);
   DispatchMessage(&Msg);
}


And then use it like this:
Code:
Send(WM_KEYDOWN, 0x53, 0x1D0001);

_________________
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Sun Sep 02, 2007 8:08 am    Post subject: Reply with quote

I've just figured it up Smile
I did something like:
Code:

MSG Msg;
Msg.hwnd = hWnd;
Msg.lParam = (MapVirtualKey('Z',0) << 16) & 0x00FF0000;
Msg.wParam = 0;
Msg.message = WM_KEYDOWN;
Msg.time = 0;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
Msg.message = WM_KEYUP;
TranslateMessage(&Msg);
DispatchMessage(&Msg);


And it was just a check to see if it works, now I'll really make a function.
Tnx for the help anyone..

BTW
In the way that I did, it'll only jump in maple when I click the hotkey, but it won't write 'z' when I click enter, so it's very comfortable.
Back to top
View user's profile Send private message
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Sun Sep 02, 2007 9:48 am    Post subject: Reply with quote

Why not just SendMessage....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites