A Windows 98 & ME forum. Win98banter

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.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Keyboard Redirection in a DOS batch file?



 
 
Thread Tools Display Modes
  #1  
Old May 7th 10, 04:40 AM posted to microsoft.public.win98.gen_discussion
Bill in Co.
External Usenet User
 
Posts: 1,335
Default 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  
Old May 7th 10, 09:54 AM posted to microsoft.public.win98.gen_discussion
Franc Zabkar
External Usenet User
 
Posts: 1,702
Default 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  
Old May 7th 10, 09:54 AM posted to microsoft.public.win98.gen_discussion
Franc Zabkar
External Usenet User
 
Posts: 1,702
Default 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  
Old May 7th 10, 12:13 PM posted to microsoft.public.win98.gen_discussion
Bill Blanton
External Usenet User
 
Posts: 441
Default 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  
Old May 7th 10, 12:13 PM posted to microsoft.public.win98.gen_discussion
Bill Blanton
External Usenet User
 
Posts: 441
Default 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  
Old May 7th 10, 02:44 PM posted to microsoft.public.win98.gen_discussion
CB[_2_]
External Usenet User
 
Posts: 12
Default 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  
Old May 7th 10, 02:44 PM posted to microsoft.public.win98.gen_discussion
CB[_2_]
External Usenet User
 
Posts: 12
Default 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  
Old May 7th 10, 02:46 PM posted to microsoft.public.win98.gen_discussion
CB[_2_]
External Usenet User
 
Posts: 12
Default 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  
Old May 7th 10, 02:46 PM posted to microsoft.public.win98.gen_discussion
CB[_2_]
External Usenet User
 
Posts: 12
Default 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  
Old May 7th 10, 03:12 PM posted to microsoft.public.win98.gen_discussion
CB[_2_]
External Usenet User
 
Posts: 12
Default Keyboard Redirection in a DOS batch file? OOPS

Sorry about double post.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 01:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.