|41-MCODE: Auto XEQ+ALPHA possible?|
Message #1 Posted by 聲gel Martin on 27 May 2013, 11:42 a.m.
Here's a tricky one for the MCODE gurus - I've given up after a several futile attempts to crack this one.
It's about setting a prompting function to take ALPHA input in the prompt, like COPY does. So far no sweat, it's just a matter of properly setting the op1 and op2 digits in the first two bytes of the function name; typically to "1" and "2" respectively.
But the twist consists of eliminating the second pressing of the ALPHA key , so it's then possible to start typing the characters right on:
XEQ, ALPHA, "COPY", ALPHA, ALPHA, "FNAME", etc...
XEQ, ALPHA, "COPY", ALPHA, "FNAME"
i.e. the first thing the function should do is activate ALPHA, then wait in a light sleep condition with the partial key sequence on.
I tried setting User flag 48 right before calling the function - that activates ALPHA at the prompt, yet no key entry is allowed util ALPHA is pressed again.
Any ideas how to tackle this one tapping into the [PARSE] OS routines? Really didn;t want to re-write the whole prompt handing using [NEXTxx] routines, that would be a lot of code for such feat.