|
Post by mueh on Jan 6, 2023 2:28:05 GMT -5
Hi George If you enter in FM Line cmd area a Macro (or with it's Parm) longer than cmd area the macro is executed sucessfully . Problem occures when you enter a new cmd on this FM Line . You can enter only one character which is not shown until you go left . You have to select that fm line again to reenter more character's . CRCMV in case you don't want to fix it : SPF_Post_Do("(Refresh)") in macro . Thanks
|
|
|
Post by George on Jan 6, 2023 12:07:18 GMT -5
MUEH: Tough one to track down since it's in the Line Command jungle. I think I fixed it by resetting the CmdOff (offset) for the line cmd back to zero.
George
|
|
|
Post by mueh on Jan 11, 2023 9:24:07 GMT -5
Thanks George: 23007 fixed above problem . CmdOff should be set to zero in METHOD FMkbCmdHome and FMkbLineNo before me.CsrCol = 1 ' go back to LCmd area In fact it positions Csr to CmdOff instead of Col 1 making it impossible to insert Cmd Data ( macro name ) in front of entered parm . I use following key RMB (SaveCursor)(CmdHome)(SetInsert)[MI ](RestoreInsert)(RestoreCursor)(Enter) which fails if more than 4 Characters Macro parms are entered before RMB is hit on FM Line. f.e 1MI 2345 is resulting FM Line cmd . Thanks
|
|
|
Post by George on Jan 11, 2023 11:23:56 GMT -5
MUEH: Added to each of them, seems OK.
George
|
|
|
Post by mueh on Jan 17, 2023 0:49:01 GMT -5
Hi George ! There is a small problem with FMkbCmdHome change ( Not with FMkbLineNo ) SPFLite V(2.7.23014) @ 2023-01-16 09:00 SPFLite has encountered an execution exception (C0000005) Last Interactions were: K=SAVECURSOR K=CMDHOME Module Back Trace: 02 MAINDKEYPROCESS 01 MAINCDOKEYSTRING 00 REALPBMAIN Problem occures only after Spflite start when (CmdHome) is done with Cursor never in FM Line Cmd Area ( f.e at Filename as shown in picture ) If you place the cursor before in any FM Line Cmd Area the error doesn't occure . To Reproduce after SPFlite start with Cursor at Home: hit Down 9 times and Key mapped to (CmdHome) CRCMV i use : define key as (LineNo)(CmdHome) . ( Disatvantage Beep if key used on Cmd line But i could live with it ) Don't know how the Code change in FMkbCmdHome looks but it might need slight change since (LineNo) doesn't have problem . Thanks for the modification .
|
|
|
Post by Stefan on Jan 17, 2023 4:18:15 GMT -5
mueh,
Would the (CondLineNo) primitive prevent the annoying beep while you await a resolution?
|
|
|
Post by mueh on Jan 17, 2023 6:55:11 GMT -5
Thanks Stefan Beep is the same because for FM CondLineNo executes FMkbLineNo . Since i use the RMB key to execute same macro for the 4 possibilities EDIT/FM Cmd/Linecmd i must use CmdHome .
|
|
|
Post by George on Jan 17, 2023 9:43:56 GMT -5
MUEH: The original bug was actually tricky to work on. When I finally got (LineNo) going, I made the similar change to (CmdHome). But my quick test worked fine.
Turns out the order of 2 lines made all the difference. So it's now corrected.
George
|
|
|
Post by mueh on Jan 17, 2023 15:26:38 GMT -5
George: Seems to be a tricky problem . After 23017 following key (SaveCursor)(CmdHome)(SetInsert)[MI ](RestoreInsert)(RestoreCursor) inserts MI if you have 12345 in FM line cmd area as 1I M2345 . (worked correct in 23014 as MI 12345) if 12345678 is in cmd area you get 1I 234M5678 Good news : If i repeat (CmdHome) it inserts it correct now and no crash . Thanks
|
|