943,919 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 475
  • C# RSS
Jul 14th, 2008
0

Need help urgently on keyboard hooks

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FlaminPhoenix is offline Offline
4 posts
since Feb 2008
Jul 14th, 2008
0

Re: Need help urgently on keyboard hooks

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
Reputation Points: 10
Solved Threads: 10
Junior Poster in Training
camilojvarona is offline Offline
89 posts
since Jul 2008
Jul 14th, 2008
0

Re: Need help urgently on keyboard hooks

The game has no exposed API! That is the main problem!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FlaminPhoenix is offline Offline
4 posts
since Feb 2008
Jul 14th, 2008
0

Re: Need help urgently on keyboard hooks

Hi,

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


Regards,
Camilo
Reputation Points: 10
Solved Threads: 10
Junior Poster in Training
camilojvarona is offline Offline
89 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: problem on threading
Next Thread in C# Forum Timeline: writing more on 1 line in csv





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC