• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

VB.NET SEND TEXT TO THE GAME.

Hi there. I need to know how to send a text to the game (window). Game is called Heroes Of Newerth.

Thanks.
0
AlexeyTimofeev
Asked:
AlexeyTimofeev
  • 2
  • 2
1 Solution
 
honestman31Commented:
You have to make the application active first then use

SendKeys.Send("Your Text here")

full example can be found here
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx#Y3162
0
 
AlexeyTimofeevAuthor Commented:
It is a game that uses DirectX. Does that change anything?
0
 
AlexeyTimofeevAuthor Commented:
What I'm trying to do is.. my program is getting some information relevant to the player and when player types the command my program should respond by sending message to the actual game. as I said games name is Heroes Of Newerth. It uses DIRECTX. Program should be able to send that message when game is focused or even if it's not.
0
 
honestman31Commented:
I don't know this game , but I know you cannot send any information ( Text )  while the application is not focused ( unless the the application itself allow API calls, Which I  doubt ) ,
in many cases you have to place the the application in certain place on your desktop and click inside the text box in the game itself then use sendkeys ,
I ran into such a problem while I was trying to send some information to a JAVA application , and it is end up to use Autoit3 ( google for it )   + VB as well
Autoit3 was used to make the JAVA application active and click on the place I want to insert text to , then VB will send the text .
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now