Page 1 of 1

How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 01:50
by Hedich
Hello, i just patched all the icons on the toolbar and when i restarted all my patches where gone, how can i save them so they stay when i exit the program?

I was using this format for one icon at a time,

Code: Select all

patchimage "backtab", "C:\blabla\blabla\image.png";
also is there a way to batch patch them so i dont have to run 1 script at a time?

and while i am here i cant get

Code: Select all

HideMainMenuToggleByAlt=0
to work, was super happy when i found this setting as i use it for many other programs i work with but it wont work :(

Re: How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 02:23
by nas8e9
Hedich wrote: 20 Jan 2020 01:50 Hello, i just patched all the icons on the toolbar and when i restarted all my patches where gone, how can i save them so they stay when i exit the program?
According to the help file, the effect of patchimage is limited to the current session. You'd have to create a script that runs on every startup of XYplorer.
and while i am here i cant get

Code: Select all

HideMainMenuToggleByAlt=0
to work, was super happy when i found this setting as i use it for many other programs i work with but it wont work :(
Are you sure you tweaked correctly?

I find that with the tweak enabled, on startup the menu is shown but disappears when once pressing Alt?

Re: How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 02:29
by Hedich
nas8e9 wrote: 20 Jan 2020 02:23 According to the help file, the effect of patchimage is limited to the current session. You'd have to create a script that runs on every startup of XYplorer.
and while i am here i cant get

Code: Select all

HideMainMenuToggleByAlt=0
to work, was super happy when i found this setting as i use it for many other programs i work with but it wont work :(
Are you sure you tweaked correctly?

I find that with the tweak enabled, on startup the menu is shown but disappears when once pressing Alt?
Seems a bit counter productive to have to run it every time but ok, how do i set that up?

I got Alt to work, i made a backup of my save when i patched the toolbar and somehow the program continued to use the backup insted of going back to the orginal save

Re: How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 02:36
by nas8e9
Hedich wrote: 20 Jan 2020 02:29 Seems a bit counter productive to have to run it every time but ok, how do i set that up?
The help file lists the command line options XYplorer supports, including the /script switch. You'd have to put the patchimage commands in a XYplorer script file and then, using the /script switch, load that script file on XYplorer's startup, by modifying the shortcut to XYplorer.exe.

Re: How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 02:48
by Hedich
nas8e9 wrote: 20 Jan 2020 02:36
Hedich wrote: 20 Jan 2020 02:29 Seems a bit counter productive to have to run it every time but ok, how do i set that up?
The help file lists the command line options XYplorer supports, including the /script switch. You'd have to put the patchimage commands in a XYplorer script file and then, using the /script switch, load that script file on XYplorer's startup, by modifying the shortcut to XYplorer.exe.
Found the part in help about the startup, i tried to make a script of the patchimage commands but i dont know how to format it,
if i have say 4 icons i want to replace running the command

Code: Select all

patchimage "backtab", "C:\blabla\blabla\image.png";
how would i format it in the .xys file?

Re: How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 09:21
by highend
There is no need to run a script, just put your patched images into e.g. the folder "PatchedIcons" in your XYplorer data folder
and use a tweak so that XY knows where to find them. The folder name is relative to <xydata> so the folder name itself would suffice.
; Tweak: patch internal images with files in this path
PatchImagesPath=PatchedIcons
https://www.xyplorer.com/faq-topic.php?id=tweak

Re: How can i save my patched toolbar icons/images?

Posted: 20 Jan 2020 14:10
by Hedich
highend wrote: 20 Jan 2020 09:21 There is no need to run a script, just put your patched images into e.g. the folder "PatchedIcons" in your XYplorer data folder
and use a tweak so that XY knows where to find them. The folder name is relative to <xydata> so the folder name itself would suffice.
; Tweak: patch internal images with files in this path
PatchImagesPath=PatchedIcons
https://www.xyplorer.com/faq-topic.php?id=tweak
This worked thank you so much! and thank you nas8e9 for showing me that i can run scripts on startup that will come in handy in the future :biggrin: