Register for your free account! | Forgot your password?

You last visited: Today at 02:02

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


WASD to client

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

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))
   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   #2
elite*gold: 0
Join Date: Dec 2008
Posts: 89
Received Thanks: 56
hmmyeah. I have a better way.

c/c++ funtion:

void SendKey(WPARAM key)
doesn't need focus.

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

plixbugmenot is offline  
Old   #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  

« Previous Thread | Next Thread »

Similar Threads
code für nen bot (wasd)
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....
16 Replies - CrossFire Moving WASD
Hi I have a small request to people who could help me someone tell me how wasd going to do? in thank you in advance Sorry for my English
2 Replies - Rohan
[HELP]I have a 5200+ source and client I make char FINE relog Client exit
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...
66 Replies - CO2 PServer - Discussions / Questions
Granado Espado, is there a WASD hack?
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...
4 Replies - General Coding

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

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.