//flex table opened by JP

Click to See Complete Forum and Search --> : Batch close


Sinister34
11-19-2001, 03:22 PM
I made a batch file to run a dos window program in win98.It programs a chip for me but at the end the window has a menu and I have to manually hit
" Q " twice for it to close.Is there anyway i can
implement the hiting Q twice.Here's what i have so far.A sub menu comes up and i get it to hit "3"
then a another sub menu comes up and I get it to hit "U" then it starts to program the chip and takes about 2 minutes ,then when it done a sub menu comes up and you have to hit "Q" twice but i don't know how to do that after chip is programed.
thanks


cd \
cd avr
fakey wait 1 "3" "u"
avr

qball
11-19-2001, 08:16 PM
do you want to close DOS box, or program that makes choc chips?, or both?

[hack]
fakey wait 1 "3" "u" "q" "q"
[hack]

what's?

avr

Sinister34
11-19-2001, 08:31 PM
avr is the program .After the chip is programmed it goes to a sub menu that it tells you to hit Q to quit,thats what i want it to do?

Sinister34
11-19-2001, 08:51 PM
Qball that doesn't work putting the q q after. There is about a 2 minute delay while the chip is being programmed before the last menu comes up.And that is when you have to hit the q twice?

qball
11-20-2001, 06:49 PM
got it, I think.

But I don't think a batch file will do what you need, as the avr program needs to be terminated with keyboard input.

You can try:

avr < qq.txt

where qq.txt is a text file containing two 'q's and returns, but I doubt that will work.

Who wrote AVR, what was it written in? I would look at modifying that program.

Sinister34
11-20-2001, 07:35 PM
Thats right Qball but i'm using fakey to do the keyboard commands.The problem is how do i get it to go back to the batch after the programming is done?Becuase i could use the fakey to hit the Q twicw if i could do that

qball
11-21-2001, 12:38 AM
got it, I think.


No I don't. what is fakey????