Results 1 to 5 of 5

Thread: Send text to unfocused/minimized program

  1. #1

    Thread Starter
    New Member JustaR's Avatar
    Join Date
    May 2014
    Posts
    3

    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.

  2. #2
    Frenzied Member Gruff's Avatar
    Join Date
    Jan 2014
    Location
    Scappoose Oregon USA
    Posts
    1,293

    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

  3. #3

    Thread Starter
    New Member JustaR's Avatar
    Join Date
    May 2014
    Posts
    3

    Re: Send text to unfocused/minimized program

    Quote Originally Posted by Gruff View Post
    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.

  4. #4
    Frenzied Member Gruff's Avatar
    Join Date
    Jan 2014
    Location
    Scappoose Oregon USA
    Posts
    1,293

    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

  5. #5

    Thread Starter
    New Member JustaR's Avatar
    Join Date
    May 2014
    Posts
    3

    Re: Send text to unfocused/minimized program

    Quote Originally Posted by Gruff View Post
    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
  •  



Click Here to Expand Forum to Full Width