![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 4573 Date : 2003-05-12 Author : meirman@e... Subject : Re: DOS Automatic DOS Keystroke tool Size(KB) : 5
At 11:47 PM 5/11/03 -0000, yodaslo wrote: >Hello, > Meir wrote- >>You know the keystrokes >>in advance? Why not just >put them in a .bat file? > >Well, I know the keystrokes, >since the DOS program works on >menus, but I don't know enough DOS >to do so. > >Simply >1- open the program ps.bat >2- type the numeric password- 140 & hit enter >3- type my user name- rp & hit enter >4- type the reports menu- 6 & hit enter >5- hit the down arrow twice & hit enter >6- type in YESTERDAYS numeric date & hit enter >7- type in the letter D and hit enter >8- type in the file name to print to- trans.txt & hit enter >9- when report FINISHES, hit escape >10- hit escape again Oh yeah, now I feel stupid. If it were only one entry, it would be easier (including the part where you type and press enter), but it keeps replying, and expecting more. I don't know how to handle that. WRT autoit, once you can get the current date into the bat file, you can write a bare knuckles portion of it to back up a day. You know, one with separate arithmetic for the first day of each month. If this is for business, I don't recall if 4dos charges more for a license than for personal, but it still might be worth it. 4dos will get you the date and make it easier or at least a little easier to get yesterday's date. Then you can call Autoit. Without autoit or something, I don't know how to do this in 4dos either. I only know how to get the date, and yesterday's date. For product pricing the address is iirc www.jpsoft.com and the newsgroup is comp.os.msdos.4dos . They give pretty detailed answers for some of the questions, and this might intrigue them. Either it can't do it alone, or they can tell you more or less how it can. But first I would ask the whole question above at alt.msdos and hope that William Allen or someone can tell you how to do it. You may have to read the .bat file course, maybe an hour if you know a little already, like how to use parameters in a bat file, and only look at what applies to your problem. More time if you don't know much, but it should have other benefits over the years. If they can't answer the whole question, maybe they can answer how to get yesterday's date using only MSDOS. Did you read either the url or the thing I gave in groups.google for getting todays date??? If you click on Whole Thread, you can read that whole thread in google. You really needn't ask them what I asked them only a month ago. Every answer William has given me (2 or 3) plus all the examples on his webpage have been recursive or reentrant or whatever they call this stuff in the PC or DOS world. That is, the program is called (maybe without any parameters) and it runs for 5 or 10 lines than calls *itself* with parameters set up the way it wants. The second time through it runs a different part of the code. I'm not sure why he does it this way, but I assume the course will say. I would still assume for simple uses, one could skip the first part. Then there is the data manipulation like Gary has in his example. I have trouble following that, but I need to have a goal. Maybe after William Allen answers, you can bring the answer back here, if Kan does't object. We can mark the thread OT. Or you can just put Gary and me on a cc: list. (As I volunteer Gary.) I would like to learn this stuff, but I need a goal. >It's the same day after day, and I need the report by the next >morning. The report takes a while to finish, it has to be backed up >before printing (xxcopy), which is why automation is wanted > >I can open the DOS program from a bat, but get it to enter keystroke >into the program when it opens? That's new to me. > >Either way, I still have to pull yesterdays date out of the bat, >which is a big question, and would have to let it when the dos report >is done, or just enter a 30 minute pause, in order to escape out of >the program. > >I will look into your answer and suggestions further, and I thank you >for the time you took to reply. > >Rich > >--- In xxcopy@yahoogroups.com, meirman@e... wrote: >> At 03:28 AM 5/11/03 -0000, yodaslo wrote: >> >Hello, >> >I realize this only involes >> >xxcopy in my instance, but >> >having failed at locating a >> >program which enters keystrokes >> >into a dos window program >> >automatically, I thought I'd >> >ask the group. >> > >> >I am trying to automate a >> >task (print a report from DOS POS >> >Program) which takes too much time >> >to do by hand daily. I would like >> >to set it up to print the report >> >daily, so that xxcopy can back it >> >up nightly, yet keystokes have to >> >be entered to tell the program what >> >report details I want. I managed to >> >get the xxcopy part of it working once the >> > report completes, but I can't get the >> >report part. >> > >> >I've test a couple of programs designed to automate keystrokes in >> >programs that run in DOS or a DOS window, but all have been >extremely >> >difficult to implement due to a lack of a "record keystrokes" >> >capability for the DOS area. >> >> You've posted before, but I certainly can't remember what version >of DOS >> you are using. >> Meir meirman@e... Baltimore, MD, USA
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.