Register for your free account! | Forgot your password?

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

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

Advertisement



Self-Type (using keybd_event)

Discussion on Self-Type (using keybd_event) within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 22
Received Thanks: 1
Self-Type (using keybd_event)

Self-Type.
By: Str1k3r21
Credits: MSDN, UC-FORUM.
Enjoy

Code:
void cType::Key(BYTE bVK){
	      // Simulate a key press
         keybd_event( bVK,
                      NULL,
                      KEYEVENTF_EXTENDEDKEY | 0,
                      0 );

      // Simulate a key release
         keybd_event( bVK,
                      NULL,
                      KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
                      0);
}

void cType::Array (BYTE bVK[], int length ){
 for ( int n=0; n<length; n++ )
	 cType::Key(bVK[n]);
 }

void cType::Command(BYTE bVK[], int length){
	cType::Key(VK_RETURN);
	cType::Key(VK_OEM_2);
	cType::Array(bVK,length);
	cType::Key(VK_RETURN);
}
str1k3r21 is offline  
Reply


Similar Threads Similar Threads
[hilfe] c++ keybd_event
07/01/2010 - C/C++ - 3 Replies
hallo ich hab ein kleines problem ich hab versucht einen bot mit c++ zu schreiben aber der compiler zeigt immer einen fehler an ich hab im internet nichts dazu gefunden könt ihr mir bitte helfen #include <iostream>
c++ keybd_event problem
06/17/2010 - C/C++ - 4 Replies
ich hab ein kleines problem beim tastendruck simulieren in c++ und zwar Sleep(100); keybd_event(VkKeyScan('E'),0,0 , 0); hier wird ja e gesendet aber leider nur auf das programm das im vordergrund steht wie kann man das z.b. zu nostale senden?? also nur zu nostale
'keybd_event' -Alternative
10/16/2008 - General Coding - 13 Replies
Guten Tag. Könnte mir jemand freundlicherweise die Funktion zum Simulieren des Drückens einer Taste aktualisieren, und zwar so, dass diese in den meisten MMORPGs funktioniert? Also so ähnlich wie die von AutoIt, die, soweit ich weiß, 'WinAttach' gebraucht. PS: Darüberhinaus würde ich es begrüßen, wenn mir einer den Quellcode kompilieren könnte, da ich überhaupt nicht weiß, wie so etwas funktioniert. Vielen Dank :-)
Need item type and token type boot
03/18/2008 - Conquer Online 2 - 1 Replies
Hi All programers and makers of boots, Great job. Could some one make item and token type boot for patch 5118. Please
New type of bot
12/09/2006 - Conquer Online 2 - 1 Replies
I don't think anyones come up with the bot yet, but here goes. Anyone want to make a bot for tg. It logs back in after it disconnects and puts your character back to the spot in tg you want it to. Then there can be a bunch of settings like scatter up scatter down, night devil glitch, water elf glitch. All kinds of good stuff like that.... if theres a bot already like this im sorry for posting and could i get a link to it



All times are GMT +1. The time now is 11:31.


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.