1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

start /wait /pgm "program name" ^ ketstack n/w

Discussion in 'Support' started by Charles G, Oct 29, 2012.

  1. Charles G

    Joined:
    Apr 2, 2011
    Messages:
    1,021
    Likes Received:
    0
    I have:

    start /wait /pgm "%ePr" ^ keystack alt-n alt-f "%cPFC" alt-o alt-n alt-n end up alt-n enter /W5400 alt-x

    where %ePr and %cPFC are correct. However keystack isn't feeding the keys correctly to %ePr. Any thoughts?
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    You may need to ACTIVATE the appropriate window before using KEYSTACK.
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    If TCC is waiting for the program to exit, the KEYSTACK won't be executed until the program has finished. See that with a simple example:

    Code:
    start /wait notepad & beep
    You don't get a beep until you close notepad. Run the KEYSTACK first with a sufficient delay (/W) so that the program is up and running when the keys are sent. This starts notepad and puts an 'e' in it.
    Code:
    keystack /w54 e & notepad
     
  4. Charles G

    Joined:
    Apr 2, 2011
    Messages:
    1,021
    Likes Received:
    0
    Thank you Vince - the problem was not feeding the keystrokes before the STARTed program.

    One other question about this keystack BTM. Is there a limit to the number of keystrokes that can be fed to a program? I have this in the BTM:

    keystack /W500 alt-n alt-f "%cPFC" alt-o alt-n alt-n end up alt-n enter /W5400 alt-x

    Where %cPFC is a 60 char full filename - including path.
    It seems to work until the third alt-n.
     

Share This Page