If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
Does anyone know how to do this in a DOS batch file?
Normally when I run this windows online program and am finished and close it down, I have to then type "S" to stay connected online (otherwise, the default behavior is to disconnect from being online (I'm using dial-up). So instead, I'm creating a batch file to run (call up) that program, so that when I close the program, I want the batch file to send the "S" character to the keyboard buffer automatically, so I don't have to type it in each and every time. I know how to call up the program in the batch file - that's no problem. My problem is how to get an "S" to be placed in the keyboard buffer just as though I had typed it myself, before the batch file terminates. Does anybody remember how to do this? (I'm familiar with the "" redirect operator, but still don't know how to do it). Thanks! Bill |
#2
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
On Thu, 6 May 2010 21:40:02 -0600, "Bill in Co."
put finger to keyboard and composed: My problem is how to get an "S" to be placed in the keyboard buffer just as though I had typed it myself, before the batch file terminates. Do any of these utilities work for you? http://freesoft.freedos.pri.ee/FreeS...bufferstuffers - Franc Zabkar -- Please remove one 'i' from my address when replying by email. |
#3
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
On Thu, 6 May 2010 21:40:02 -0600, "Bill in Co."
put finger to keyboard and composed: My problem is how to get an "S" to be placed in the keyboard buffer just as though I had typed it myself, before the batch file terminates. Do any of these utilities work for you? http://freesoft.freedos.pri.ee/FreeS...bufferstuffers - Franc Zabkar -- Please remove one 'i' from my address when replying by email. |
#4
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
On 5/6/2010 23:40, Bill in Co. wrote:
Does anyone know how to do this in a DOS batch file? Normally when I run this windows online program and am finished and close it down, I have to then type "S" to stay connected online (otherwise, the default behavior is to disconnect from being online (I'm using dial-up). So instead, I'm creating a batch file to run (call up) that program, so that when I close the program, I want the batch file to send the "S" character to the keyboard buffer automatically, so I don't have to type it in each and every time. Not a exactly a batch, but you could use vbs script instead. (save send.vbs, etc) Set oShell = WScript.CreateObject("WScript.Shell") oShell.Run("notepad") WScript.Sleep(3000) 'wait (3 seconds (# milliseconds)) oShell.Sendkeys "S" WScript.Sleep(2000) oShell.Sendkeys"{ENTER}" |
#5
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
On 5/6/2010 23:40, Bill in Co. wrote: Does anyone know how to do this in a DOS batch file? Normally when I run this windows online program and am finished and close it down, I have to then type "S" to stay connected online (otherwise, the default behavior is to disconnect from being online (I'm using dial-up). So instead, I'm creating a batch file to run (call up) that program, so that when I close the program, I want the batch file to send the "S" character to the keyboard buffer automatically, so I don't have to type it in each and every time. Not a exactly a batch, but you could use vbs script instead. (save send.vbs, etc) Set oShell = WScript.CreateObject("WScript.Shell") oShell.Run("notepad") WScript.Sleep(3000) 'wait (3 seconds (# milliseconds)) oShell.Sendkeys "S" WScript.Sleep(2000) oShell.Sendkeys"{ENTER}" |
#6
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
I don't have a clue, but, I bet anyone of half a dozen people here do:
alt.msdos.batch |
#7
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
I don't have a clue, but, I bet anyone of half a dozen people here do:
alt.msdos.batch |
#8
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
I don't have a clue,but, I bet anyone of half a dozen folks here do:
alt.msdos.batch Good group which I enjoy just reading. |
#9
|
|||
|
|||
Keyboard Redirection in a DOS batch file?
I don't have a clue,but, I bet anyone of half a dozen folks here do:
alt.msdos.batch Good group which I enjoy just reading. |
#10
|
|||
|
|||
Keyboard Redirection in a DOS batch file? OOPS
Sorry about double post.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dos Batch File | Edward | General | 17 | November 29th 07 07:56 PM |
Batch file for IE 6 - 5.5 dll replacement (explorer hang issue with bulk move/delete file operations) | Ivan Bútora | General | 5 | December 16th 05 01:58 AM |
internet explorer....redirection | rickoh | General | 3 | August 11th 04 04:20 AM |
Batch file syntax | Rednelle | General | 4 | July 11th 04 11:30 AM |
Making Batch File | Farhan | General | 1 | June 28th 04 08:30 AM |