Search found 29 matches

by atisoro
12 Feb 2025 12:10
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

This trick works great.
Thank you.
by atisoro
12 Feb 2025 11:19
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

again, a problem in which I ask for your help.
after the code successfully writes to the xyplorer.ini file,
Image
whatever I try, after Exit(saving) or savesettings or save configuration, the changes disappear.
Image
can anything be done?
by atisoro
07 Feb 2025 07:55
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

this is sophisticated far beyond the knowledge of most users (at least mine).
elegant, simple and useful.
by atisoro
06 Feb 2025 11:21
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

indeed
your code works flawlessly
Kudos

Code: Select all

    $oldToolbar = toolbar();
    if (!regexmatches($oldToolbar, "\bctb1\b")) {
        toolbar($oldToolbar . ",ctb1");
    }
by atisoro
06 Feb 2025 11:00
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

actually, I initially tested this code to adds to the first position and I mistakenly assumed that it works correctly (surprisingly, it doesn't) working code //for first position cbt1 $oldtoolbar = toolbar(); toolbar("ctb1,-".$oldtoolbar); my proposals are only at the beginner level, (a fe...
by atisoro
06 Feb 2025 09:57
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

smoothly add a custom button at the end of active toolbar

Code: Select all

$oldtoolbar = toolbar();
 toolbar($oldtoolbar."-,ctb1,".);
by atisoro
05 Feb 2025 21:09
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

it doesn't matter. I got hold of the solution. (with regexreplace) It works, but it does not take into account the existence of any previously set buttons. $newCB = <<<'EOD' [CustomButtons] Version=1 Count=1 1=""loader|:ladybug|1|0" load "<xyscripts>.\myscript.xys"; " [...
by atisoro
04 Feb 2025 20:34
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

it's too hard for me.
I stop here
by atisoro
04 Feb 2025 10:39
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

yes, you are absolutely right, it works, but can I do this by code? [CustomButtons] Version=1 Count=1 1=""new script launcher|:up|0|0" $allScripts = listfolder(<xyscripts>, "*.xys"); ¶ $count_xys = gettoken($allScripts, "count", ",");¶ ¶ if ($count_xys) {...
by atisoro
04 Feb 2025 10:04
Forum: Tips & Tricks, Questions & Answers
Topic: assign a Keyboard Shortcut to a User Button
Replies: 29
Views: 15033

Re: assign a Keyboard Shortcut to a User Button

Is it possible to add a button in the toolbar by script?
something like

Code: Select all

userbutton 999, 132, "Test", "::e 'Left Click!'", "::e 'Right Click!';";
I am trying without any result to get this :blackstorm:

or another functional code
by atisoro
02 Feb 2025 15:59
Forum: Tips & Tricks, Questions & Answers
Topic: change extension without previously selected files
Replies: 2
Views: 825

Re: change extension without previously selected files

highend: brilliant, like always.
I couldn't finish them.
:beer:
by atisoro
02 Feb 2025 15:16
Forum: Tips & Tricks, Questions & Answers
Topic: change extension without previously selected files
Replies: 2
Views: 825

change extension without previously selected files

Is it possible to change the extension for all .txt files in a folder without selecting them manually?

in folder:
...\Test\fileA.txt
...\Test\file new.txt
...\Test\another file.txt

by code in
...\Test\fileA.rtf
...\Test\file new.rtf
...\Test\another file.rtf

?
by atisoro
31 Jan 2025 09:08
Forum: Script Exchange
Topic: Automatic retrieval of tags from the filename
Replies: 22
Views: 9320

Re: Automatic retrieval of tags from the filename

I corrected the errors after posting. mistakes happen... $allScripts = listfolder(<xyscripts>, "*.xys"); end (!<get SelectedItemsPathNames>), "No item(s) selected, aborted!"; if ($allScripts) { $allScripts = replace(report("{basename} - ({comment})|",$allScripts),"...