internal functions to buttons

Discuss and share scripts and script files...
Post Reply
eil
Posts: 1866
Joined: 13 Jan 2011 19:44

internal functions to buttons

Post by eil »

it may be i searched bad and didn't get the help file instructions, but i didn't managed to understand how to make an internal function to a button. for example i'd like to make Restore Last Closed Tab as a button. can anyone post a syntax for such kind of script or direct me to right place in help file?
Win 7 SP1 x64 100% 1366x768|1900x1080

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: internal functions to buttons

Post by zer0 »

Use the following syntax of the command ID that does what you need:

Code: Select all

#343;
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: internal functions to buttons

Post by Stefan »

eil wrote:how to make an internal function to a button.
Hi, maybe this additional info will aid you too? >>> http://www.xyplorer.com/xyfc/viewtopic. ... 756#p54756

eil
Posts: 1866
Joined: 13 Jan 2011 19:44

Re: internal functions to buttons

Post by eil »

thanks for answers to both of you)
Stefan, good link, thanks ones more.
Win 7 SP1 x64 100% 1366x768|1900x1080

eil
Posts: 1866
Joined: 13 Jan 2011 19:44

Re: internal functions to buttons

Post by eil »

still have problems with 2 things(maybe someone can help this time too :) ):
1. how to put one of internal icons for a button? it's really boring to search for some icon when you just want make a button, but when they are the same it frustrates. i already read about "iconname" but that works not right some time, or i'm just gessing the name of icon wrong= where to see the names? yet, what about 2_words icon names?
2. how to make 2 functions to be made one after another? for example to make a certain view and sorting with one button.
Win 7 SP1 x64 100% 1366x768|1900x1080

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: internal functions to buttons

Post by Stefan »

eil wrote:still have problems with 2 things(maybe someone can help this time too :) ):
1. how to put one of internal icons for a button? it's really boring to search for some icon when you just want make a button, but when they are the same it frustrates. i already read about "iconname" but that works not right some time, or i'm just gessing the name of icon wrong= where to see the names? yet, what about 2_words icon names?
I have updated the post with the little >how to about CTB ("Custom Toolbar Buttons"):<
Just scroll down till your question.
2. how to make 2 functions to be made one after another? for example to make a certain view and sorting with one button.
Just follow my >link< i gave you above.
You just separate the command by an semicolon like f.ex.
#306; sortby "Modified", a;

(#306 is "View > Thumbnails #1")



HTH? :D

eil
Posts: 1866
Joined: 13 Jan 2011 19:44

Re: internal functions to buttons

Post by eil »

xyplorer.exe /2 didn't help(even as stupid tried "xyplorer.exe /2" exactly with ""). button icon just dissapears.
that way of semi-command i did use, but i was interested if 2 internal IDs can be used?(like #306 and #325)
Win 7 SP1 x64 100% 1366x768|1900x1080

Post Reply