|
Post by George on Jul 10, 2019 11:41:20 GMT -5
mueh: I spotted a small error in HALT (corrected), but the macro should be testing RC values itself and ensuring the message 'gets out' e.g. ' Try.macro SPF_TRACE(on) if FMSet_Cmd(333, "L") > 0 then Halt(Get_RC, Get_Msg$) end if Halt(0)
External messages are only set by HALT or Set_Msg. Also SPF_FMLCmd ? No such function. I'll correct the Doc. too. George
|
|
|
Post by George on Jul 10, 2019 11:57:48 GMT -5
mueh: Typing problem: Is this just plain typing into the FM input fields? Not sure what you mean by "some Macro Line cmd's in FM FilePath "
George
|
|
|
Post by mueh on Jul 10, 2019 14:10:00 GMT -5
George: To reproduce loop issue QQ line cmd which results in invalid cmd msg since a misstyped Macro Name . QQ remains as line cmd . Hit now 2 times LEFT Key and overtype QQ with BLANK and you get the Loop . Hiting Escape instead of BLANK gives no Problem . Here a screen shot .
|
|
|
Post by mueh on Jul 11, 2019 0:57:46 GMT -5
Robert: I understand that QQ is a block command if Q would be a valid Line cmd . I choose QQ in this test because it's an invalid line cmd . You can recreate Problem also with Q12 Line cmd . Hit LEFT 3 times and BLANK 3 times and you get same Problem . It's interesting that after you hit BLANK 2 times the last char (2) is executed as LINE Cmd followed by LOOP on 3'rd enter of BLANK . Excuting Escape is a CRCMV . By the way i use FR (From) and TO macro ( which are identical ) to issue cmd SYN FR TO Path Name if in FM Path cmd COMP FR TO if file or COMP FR file with original File if it is Backup File . if you enter FT instead of FR which is invalid line cmd go left and DEL F the Touch command is executed immediatly . Don't like this either since it destroys Time stamp . All this occures in 11.0.19187 only . Will wait for George's comment . Thanks George for this Wonderful feature . Here the MI macro to be cloned as FR/TO if somebody needs it . MI.macro (5.63 KB) Here a Picture after FR entered at line 6 before to is executed on line 7 .
|
|
|
Post by George on Jul 11, 2019 9:59:00 GMT -5
MUEH: Robert:
Found and fixed. It was triggered by the change made to left align FM line commands in the field the same way Edit line commands are aligned.
At first I couldn't trigger the problem, but then discovered it didn't happen in Insert mode (my normal mode) but only in Overtype mode.
Getting time to roll out all these fixes.
MUEH: You ARE the most prolific macro writer!
George
|
|
|
Post by mueh on Jul 12, 2019 1:51:51 GMT -5
George! Thanks for new modification lvl 19192 . One Problem did get worse . Try following macro ' mt1.macro SET_Line(0,"George") SET_Msg(4,"Georgemsg") In FM it Shows now Nothing (blank) in cmd line . In edit it Shows now the macro Name instead of "George" . This worked in 19187 . I'm shure you can fix it . Thanks again for new feature .
|
|
|
Post by mueh on Jul 12, 2019 2:47:44 GMT -5
George ! May i ask for another Suggestion . LMB in File Manager always result in Line select even if Shift/Ctrl/Alt+LMB is mapped f.e to [V](Enter) . Left Mouse Button is more convinient to press and i run out of cmd's assigned to RMB . MMB is not so convinient to press ( I even didn't know that it exists on the Mouse ) . V could be used in Edit to reset U line Status or select File for VIEW in FM . I thinhk i saw the Code in Source that all LMB Action in FM result in Line Select but can't find it now . Maybe _DialogStuff . Would it be possible to allow LMB+Fuction key to work in FM as in Edit . This would allow to execute my FR and TO macros with Left Mouse Button with Shift and Ctrl in FM . Thanks
|
|
|
Post by George on Jul 12, 2019 11:51:40 GMT -5
MUEH: I think we're going in circles here with what you're doing. Your macro shows the macro name itself because you're ending with a non-zero RC, so the command processor doesn't clear the command line (it failed - maybe you want to re-enter it). And because it fails, the stacked up "George" command gets flushed.
If you set both RC to 0, it gets closer to what you want, but you end up with the following: +Multiple messages (including errors) were triggered, press F1 (Help) to see full list
and F1 gets you the separate message box showing:
So everything was done OK, but this isn't what you want, I'm sure.
I know you're attempting a lot of tricky things here, but I'm becoming reluctant to fiddle with this any more, we're poking and prodding at a very intricate area.
George
|
|
|
Post by George on Jul 12, 2019 12:16:06 GMT -5
MUEH: Re: LMB in the FM line command area. This is trickier than I thought, I will try an experiment, I'm just hoping it doesn't open a can of worms. I'll let you know.
George
|
|
|
Post by mueh on Jul 12, 2019 12:23:52 GMT -5
George: After macro is executed George should be in Command line without being executed Georgemsg in msg area . Since the Set_Line(0, set's the Command Line to Geprge the Set_Msg(4, showed Command line . Up to 10.2.19129 it worked that way in both FM and Edit . I you have the old Version execute above macro and you will see how it worked . This is needed to step with a Macro through a command file like RETRIEVE cmd does it . Thanks
|
|
|
Post by George on Jul 12, 2019 12:36:53 GMT -5
mueh: As I indicated previously, the old way of just jamming in the text to the command line won't work, what you're seeing is th side effect from that. Looking back, I never should have let you talk me into allowing Set_Line(0,...) to indicate the command line.
We have SPF_CMD to support issuing commands, what you have done is experiment and take advantage of the way things just happen to have worked.
If you really want to exit the macro and leave something on the command line, use the SPF_Post_DO function. I'll no longer spend time tracing execution through the macro and command processors trying to figure out some way to allow you to continue to keep doing it your way.
Example: the following does just what you want in both FM and Edit:
' Try.macro
SET_Msg(0,"Georgemsg")
SPF_Post_Do("(Home)[George]")
George
|
|
|
Post by George on Jul 12, 2019 15:00:48 GMT -5
MUEH: It seems allowing LMB for the FM Line Cmd area can be done. Next Release.
George
|
|