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