Jump to content

Hijack command - extract and alter output from vanilla commands


Recommended Posts

Posted

Hi, this is a semi-universal question. Is there any way to make my lisproutin run a regullas AC-command and extract info from it. Likewise can i insert my own info in the output?

Example, i want my command to look like the output of massprop. But I also want it to write the unit afterwards so instead of it saying:

"Volume:                    3346204269.0" (Im based i mm)  it says "Volume:                    3.346204269 "

Basically im looking for a shortcut to not have to recreate the entire command byt just read info from it and modify the output. I could see this come in hand for a lot of customization.
 

Posted

No - you cannot intercept and modify the output of standard commands, only redefine them.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...