Send text to unfocused/minimized program
I tried to send text to a minimized program but i didn't succeed.
this is the code:
PASTBINE LINK
The problem with this code is when I'm trying to send a text to a program, it's popping up to my screen.
so.. how can I block it?
Thanks to the helpers.
Re: Send text to unfocused/minimized program
You cannot use sendkeys() to send to anything other than the window that has the focus.
What program are you trying to send text to? Some programs have an API you can automate whether they are visible or not. Excel and Word are two.
Re: Send text to unfocused/minimized program
Quote:
Originally Posted by
Gruff
You cannot use sendkeys() to send to anything other than the window that has the focus.
What program are you trying to send text to? Some programs have an API you can automate whether they are visible or not. Excel and Word are two.
This is a game panel program. I guess this program doesn't have any API.
Maybe there's another way to send text to this program and still keep my Form focused?
Re: Send text to unfocused/minimized program
I seriously doubt it. IMHO trying to manipulate third party compiled programs is madness.
You are constantly playing catch up. They can easily ruin all your hard work with a couple
of simple changes in an upgrade. Add to that you have zero feedback.
You can only hope what you sent is processed as you intended.
If you stated which game exactly perhaps one of the many gaming members of this forum
might have some ideas.
I have no more options for you.
Re: Send text to unfocused/minimized program
Quote:
Originally Posted by
Gruff
I seriously doubt it. IMHO trying to manipulate third party compiled programs is madness.
You are constantly playing catch up. They can easily ruin all your hard work with a couple
of simple changes in an upgrade. Add to that you have zero feedback.
You can only hope what you sent is processed as you intended.
If you stated which game exactly perhaps one of the many gaming members of this forum
might have some ideas.
I have no more options for you.
Thanks for the advice.
The "game panel" is just a console that waiting for commands so I'm sure that there's a way to do it..
I found THIS program
maybe it might help?