Click to See Complete Forum and Search --> : Question from a noob...
Noob 4 ever
August 25th, 2001, 05:13 AM
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.
SAKYA
August 25th, 2001, 07:51 AM
Kindly make your question clear.Is this window a part of your application? or is it an independent exe application?
Noob 4 ever
August 25th, 2001, 01:27 PM
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.
jn8230
August 28th, 2001, 02:39 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.