Page 1 of 1 1
Topic Options
#48227 - 1999-09-28 10:13 AM SHELL AND SENDKEYS
Anonymous
Unregistered


When using the SHELL CMD. I am unable to sendkeys to the screen to run an automatic install (Ex. macro)


SHELL ("\\server\software\wb\setup.exe")
SENDKEYS ({TAB})
SENDKEYS ({ENTER})

I want the setup.exe file to start (which it does) and then echo the TAB KEY and then the ENTER key.

What happenes:
It runs the Setup file, but just sittes there. When you exit the setup application, it will then echo the TAB and then the ENTER key.

I need to have it run the SETUP.exe file and send the Keys, TAB and ENTER.

Please help.......
Thanks

Top
#48228 - 1999-09-29 03:14 AM Re: SHELL AND SENDKEYS
PaulMoxey Offline
Getting the hang of it

Registered: 1999-07-22
Posts: 90
Loc: Villawood, NSW, Australia
I'm not too sure about how flexible your senkets.exe is... but how about:
quote:

SENDKEYS (\\server\software\wb\setup.exe {TAB} {ENTER})


to send the line to exectute and the keys you want after... ?

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd

Top
#48229 - 1999-09-29 09:10 AM Re: SHELL AND SENDKEYS
Anonymous
Unregistered


Thanks for the sugguestion but, the Executable and the TAB and ENTER function run at the same time... I need it to load the executable to load then pause 5 seconds, then send the TAB and ENTER Keys.

Any suggestions.

Basically I need to start an install and echo the keys to go through the install so the user doesn't have to do anything...

Top
#48230 - 1999-09-29 09:16 AM Re: SHELL AND SENDKEYS
Anonymous
Unregistered


Maybe you can your setup.exe file like this :

SETUP.EXE -S -HSETUP.ISS

This executes your setup file without user intervention. The SETUP.ISS is mostly included with your setup program!

Andy.

Top
#48231 - 1999-09-29 09:32 AM Re: SHELL AND SENDKEYS
Anonymous
Unregistered


unfortuantly SETUP -S doesn't run. This program does not support QUITE installs...
Top
#48232 - 1999-09-29 03:26 PM Re: SHELL AND SENDKEYS
Anonymous
Unregistered


I too have tried this out (I copied an example in the Kixtart manual...) and indeed it just sits there. Well, something occurred to me a bit later.. the shell command is supposed to wait for execution to complete before returning control to the script. I haven't tried it yet, but try opening your program using the "run" command which does not wait... then maybe sleep it a couple seconds to give the app some time to load then try the sendkeys.


Top
#48233 - 1999-09-30 08:58 AM Re: SHELL AND SENDKEYS
Anonymous
Unregistered


I have to agree with Svendre, using the shell command causes the script to wait until the other command is done. You MAY also need to use the 'setfocus' function.

If for some reason you do need to use the shell command, try something like this.
shell '%comspec% /c start <PROGRAM>'

By using start, you cause the program to execute and return to the script. BTW, this also works if you want to launch a web page from a script.
shell '%comspec% /c start http://server.com/webpage.html'

This will launch a web page using the users default browser.

mpearce@nbase-xyplex.com

Top
#48234 - 1999-10-04 06:51 AM Re: SHELL AND SENDKEYS
Anonymous
Unregistered


When using the SHELL command the script execution is stopped until the program exits.
If you want to execute a program and continue the script try using RUN.

Hope this helps

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.058 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org