Results 1 to 10 of 19

Thread: Send Input to Halo 2 Vista in C#

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Send Input to Halo 2 Vista in C#

    Hello, for all you C# programmers out there, ive got a question that i need answered.

    I want to stimulate the mouse and keyboard. I know a few methods to do this but for some reason, they dont seem to work while im playing h2v.

    So far, the only method that has worked is the SendKeys.Send function. unfortunately, SOMETIMES the game misses it and it ackts like if the function was never even used. I think this is becuase the function presses and lets go of the key way to fast before it evens give time for the game to detect it.

    for example, if i press SendKeys.Send("f"); the game should punch...right? well sometimes it does and sometimes it doesnt. i found out that if i do SendKeys.Send("fffffffffffffffffffffffffff"); i have a greater probability of puching, but it still isnt enough to make it punch 100% of the time.

    Is there a way to wait a while before the SendKeys.Send lets go of the button pressed? Is there a better way to send input that will work with directx games? If you have a way to do this in C++ that also works with h2v, feel free to post it also, I dont mind switching to C++ as long as it works

    all help is appreciated
    Last edited by Sprt4n117; September 12th, 2007 at 08:12 PM. Reason: I forgot to add one thing
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •