On 21 Nov 2007, at 15:24, Dilwyn Jones wrote:

> I'm looking to write a little utility to record keypresses as macros,
> if necessary assigning them to a hotkey or altkey for later use.
>
> Some processes mean repeated strings of keypresses, so it may be handy
> to record these keypresses and replay them later with an alt or hot
> key to avoid typing the same commands repeatedly.
>
> Anyone have any idea how best to go about achieving this?


I have a short Procedure called "wh" in my BOOT. This waits for a  
keypress. When the keypress occurs the program prints the value in  
sv_arbuf. The program then either waits for another keypress, or, if  
the key was ESC, exits from the loop. Repeated keypresses produce  
repeats of the value in sv_arbuf.

This procedure could easily be altered to set all the characters  
keyed in a string. You have to set an end character of course to stop  
the process.

George
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to