Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file question - keyboard shortcuts

Status
Not open for further replies.

SgtB

IS-IT--Management
Oct 3, 2002
447
US
Essentailly, during user input, I'd like to have the user be able to press ENTER to continue. As of right now you need to press F6 then ENTER to continue. I'd like to create a keyboard shortcut during the batch file to map the ENTER key as "F6+ENTER".
Is there a way to do this? I've looked into loading ANSI, but that I believe does not work in NT.

Could someone provide me the syntax for doing something like this?

Thanks!
[smile]
________________________________________
Check out
 
hi,

U can use kix32 for that perpose. By using kix32 u can user sendkeys e.g. "sendkeys ("^{ESC}")" this will open press windows key on your key board.another one is "sendkeys ("{ENTER}")" this will press enter.

for that u have to specy there things in a text file and write the command as "kix32 filename.txt" thix will exicute the keys which u have specified in macro.


here you will get all the info abt kix.


HTH Aslam
 
Cool, I've got kix already, but didn't think about that as an option really.
I'll look into that route, thanks!
[thumbsup2] ________________________________________
Check out
 
HI,

Please let me know also if that works fine for you.And another way is by using Vb scripts also.

You can create objects caaled as ("WScript.Shell")

e.g.
set WshShell = CreateObject("WScript.Shell")

WshShell.SendKeys "{Enter}"

this will press ENTER key for you.

using this you can fresss function keys also.
by this
WshShell.SendKeys "{f6}"
WshShell.SendKeys "{Enter}"

this for your requirement

HTH Aslam
 
Haven't had any exp with VB, so that might not help. This little batch file is just for user creation, and will only be used by myself, and another admin. I told him just to press F6 or not use it [smile].
I'm trying to teach myself perl right now, so that's going to be taking up most of my free time (no time for kix).
Thanks for the replies though!
________________________________________
Check out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top