Register for your free account! | Forgot your password?

You last visited: Today at 02:57

  • Please register to post and access all features, it's quick, easy and FREE!


WASD to client

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 9
Received Thanks: 0
WASD to client

Code:
Func keydown($bvkCode)
    DllCall('user32.dll', 'int', 'keybd_event', 'byte', $bvkCode, 'byte', 0, 'uint', 0, 'ptr', 0)
EndFunc  ;==>keydown
Func keyup($bvkCode)
    DllCall('user32.dll', 'int', 'keybd_event', 'byte', $bvkCode, 'byte', 0, 'uint', 2, 'ptr', 0)
EndFunc  ;==>keyup
	
Func SendKey($KEY,$MSEC)
   keydown('0x' & hex(Asc($KEY), 2))
   sleep($MSEC)
   keyup('0x' & hex(Asc($KEY), 2))
This works if the game has focus. You would have to movce the camera to move to the right spot using keys though. Anyone got a good way to do that?



chompy2 is offline  
Old 05/24/2009, 21:29   #2
 
elite*gold: 0
Join Date: Dec 2008
Posts: 89
Received Thanks: 56
hmmyeah. I have a better way.

c/c++ funtion:

Code:
void SendKey(WPARAM key)
{
	PostMessage(m_hwnd,WM_KEYDOWN,key,0);
	Sleep(100); 
	PostMessage(m_hwnd,WM_KEYUP,key,0);
}
doesn't need focus.

I have no idea what you are actually trying to do though


plixbugmenot is offline  
Old 05/25/2009, 06:40   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 9
Received Thanks: 0
I realize you know a hell of a lot more than I do about this stuff... but try sending movement keys using your function. It won't work unless your client isn't the same as mine. What I posted will work. keybd_event is the updated function for sendkeystate.

I'm sure there are better ways to do it in memory but I thought this might help some people.
chompy2 is offline  
Reply



« Fake Perfect World Jump Hack | PW MS bot for mats »

Similar Threads
code für nen bot (wasd)
06/27/2010 - CrossFire - 16 Replies
Hi, ich wollte mir mal nen bot machen der für mich in crossfire rumläuft. Dazu verwendete ich autohotkeyscripts aber die nimmt cf nicht an. Welchen befehl oder was auch immer muss ich verwenden ??? Nein ich habe NICHT for zu "farmen". Danke
Rohan.jp Moving WASD
05/13/2010 - Rohan - 2 Replies
Hi I have a small request to people who could help me someone tell me how wasd going to do? in rohan.jp thank you in advance Sorry for my English
[HELP]I have a 5200+ source and client I make char FINE relog Client exit
03/06/2010 - CO2 PServer - Discussions / Questions - 66 Replies
Hello, I have made myself an 5200+ it works just about I have the client updated to 5200 And my source updated to 5200+ here is what my problem Is So I make an account /newacc hello test and I login all fine my CMD is showing fine too so then...
Granado Espado, is there a WASD hack?
02/02/2008 - General Coding - 4 Replies
i was just wondering, ist here a WASD hack, as in W,A,S,D = movement. i would love to know if there is a hack or something to change in the script so that you can move with W,A,S,D so far i havent found one and its very sad :( lol well if anyone...



All times are GMT +2. The time now is 02:57.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.