[WDX] Autorun Plugin: Run commands/set envvars on TC start

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start

Post by *Fla$her »

funkymonk wrote: 2024-12-20, 18:41 UTCApart from the last two items, I don't have Autorun scripts that make heavy use of the other features. Thus, I only did some artificial testing.
So far, everything looks good and I could not find any problem.
Thanks for the tests. It would be strange if you had them, given that there is no alternative. ;)
Apart from debugging things, your list at least lacks this:
+ Runtime: added identifiers 11001-11012 to RequestInfo
+ Process: ProcessExecGetOutput can receive output in a given encoding
+ Process: a number of functions can accept not only the process name, but also the PID
+ the ShellExec function returns the PID of the running process to EXTENDED
+ Runtime: added getting rectangle boundaries in the GetCurrentItem function
+ experimental: method for calculating And/Or using a "short circuit"
I'm sure that the bottom point also applies to your scripts. It is possible that the first one will also allow you to fix the old codes somewhere. The ternary operator from your list will probably also simplify a number of entries instead of If/Else. For it and the rest, you can look at examples or ask me if you don't understand what it might be needed for in the future.
The new alpha section with examples is somewhat premature and raw. The examples were added in recent hours, so some of them had to be fixed almost immediately after publication (but this, with some new examples, will appear only in the next release).
funkymonk wrote: 2024-12-20, 18:41 UTCI will do some testing into that direction...
OK.
funkymonk wrote: 2024-12-20, 18:41 UTCIn any case, the new features are great and very helpful! Thank you!
You're welcome! I suppose you don't mean me personally, but our creative tandem. ;)

And it seems you missed my message about fixing the profile.
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start

Post by *Fla$her »

Autorun 2.2.16 beta
Changelog
- fixed crash in SizeFormat on incorrectly formed units string
+ Tweaks: switches /S, /D, /DM in SetMessageAction
+ Runtime: WinAlign function
- AUTORUN_TCLANG did not work correctly on language files with a non-standard name
- fixed incorrect unrolling of \r \n in Set, SetEnv
* internal changes in working with built-in functions
* optimization of work with parameter conversion and checking of their count
+ Runtime: GetCurrentItem index 5 (highlighted item state)
- the Text property of the List object returned an extra line break at the end of the line
- FileGetTime did not return the date for directories
+ functions StrRepeat, StrReverse, Opt
+ SYSERROR, SYSERRORTEXT macro, auPtrSize, auX64 variable
+ Call function returns error and extended of called function
- commenting of the first line did not work when using additional fields
* increased the first line length limit to 8192 bytes when using additional fields
- check of correctness of variable names in user function definitions did not work
+ new error message "function must be a user defined function"
* internal changes in handling user defined functions to increase the string length limit
+ Free function can release multiple objects in one call
+ Buffer, Callback objects
+ DllCall function
+ Tweaks: LAST_HINT_WINDOW macro
+ Tweaks: ShowHint delay for automatic closing, flags
+ AUTORUN_PATH variable is available in Pragma Include
* internal modifications to string functions to increase the string length limit
+ IsObject function
- when accessing a variable containing an object, its actual existence was not checked
+ Sort, Reverse, Split, Join and IndexOf methods were added to the List object
- fixed incorrect processing of quotes in parameters of object methods in plugins
* Runtime: GetSelectedItems function excludes ".." from the output by default, flag 4 added
+ IniGetSectionLocation, IniReadSectionNames, IniReadSection, IniWriteSection, IniRenameSection functions
- Tweaks: switches related to the callback function (CSMA, SHA, SMA) were not processed
- fixed incorrect line breaks in GetState and StrFormat
- fixed implicit interpretation of numeric values in the While..Wen loop conditiond
Important:
  • On the right side of the command notation, you can no longer specify a comment due to strict checking of the number of function parameters. This was not recommended in the help before, but now this restriction is strictly built into the syntax.
  • Among other useful features, powerful weapons (tools) of potential development have been added: DllCall, Buffer and Callback.
  • Due to getting rid of the previous costs of a legacy call, the functional notation now works somewhat faster than the command one.
Since these events affected the reading of other functions, the errors that occurred were eliminated, but new ones were not excluded. In case of complaints, hotfixes will be issued.

The sample library has also been updated with fixes and a light batch of useful solutions.
Overquoting is evil! 👎
Post Reply