| View previous topic :: View next topic |
| Author |
Message |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Apr 14, 2008 6:10 am Post subject: [Help] How to use PMX / Hookhop .dll |
|
|
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
|
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon Apr 14, 2008 6:38 am Post subject: |
|
|
you need to use MapVirtualKey('your key', 0) and then shift those bits left 16 times
and thats your lparam
_________________
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Mon Apr 14, 2008 6:39 am Post subject: |
|
|
shl 16 (ty Rot1 )
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 |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Apr 14, 2008 6:42 am Post subject: |
|
|
| i dont think i understand that shl 16 thing.. what's that mean shift left the key?
|
|
| Back to top |
|
 |
4ng3licDew Cheater
Reputation: 0
Joined: 14 Feb 2008 Posts: 28
|
Posted: Mon Apr 14, 2008 6:47 am Post subject: |
|
|
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 |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Apr 14, 2008 6:51 am Post subject: |
|
|
| how can i shift left in C# ?
|
|
| Back to top |
|
 |
4ng3licDew Cheater
Reputation: 0
Joined: 14 Feb 2008 Posts: 28
|
Posted: Mon Apr 14, 2008 7:00 am Post subject: |
|
|
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 |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Apr 14, 2008 7:02 am Post subject: |
|
|
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 |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Apr 14, 2008 7:52 am Post subject: |
|
|
4ng3licDew, it's <<=
edit: just to be save, don't use 'z', use 0x5A
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Apr 14, 2008 10:26 am Post subject: |
|
|
may i ask what is the different bitween 'z' and 0x5A except the writing
edit: where can i get all the keys list? i searched it on msdn but found nothing (searched "keys") :s
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Apr 14, 2008 11:14 am Post subject: |
|
|
| 1qaz wrote: | may i ask what is the different bitween 'z' and 0x5A except the writing
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 |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Apr 14, 2008 11:43 am Post subject: |
|
|
| ok thank you both kaspersky and anden100 :] very helped
|
|
| Back to top |
|
 |
|