Button command issue

Jun 4, 2013
8
0
#1
When trying to setup a command to run in a button I get the following problem. If anyone can help me figure out how to fix it I would appreciate it.

Putting in the following command in the command box: c:\program files\programname\program.exe -remote or "c:\program files\programname\program.exe -remote" or "c:\program files\programname\program.exe" -remote

Results in the following going into the current command window/tab: c:\program files\programname\program.exe-remote or "c:\program files\programname\program.exe" -remote or "c:\program files\programname\program.exe-remote"
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,659
46
Albuquerque, NM
prospero.unm.edu
#2
Are you trying to run a command (the "Start a new window" radio button should be checked), or send keystrokes to the current window ("Send to the current tab")? If the latter, then the string should be in KEYSTACK format; see HELP KEYSTACK for details. You probably want something like this:

Code:
""c:\program files\programname\program.exe"" " -remote"
 
Jun 4, 2013
8
0
#3
I tried that as well when I saw it in another thread but that did not work for me. I tried to launch it in a new window and have it enter it into a current tab. In a new window nothing happens. In the current tab it puts in the command but no spaces. Not sure if it's something I am doing wrong or what but I will try and get a screenshot of the button so you can see it for yourself.
 
Jun 4, 2013
8
0
#4
Ok I found the problem. The shortcut for the program uses a ~ character in the path and TCC does not like it. I put in the full path and the application launches correctly and also pastes into a current tab when I set it up that way. I am not sure why the tilde character was throwing it off like that. I have not seen it in other paths either so that could be something I need to keep in mind.
 
Jun 4, 2013
8
0
#6
It's 15.00.29 x64. It's possible it is new but I got it working so that is all I care about. Normally programs don't have tilde's in their path. I think it's probably due to the fact it's a legacy app.