CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Posts
    4

    Question from a noob...

    I am trying to make a simple program for a game that will send text from a text box into the window the game is running in. I've looked at several source codes, but they don't really help. Any help here would be appreciated.


  2. #2
    Join Date
    Jun 2000
    Posts
    104

    Re: Question from a noob...

    Kindly make your question clear.Is this window a part of your application? or is it an independent exe application?


  3. #3
    Join Date
    Aug 2001
    Posts
    4

    Re: Question from a noob...

    Sorry for not making it clear, but yes it is an independent exe. It's an already existing game in which you can chat and I want my program to have a little text box to send the text to the game's window.


  4. #4
    Join Date
    Sep 2000
    Location
    CA
    Posts
    25

    Re: Question from a noob...

    You should be able to use the VB functions AppActivate and SendKeys... (AppActivate to make the window the active window, then use SendKeys to send keystrokes to the active application) if you have problems with AppActivate, you can use API calls. Not sure exactly which one you need, maybe SetForegroundWindow or SetActiveWindow


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured