Record macro key dropping bug fix

From: Jeremy Cowgar <jeremy_cowgar.com>
Date: Thu, 06 Sep 2007 20:46:23 -0400
For me the record macro function was dropping the last keystroke all the 
time. Looking at the code I discovered why. I was using the menu option 
to hit record/stop recording. This is for a good reason, actually, which 
still needs addressed. But the default key for record macro is CTRL-F10, 
which on windows activates the menubar. Thus, Windows was not giving 
that key stroke to MP, and therefore it never works for me, I have to 
hit the menu option. Yes, I can reassign it, just have not got that far 
yet. Anyway, back to the solution for the last key being dropped. My fix 
is still applicable because many others will use the menu bar, even if 
the shortcut key works for them. So, here's my kludgy fix. Line 83 of 
mp_macro.mpsl was changed to read:

        if (mp.keycodes[mp.macro.keycodes[size(mp.macro.keycodes)]] eq 
'record_macro')
            pop(mp.macro.keycodes);

So, that checks to see if the last key hit was actually the key mapped 
to the record_macro function. If it was, it drops that key. If not, it 
drops nothing.

Jeremy



-- 
To unsubscribe, send mail to mp-unsubscribe_lists.triptico.com.
Received on Fri Sep 07 2007 - 02:46:32 CEST

This archive was generated by hypermail 2.2.0 : Thu Apr 10 2008 - 08:59:26 CEST