found a workaround solution.
How to Implement True Title Case Formatting in XYplorer

**Locate XYplorer.ini**: Open XYplorer and navigate to **File | Save Settings** to ensure the necessary key exists in the XYplorer.ini file.

**Open Configuration File**: Go to **Tools | Open Configuration File...** to open the XYplorer.ini file in your default text editor.

**Edit the Key**: In the text editor, find the key you want to edit, such as `RenameTitleCaseExceptions=`. Make sure to edit its value rather than creating a new key.

**Example of Editing**: For instance, if the original line is `SettingsWarnReadonly=0`, change it to `SettingsWarnReadonly=1`.

**Save Changes**: After making the necessary edits, save the file in your text editor.

**Restart XYplorer**: In XYplorer, click **File | Restart without Saving** to apply the changes made to the ini file.

**Confirm Tweaks**: The changes should now take effect, allowing XYplorer to utilize the tweaked settings.
working script((Custom Events=>Clicking On Items Middle Click On File))=
Code: Select all
rename s, "-._[]()%,`*~> ", , , 8; rename r, "\s+ > ", , , 8; rename r, "\s+(\.[^.]+?$|$) > $1", , , 8; #139; #126; #113;
Step-by-Step Explanation

Remove Unwanted Characters:
Command: rename s, "-._[]()%,*~> ", , , 8;`
Explanation: This command removes specific unwanted characters from file names, including -, ., _, [, ], (, ), %, ,, `, *, and ~. The operation is limited to a maximum of 8 files at a time.

Replace Multiple Spaces:
Command: rename r, "\s+ > ", , , 8;
Explanation: This command replaces multiple consecutive spaces in file names with a single space. The regular expression \s+ matches one or more whitespace characters.

Handle Spaces Before File Extensions:
Command: rename r, "\s+(\.[^.]+?$|$) > $1", , , 8;
Explanation: This command ensures that there are no unnecessary spaces before file extensions or at the end of the file name. It matches spaces followed by a file extension or the end of the string.

Special Rename Operations:
Commands: #139; #126; #113;
Explanation: These commands refer to specific predefined renaming operations in XYplorer:
#139: Remove diacritics from file names.
#126: Change file names to Title Case (e.g., "AAA AA.AAA" to "Aaa Aa.aaa").
#113: Copy the base name(s) of the selected item(s) to the clipboard (Shift+F).

Additional Rename Operations:
Commands: #128, #129, #130, #136
Explanation: These commands perform various renaming tasks:
#128: Convert spaces in file names to underscores.
#130: Convert underscores in file names back to spaces.
#136: Rename files with a specific extension (e.g., *.aaa).