|
Post by mueh on Jul 23, 2024 7:40:33 GMT -5
Hi George ! Want to setuup a DIFF cmd in a macro . Since 24198 cmd is executed twice . No Problem in 24091 . here the statement in macro SPF_Post_Do("diff 2 3") After reply and ending the DIFF display it gets error msg "Operand: 2, exceeds the maximum allowed numeric literals" Have seen in other test scenario in cmd line 'diff 2 3 diff 2 3' and 2 popup's for reply from diff .
Could you also provide a macro function Get_TabNum to allow a macro to set up DIFF cmd in Windows ClipBoard session . Should work for all session types . Thanks
|
|
|
Post by George on Jul 23, 2024 9:55:34 GMT -5
MUEH: OK, I'm not clear what changed exactly, but it had to do with DO invoking a command which triggers an extra dialog to appear.
That seems to cause Windows to post additional messages to the message Queue. And since the top queue message (which was the dispatch of the DO processing) had not itself been completed (we're in the middle of doing it) it got dispatched a 2nd time and was running in parallel with the 1st dispatch (definitely not cool! SPFLite runs ONE main thread).
I had to re-jigger the DO queue handling a bit to prevent that. However, it appears that may end up being a restriction on DO. i.e. any command like DIFF that MAY create a popup dialog must be the last DO command.
Also Get_TabNum has been added.
George
|
|
|
Post by mueh on Jul 23, 2024 11:16:32 GMT -5
Hi George! Thanks for 24205 . Diff executed twice is fixed . Get_TabNum gets "Variabale not defined or misspelled Keyword" If just a typo tell me correct name . Thanks
|
|
|
Post by George on Jul 23, 2024 12:58:57 GMT -5
Hmmm, here's my test. ' Try.macro dim i as long dim H as string SPF_Trace(oFF) Halt(OK, Get_TabNum)
Works OK here. ![](//storage.proboards.com/3714814/thumbnailer/ohM0OfLvQgcvXAdsKccG.png)
|
|
|
Post by mueh on Jul 23, 2024 13:36:17 GMT -5
Hi George ! Downloaded again and same error . I think the Get_TabNum function didn't get inclueded in Download 24205 version . No Hurry . Will wait for next change and try then . Thanks
|
|
|
Post by George on Jul 23, 2024 14:59:35 GMT -5
MUEH: Yes, you're right. I just executed the version I uploaded, and it's missing.
?? I have some detective work to do to figure out how I did that.
It will probably be tomorrow now.
George
|
|
|
Post by mueh on Jul 26, 2024 8:50:54 GMT -5
Hi George ! Change to Post_do in 24205 introduced LOOP if there is comment in DO file . use following do file ; loop x .2 Thanks
|
|
|
Post by George on Jul 26, 2024 10:48:10 GMT -5
MUEH: Oops. Revised the loop structure, but missed converting the stuff that iterates for unwanted entries.
Corrected in 24208
George
|
|