User-Defined Functions

Features wanted...
Post Reply
Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

User-Defined Functions

Post by Garonne »

Hey Don,

I do understand, that this might not really be something easy to add, but, can you imagine adding user functions that are callable similar to your <get> and other requests?

Something like:

Code: Select all

<user [id] [param1] [param2] [...]>
usable anywhere variables are accepted, definable as script?

This would (of course) close my other request about XYVariable for Elevated/Admin Rights of XYplorer, since I could totally do that on my own writing a small conversion script.

This would most likely solve a bunch of similar requests right from the start, so I do think it might be interesting for you.

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

Re: User-Defined Functions

Post by eil »

Help file > User-Defined Functions.(+probably Permanent Variables)
Win 7 SP1 x64 100% 1366x768|1900x1080

Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: User-Defined Functions

Post by Garonne »

eil wrote: 22 Mar 2025 21:09 Help file > User-Defined Functions.(+probably Permanent Variables)
I'm sorry, I can't find "user-defined functions", when I'm searching the help file.

Not in "Content", not in "Index", not by "Searching".

The closest thing I get is User defined Commands or User Defined Buttons. But that's not what I'm searching for.

And permanent variables aren't probably helping, either.

I need a function-call in a location where I can use variables, but have no access to scripting. Pre-calculating the answer and storing it in a permanent variable (to be accessed when I need it) might help me now in this case, but might not tomorrow.

klownboy
Posts: 4424
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: User-Defined Functions

Post by klownboy »

You may find it easier at times to use the XYplorerHelp pdf file especially when trying to find a topic. You can download the latest from https://www.xyplorer.com/support.php (scroll down to Resources). You'll find User-Definded Functions at page 569.

Also, take a look at highend's Show Help Topics script here viewtopic.php?t=9248

phred
Posts: 592
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Win10 at 100% from Boston USA

Re: User-Defined Functions

Post by phred »

klownboy wrote: 23 Mar 2025 11:24 You can download the latest from https://www.xyplorer.com/support.php
Since Don is one of the few developers who keeps the User Manual updated with just about every new release, I found it better to bookmark the link to the manual and when needed simply click the bookmark. Then you'll be (temporarily) downloading and searching the latest manual.

Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: User-Defined Functions

Post by Garonne »

phred wrote: 23 Mar 2025 13:43
klownboy wrote: 23 Mar 2025 11:24 You can download the latest from https://www.xyplorer.com/support.php
Since Don is one of the few developers who keeps the User Manual updated with just about every new release, I found it better to bookmark the link to the manual and when needed simply click the bookmark. Then you'll be (temporarily) downloading and searching the latest manual.
Well, ok, but still, that's actually not what I'm searching for. I need to have a custom function in a location, where I'm not able to access scripting. Only variable calls are available. (i.e. Configuration -> Templates -> Title Bar). I can't access any form of script code at that location.

I'm very well capable of writing a script to do a regex replacement, but it doesn't work in Config Templates.

admin
Site Admin
Posts: 65389
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: User-Defined Functions

Post by admin »

Garonne wrote: 23 Mar 2025 11:06
eil wrote: 22 Mar 2025 21:09 Help file > User-Defined Functions.(+probably Permanent Variables)
I'm sorry, I can't find "user-defined functions", when I'm searching the help file.
It's a sub-entry under Scripting. The stupid Help software won't find it unless you know this. :maf:

admin
Site Admin
Posts: 65389
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: User-Defined Functions

Post by admin »

Garonne wrote: 22 Mar 2025 08:55 I do understand, that this might not really be something easy to add, but, can you imagine adding user functions that are callable similar to your <get> and other requests?
Well, certainly not now, and perhaps never. It would add a level of complication that very few users would ever benefit from.

Garonne
Posts: 195
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: User-Defined Functions

Post by Garonne »

admin wrote: 07 Apr 2025 09:59
Garonne wrote: 22 Mar 2025 08:55 I do understand, that this might not really be something easy to add, but, can you imagine adding user functions that are callable similar to your <get> and other requests?
Well, certainly not now, and perhaps never. It would add a level of complication that very few users would ever benefit from.
Well, definitely didn't expect "now", knowing you're deep in coding trying to get XY running in twinBasic... Well, too bad about that "probably never"... But the current output (though not optimal) works for now anyways.

admin
Site Admin
Posts: 65389
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: User-Defined Functions

Post by admin »

"perhaps never", not "probably never" :)

Post Reply