954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need help urgently on keyboard hooks

Hi, Im making a mod for a game in vc#.net 2003. The game is warcraft 3. I want to create an external software to process commonly used "hotkeys" used within the game. there are various charecters within the game, and I need to map their hotkeys onto easily accessible keys on the keyboard.

The main concept I want to know about is if I can capture global hotkeys, process them, and send a different hotkey to the OS? Like, If the user maps the charecters' four powers to QWER, will I be able to take input Q from the user, process it, and then send the signal T to the game, because T is the would be actual power of the charecter that the game recognises. Im just making things easier for the user.

Is there an external library for this? How can I make a custom solution.Can anyone help me out with a cue, or point me towards a solution, any help would be greatly appreciated.

FlaminPhoenix
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,

I think that you need to know how to interact with the API of the game. If you can, the you should be able to proccess the hotkeys in the C# program and send the imput directly to the game aplication.

Hope this help,
Camilo

camilojvarona
Junior Poster in Training
89 posts since Jul 2008
Reputation Points: 10
Solved Threads: 10
 

The game has no exposed API! That is the main problem!

FlaminPhoenix
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,

I've found this link I am reading it right now.
http://www.codeproject.com/KB/system/CSLLKeyboard.aspx


Regards,
Camilo

camilojvarona
Junior Poster in Training
89 posts since Jul 2008
Reputation Points: 10
Solved Threads: 10
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You