Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Misc > Archive::Off Topic

Archive::Off Topic Archive area for Off Topic's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2004, 03:12 PM
capbob00
Fire Beetle
 
Join Date: May 2004
Posts: 12
Default VB program help

I'm trying to write a vb6 app that sends key strokes to a game, (City of Heroes). All I want to do is activate some buff type powers with a timer in vb.

I use AppActivate to bring up the City of Heroes window and then send the key commands. This is where I'm having problems. If I have the focus in the chat box entry line then any commands that I send go in fine. But if it's not in the chat box, then nothing gets through. I need the focus outside the chat box so I can send commands like Alt+1, Alt+2, etc, to the game itself.

I've tried using SendKeys, keybd_event, and SendInput but all 3 will only send key strokes to the chat window. I'm guessing that the game uses directinput for anything other than the chat box. If that's the case, then from what I've read, there is no way to send keystrokes through directinput, you can only wait for them to be pressed.

Anyone have any ideas?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:57 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3