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!
Assign Built-In Function ID Return Value to Variable?
-
- Posts: 577
- Joined: 09 Nov 2011 20:20
- Location: USA
Assign Built-In Function ID Return Value to Variable?
Computer/Systems Background = Expert | Windows 10 Pro (64-Bit) | Dell Precision 7720
Re: Assign Built-In Function ID Return Value to Variable?
Nope
One of my scripts helped you out? Please donate via Paypal
Re: Assign Built-In Function ID Return Value to Variable?
That has no return value as it is a function for copying something to the clipboard.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!
But the command is "item path/name to clipboard", capturing the name with path into a variable is easy:
$pathnames=get("selecteditemspathnames");
-
- Posts: 577
- Joined: 09 Nov 2011 20:20
- Location: USA
Re: Assign Built-In Function ID Return Value to Variable?
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.
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
Re: Assign Built-In Function ID Return Value to Variable?
Configuration | General | Controls & More | Miscellaneous | Copy paths to the clipboard with a trailing slashZardoz2293 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