sending information to win application

January 8, 2011 at 12:24:16
Specs: Windows 7
I'm trying to create a batch file that lunches an application, selects a from a multiple choice
and than starts an other application.
I shall explain:
I want to lunch freeHideIP ( a proxy server desktop app),
after that I have to lunch firefox on a specific website.
for this to work I have to choose twice between multiple choices.
first press [t]ry in freeHideIP
than [H]ide

I tried this:

@echo of
cd program files\freehideip

echo t h | freehideip

start firefox.exe

that does not work.
maybe because its suppose to be:
echo [alt+t] [alt+h] | freehideip
what is the ascii code for alt+t ? will this work? will I be able to lunch a BAT in unicode?

thanks a lot

See More: sending information to win application

Report •

January 8, 2011 at 12:48:45
If you have to interact with freehideip via GUI, you need a VBScript since batch can't issue GUI commands.

Report •

January 8, 2011 at 12:52:41
what if the program alows me to make the choice by using a short key (as alt+t etc)
doesn't this bypass the GUI?

Report •

January 8, 2011 at 13:03:53
Unfortunately NO since to interact with a batch script the program has to accept commands from stdin unit that is activated by coding a pipi (| symbol). The short key is interpreted via the Windows API interface so no luck.

Report •

Related Solutions

January 8, 2011 at 13:18:46
A workaround I don't know if it may fit your issue may be the following. Be patient and read the whole thread.

Report •

Ask Question