Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 14:34

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

Advertisement



I need some C# help.

Discussion on I need some C# help. within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 23
Received Thanks: 50
I need some C# help.

Does anyone have a working code to send keystroke to 12Sky2?

I have tried SendMessage, PostMessage, SendInput, and a few low level keyboard hooks. I just can't seem to get it working.
ChewieBacon is offline  
Old 03/25/2010, 19:20   #2
 
elite*gold: 0
Join Date: Apr 2007
Posts: 649
Received Thanks: 105
Megabyte is great with C#.
Iktov is offline  
Old 03/25/2010, 22:43   #3

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,776
Received Thanks: 1,003
Well theres several ways...
Ide probably just use keyboard simulation globally or sending it straight to the window handle of 12sky2. Another way is to inject a dll into 12sky2 and call the code for managing a keypress and just pass what key :P A better way for if you just want to spam stuff like skills aoe etc is to call that code using an injected dll. Im working on a way to have a C# gui comunicate with an injected dll coded in C++ which handles hooks and the likes.

Suppose we could collobrate or something although I think you already have SendKeys working

Links that may help


From MSDN
Quote:
Because there is no managed method to activate another application, you can either use this class within the current application or use native Windows methods, such as FindWindow and SetForegroundWindow, to force focus on other applications.
I think I read somewhere you can send a windows message to that window handle so I will try to do this sometime soon



Maybe this will provide more information


Try with findwindow handle api
Mega Byte is offline  
Reply




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


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