Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 03:09

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

Advertisement



Need help with mouse and keyboard input...

Discussion on Need help with mouse and keyboard input... within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Freszone's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 71
Received Thanks: 79
Need help with mouse and keyboard input...

A friend of mine asked if I could try to make a simple bot for him. Didn't promise him anything but I'll give it a try.
Bot involves some pixel search what I managed to get working fine, but the biggest problem at the moment is to send keystrokes and mouse input to Conquer window.
This bot will not be for official CO and I know that there would be many much better ways to do this, like a proxy.

The language I am using is C++ and I have tried PostMessage, SendInput, SendMessage, mouse_event and all that stuff but none of them works for CO window... Conquer seems to be blocking those or something... All I need is to be able to move/click mouse and send some keystrokes.
So, what should I do? I have basic knowledge of using OllyDbg, done some work with dll's and injection. If someone could give me a tip I would appreciate it.
Freszone is offline  
Old 07/15/2012, 22:51   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
You need to be running as administrator for that to work, and you also need to grab the window handle of the conquer client.
Zeroxelli is offline  
Thanks
1 User
Old 07/15/2012, 23:14   #3
 
Freszone's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 71
Received Thanks: 79
Thanks, got it working at least a bit And I was so stupid that I didn't even check is my Visual Studio running as admin... On my desktop pc what I use the most of the time I have it as admin but on this laptop I apparently didn't
Freszone is offline  
Old 07/15/2012, 23:20   #4
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Yeah, most people assume you don't need elevated privileges to access another windows handle, but you do. It's mainly a Windows perk in the newer versions.
Zeroxelli is offline  
Old 07/18/2012, 16:24   #5


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
If it`s not for official CO check out the Alchemy source, it might work just fine, and you could easily incorporate bot functions in it.
KraHen is offline  
Reply


Similar Threads Similar Threads
[C++] Get and save whole Keyboard (Text) Input without Keyboard Hook
03/24/2012 - Coding Tutorials - 1 Replies
Credits: me (silentchris) Alright, this shit will work with ALL Keyboards :) And you wont need to use a Keyboard Hook, which is, btw., gettin detected by some Anticheats ;) // Gets the current pressed key by looping thru all fkin vKey Codes DWORD FetchKeyCode( ) { DWORD i = 0x00; DWORD ret = 0x00;
pw with no monitor keyboard and mouse
03/23/2011 - Perfect World - 3 Replies
can someone play/run pw with no monitor, keyboard and mouse ??? i try it but not work, it say directx error, i manage computer using radmin. or someone can give me solution ???? tq.
Mouse or Keyboard controller
11/18/2009 - Aion - 0 Replies
Guys how do u think It's better.. Controlling with mouse or keyboard.. I have used to keyboard cuz of other games, but with mouse u can get 4 more quick buttons(W,S,A,D) xD
Mouse/Keyboard Recorder
04/12/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 8 Replies
Description: Hey if some of you people out there who wanted to create small bots for internet or games. Then all you need is a mouse/keyboard recorder. And I checked like over like 7-9 different ones. And the best one I found was called "JitBit Macro Recorder". Where to Get: I think it costs like $40.00. You can get it for free through torrents or rapidshare. Its like couple migabytes so i would recommend the a rapidshare site. Just go to google and type in: jitbit macro recorder...
keyboard/mouse hook
02/06/2008 - Cabal Online - 0 Replies
blockt gameguard keyboard bzw. mousehooks ?



All times are GMT +1. The time now is 03:10.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.