Run user defined functions from address bar
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Run user defined functions from address bar
Sometimes it would be great to run user defined functions quickly from the address bar. Which is not possible now, because I cannot use include in AB. Would it be a way to achieve this? Maybe a central repository for those functions and they could be loaded silently on start?
-
MBaas
- Posts: 683
- Joined: 15 Feb 2016 21:08
Re: Run user defined functions from address bar
Yep, great idea - I think that would be useful 
Last edited by MBaas on 13 Jan 2023 09:50, edited 2 times in total.
-
eil
- Posts: 1864
- Joined: 13 Jan 2011 19:44
Re: Run user defined functions from address bar
Not a full solution, but if your UDF is launching a script from Scripts folder, you can use Alias to run same script, and aliases can work in AB.
Last edited by eil on 14 Jan 2023 01:32, edited 1 time in total.
Win 7 SP1 x64 100% 1366x768|1900x1080
-
Daniel0312
- Posts: 238
- Joined: 15 Feb 2016 10:48
Re: Run user defined functions from address bar
For a slightly different purpose I did the following:
I created an UDC containing only the iNCLUDE statement with my functions library (e.g. #1420)
When I want to use a user defined function I type #1420; MyFunction();
A little more typing but it does the job.
I created an UDC containing only the iNCLUDE statement with my functions library (e.g. #1420)
When I want to use a user defined function I type #1420; MyFunction();
A little more typing but it does the job.
Daniel
XY32 latest stable / Windows11 23H2 / Scaling 100%
XY32 latest stable / Windows11 23H2 / Scaling 100%
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
MBaas
- Posts: 683
- Joined: 15 Feb 2016 21:08
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
MBaas
- Posts: 683
- Joined: 15 Feb 2016 21:08
Re: Run user defined functions from address bar
TBH, I
'ed that because I was hoping this change would also take care of the issue I was having: the desire to use UDFs in CFAs without loading (like "global functions"). But unfortunately that is out of scope according to the whatsnew so you've not given me a chance to like it 
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Run user defined functions from address bar
It makes the most sense in the AB. In UDC you have multi-line scripts, so you can use include. In CFA, yes, that could make sense. Maybe later...
FAQ | XY News RSS | XY X
XYplorer Beta Club