|
-
May 15th, 2014, 01:50 PM
#1
Thread Starter
New Member
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.
-
May 15th, 2014, 02:33 PM
#2
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.
Burn the land and boil the sea
You can't take the sky from me
~T
-
May 15th, 2014, 02:46 PM
#3
Thread Starter
New Member
Re: Send text to unfocused/minimized program
 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?
Last edited by JustaR; May 15th, 2014 at 03:07 PM.
-
May 16th, 2014, 05:16 PM
#4
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.
Burn the land and boil the sea
You can't take the sky from me
~T
-
May 17th, 2014, 05:55 AM
#5
Thread Starter
New Member
Re: Send text to unfocused/minimized program
 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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|