Assign Built-In Function ID Return Value to Variable?

Discuss and share scripts and script files...
Post Reply
Zardoz2293
Posts: 577
Joined: 09 Nov 2011 20:20
Location: USA

Assign Built-In Function ID Return Value to Variable?

Post by Zardoz2293 »

Is there a way to capture the return value of a built-in function id and assign to a variable?

i.e., Function ID = #101

Thanks!
Computer/Systems Background = Expert | Windows 10 Pro (64-Bit) | Dell Precision 7720

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Assign Built-In Function ID Return Value to Variable?

Post by highend »

Nope
One of my scripts helped you out? Please donate via Paypal

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Assign Built-In Function ID Return Value to Variable?

Post by LittleBiG »

Zardoz2293 wrote: 07 Oct 2022 07:18 Is there a way to capture the return value of a built-in function id and assign to a variable?

i.e., Function ID = #101

Thanks!
That has no return value as it is a function for copying something to the clipboard.
But the command is "item path/name to clipboard", capturing the name with path into a variable is easy: $pathnames=get("selecteditemspathnames");

Zardoz2293
Posts: 577
Joined: 09 Nov 2011 20:20
Location: USA

Re: Assign Built-In Function ID Return Value to Variable?

Post by Zardoz2293 »

Thank you all for your feedback.

Actually, what I was looking to do was override the value pushed into the clipboard, so the effective functionality of the built-in results for function id #101 would be modified. In my specific case I "always" want my paths if ending in a folder name to have the "\" at the end (I always have to add it manually). I solved by writing a script (which is great), but in my ideal overriding the function id's result, before it was pasted into the clipboard, would be ideal.
Computer/Systems Background = Expert | Windows 10 Pro (64-Bit) | Dell Precision 7720

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Assign Built-In Function ID Return Value to Variable?

Post by jupe »

Zardoz2293 wrote: 07 Oct 2022 16:51 In my specific case I "always" want my paths if ending in a folder name to have the "\" at the end
Configuration | General | Controls & More | Miscellaneous | Copy paths to the clipboard with a trailing slash

Post Reply