Re: [Ql-Users] macros

2007-11-22 Thread Dilwyn Jones
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

Re: [Ql-Users] macros

2007-11-22 Thread George Gwilt
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

Re: [Ql-Users] macros

2007-11-22 Thread Matrassyl
In a message dated 21/11/2007 15:25:24 GMT Standard Time, [EMAIL PROTECTED] writes: 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

Re: [Ql-Users] macros

2007-11-22 Thread Dilwyn Jones
Ah, this looks very promising - thanks. This helps with the problem of recognising identical consecutive keypresses via sv_arbuf. Noticing a keyboard buffer position change should help with this. Ideally, what I'd like to do is a little program which when you tell it to start recording, until

Re: [Ql-Users] macros

2007-11-22 Thread P Witte
Dilwyn Jones wrote: Ah, this looks very promising - thanks. I would welcome ideas for other simple facilities to include. It was a 1) Please let the macro file be human-readable rather than a binary dump. Easy to hand alter and debug! 2) Next version to include mouse-clicks too, eh ;-) I

Re: [Ql-Users] macros

2007-11-22 Thread Dilwyn Jones
Duncan, many thanks for that one - as long as you remove the PEEK_L from the sv_keyq= line to avoid a double PEEK_L it works well enough, though I can't make sense of the values in the queue itself - peek(bufpos2) or peek_w(bufpos2) returns almost random data, whereas if I use this routine to

Re: [Ql-Users] macros

2007-11-22 Thread Dilwyn Jones
I would welcome ideas for other simple facilities to include. It was a 1) Please let the macro file be human-readable rather than a binary dump. Easy to hand alter and debug! Should be easy enough - just have text equivalents to the keycodes, e.g. 232 represented by F1, 10 by ENTER etc and

Re: [Ql-Users] macros

2007-11-22 Thread Dilwyn Jones
PM Subject: Re: [Ql-Users] macros Dilwyn Jones wrote: I foresee it would need a facility to enter pauses where required, e.g. to give a menu time to appear in a slow program, e.g. a keypress like CTRL P (Pause) which is ignored by most programs to insert a 1 second pause into the macro file

Re: [Ql-Users] macros

2007-11-22 Thread Matrassyl
In a message dated 22/11/2007 23:41:28 GMT Standard Time, [EMAIL PROTECTED] writes: Any idea what values I SHOULD be finding in the queue? Or perhaps it's safer to do something like: Hi Dilwyn, sadly I wrote that so long ago (1999) that while I assume I knew what I was doing then I

[Ql-Users] macros

2007-11-21 Thread Dilwyn Jones
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

Re: [Ql-Users] macros

2007-11-21 Thread Malcolm Cadman
In message [EMAIL PROTECTED], Dilwyn Jones [EMAIL PROTECTED] writes Hi Dilwyn, I did something similar to what you aiming at some years ago now with recording the actions for controlling a robotic arm. I used an array - DIM statement - to store the keys being pressed, using different letters

Re: [Ql-Users] macros

2007-11-21 Thread Norman Dunbar
Hi Dilwyn, 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