say wanted to make the F12 key to be '9' + enter + arrow-down how would I do that?
Main Topics
Browse All TopicsCan anyone recommend a shareware program that will allow to to assign a few key sequences to say a function key for speeding up certain input tasks? it must work in dos (in win xp) ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Lisa,
One simple way would be to find "recorder.exe" and "recorder.dll" from a copy of Windows 3.1 or Windows 3.11
This is the good-old-fashioned macro recorder from the "good 'ol days" of windows.
It will allow you to record and playback keyboard macros even in WinXP. Mouse support is a bit shaky, but keystrokes are no problem.
pb
Hi Steve, TLO,
The solution I posted works.
It's not the best solution since it requires some digging to find an old copy of Win3.1 and running the horrible macro recorder interface, but it does work.
I tested the exact scenario: "make the F12 key to be '9' + enter + arrow-down" using recorder.exe to record the keystrokes (9 <ENTER> <DOWN>) and then play them back into a WinXP command-prompt (both at command line and in "edit.exe") using the F12 key.
I'm sure there are other, newer, freeware keystroke macro recorders around as well which would work the same. The basic premise being that there is no native way for WinXP to do this and a macro recorder/playback utility would be needed.
pb
Business Accounts
Answer for Membership
by: SteveGTRPosted on 2004-12-01 at 06:50:47ID: 12716174
Use DOSKEY. Here is the help for DOSKEY (available with /? parm):
EXE /x /k c:\util\ntdos.bat
mac
o Executing FINDSTR, please wait...$Tfindstr /c:"Key: WN" hotdump.dat | findstr $* | more
Edits command lines, recalls Windows 2000 commands, and creates macros.
DOSKEY [/REINSTALL] [/LISTSIZE=size] [/MACROS[:ALL | :exename]]
[/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=exename] [/MACROFILE=filename]
[macroname=[text]]
/REINSTALL Installs a new copy of Doskey.
/LISTSIZE=size Sets size of command history buffer.
/MACROS Displays all Doskey macros.
/MACROS:ALL Displays all Doskey macros for all executables which have
Doskey macros.
/MACROS:exename Displays all Doskey macros for the given executable.
/HISTORY Displays all commands stored in memory.
/INSERT Specifies that new text you type is inserted in old text.
/OVERSTRIKE Specifies that new text overwrites old text.
/EXENAME=exename Specifies the executable.
/MACROFILE=filename Specifies a file of macros to install.
macroname Specifies a name for a macro you create.
text Specifies commands you want to record.
UP and DOWN ARROWS recall commands; ESC clears command line; F7 displays
command history; ALT+F7 clears command history; F8 searches command
history; F9 selects a command by number; ALT+F10 clears macro definitions.
The following are some special codes in Doskey macro definitions:
$T Command separator. Allows multiple commands in a macro.
$1-$9 Batch parameters. Equivalent to %1-%9 in batch programs.
$* Symbol replaced by everything following macro name on command line.
You can create a macrofile with a list of commands. I adjusted my Command prompt shortcut to call a batch file where I do stuff. One of the things I do is call DOSKEY with a macro file:
%SystemRoot%\SYSTEM32\CMD.
Inside ntdos.bat I have the following command:
doskey /macrofile=c:\util\doskey.
Here are some examples from my macro file:
winhot=r:$Tcd\hotline$Tech
s=c:$Tcd "C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC"
Good Luck,
Steve