Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Perfect World
You last visited: Today at 22:53

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

Advertisement



Making a bot: DirectInput

Discussion on Making a bot: DirectInput within the Perfect World forum part of the MMORPGs category.

Reply
 
Old   #1
 
plixbugmenot's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 89
Received Thanks: 56
Making a bot: DirectInput

I have been looking for the place where it checks the keyboard for keypresses, but I haven't been able to get there yet. It's probably not done in the Elementclient.exe, but in one of the dlls. (ifc22, or immwrapper.dll). I'm pretty sure it uses DirectInput (it loads dinput.dll). I need this because I want to make a bot in C++ and don't want to send keystrokes to the client, so that it is easy to use.

I have found the virtual mouse function in ifc22.dll:

Code:
.text:10012A40 ; public: virtual int __thiscall CImmMouse::GetCurrentPosition(long &, long &)
.text:10012A40                 public 
.text:10012A40
.text:10012A40 Point           = tagPOINT ptr -8
.text:10012A40 arg_0           = dword ptr  4
.text:10012A40 arg_4           = dword ptr  8
.text:10012A40
ifc22 also manages the shaders, and the DXDEVICE.

Also I'm investigating if it would be possible to run AND cast a spell at the same time, so you don't stand still while casting.
plixbugmenot is offline  
Old 08/16/2010, 22:25   #2
 
elite*gold: 0
Join Date: Nov 2009
Posts: 31
Received Thanks: 0
yup.. it is Dinput we are looking at..

_sendmessage($hwnd, wm_ime_keydown, asc("1"), 0)

tested, ain't working lol.
unnang is offline  
Old 08/16/2010, 22:27   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 31
Received Thanks: 0
unnang is offline  
Reply


Similar Threads Similar Threads
DirectInput hook
09/01/2013 - General Coding - 9 Replies
Da die Frage in einem anderen Thread aufkam, benutzt ihr fremde Libraries um einen Hook durchzuführen und wenn ja welche ? Kann man damit HackShield oder GameGuard umgehen und einen Bot mit virtuellen Tastendrücken ansteuern?
Help with making new bot
07/07/2008 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 9 Replies
Hey guys, im looking for some people with good programming skills. I just came up with idea of new bot and started to program it, but im not too good with programming so my version will be very simple. In the end it will be very simple and not too powerful bot, but still working anytime, anywhere, it wont mind any gameguard system and antibot system. Even without any problem work with BAKE ICE. Even may work with some other games, maybe with simple changes. I just share main idea of that...
Making A UCE
06/25/2008 - Cabal Online - 0 Replies
can any one be nice can help me making one ?? im not into asking people for it but i just want to make one of my own can any one guide me ??
Bot Making
06/01/2008 - General Gaming Discussion - 10 Replies
Hi There, I'm lookin for someone that can explain to me how to make a bot or a Guide on Youtube so i can watch or maybe talk on msn whatever i dont know. but this handgrinding is becoming to boring and lookin how to make a bot for this game but i need help who can help me? greetz
Re making a mod...
05/20/2007 - Silkroad Online - 3 Replies
When a program is compiled for any platform, is not possible to return it to source code. (Thanks to bill gates)8==D (Admin Clockpussy, and joyma$x team). Debug a private program its illegal...mmhh ha HA haHA Any files contains anti debug systems, its possible to try with ,wdasm,VB, (or "gdb" for linux) or Resource Hacker. A debugger permits you to control the execution of a program in real time, see the apis that consults the system. But it is not possible to return an EXE, to the...



All times are GMT +1. The time now is 22:53.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.