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 


[Help] How to use PMX / Hookhop .dll

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Apr 14, 2008 6:10 am    Post subject: [Help] How to use PMX / Hookhop .dll Reply with quote

how can i use PMX / Hookhop to sendKeys to MS?
what i did is
Code:

PostMessageX(hWnd,WM_CHAR,'z',0);


i put it inside a timer that turn himself on each time i click a checkbox
but when it turns on it writes 'z' inside the chat box (postmessage lmao)
but how can i use it to send the 'z' key to loot stuff Confused
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Mon Apr 14, 2008 6:38 am    Post subject: Reply with quote

you need to use MapVirtualKey('your key', 0) and then shift those bits left 16 times

and thats your lparam

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

Joined: 20 Apr 2007
Posts: 668

PostPosted: Mon Apr 14, 2008 6:39 am    Post subject: Reply with quote

shl 16 (ty Rot1 Razz)


var
key: DWORD;
begin
key:= MapVirtualKey(5A, 0); //5A is the value of "Z"
key:= key shl 16;

PostMessageX(hWnd,WM_CHAR,5A,key);
end;
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Apr 14, 2008 6:42 am    Post subject: Reply with quote

i dont think i understand that shl 16 thing.. what's that mean shift left the key?
Back to top
View user's profile Send private message
4ng3licDew
Cheater
Reputation: 0

Joined: 14 Feb 2008
Posts: 28

PostPosted: Mon Apr 14, 2008 6:47 am    Post subject: Reply with quote

Please read thread topic: C++ postmessage by Snootae
I posted a full C++ code example there. Here is a snippet:

C++ code:
Code:

   UINT scancode;
   LPARAM lparam;

   scancode = MapVirtualKey(VkKeyScan('z'), 0);
   lparam = (scancode << 16) + 1;
   PostMessageX(cHandle, WM_KEYDOWN, NULL, lparam);
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Apr 14, 2008 6:51 am    Post subject: Reply with quote

how can i shift left in C# ?
Back to top
View user's profile Send private message
4ng3licDew
Cheater
Reputation: 0

Joined: 14 Feb 2008
Posts: 28

PostPosted: Mon Apr 14, 2008 7:00 am    Post subject: Reply with quote

Please repeat this 10 times Google is my best friend.

Use google and look for: shift left C#
Quote:

In C# to implement the Left shift operation using '<<' Operator.

So the shift left operator in C# is the same as C++.


Last edited by 4ng3licDew on Mon Apr 14, 2008 7:04 am; edited 1 time in total
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Apr 14, 2008 7:02 am    Post subject: Reply with quote

nvm i got it work with your code
i think i got it now
thx a lot and thx every1 who helped
yay i can auto loot now =D
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Apr 14, 2008 7:52 am    Post subject: Reply with quote

4ng3licDew, it's <<=

edit: just to be save, don't use 'z', use 0x5A
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Apr 14, 2008 10:26 am    Post subject: Reply with quote

may i ask what is the different bitween 'z' and 0x5A except the writing Confused

edit: where can i get all the keys list? i searched it on msdn but found nothing (searched "keys") :s
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Mon Apr 14, 2008 10:49 am    Post subject: Reply with quote

her is a big part of them, dont know if all of them are there...:

http://delphi.about.com/od/objectpascalide/l/blvkc.htm
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Apr 14, 2008 11:14 am    Post subject: Reply with quote

1qaz wrote:
may i ask what is the different bitween 'z' and 0x5A except the writing Confused

edit: where can i get all the keys list? i searched it on msdn but found nothing (searched "keys") :s


it's their hex type.
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Apr 14, 2008 11:43 am    Post subject: Reply with quote

ok thank you both kaspersky and anden100 :] very helped
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
Page 1 of 1

 
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