Wow, it actually works!
i even learned how to shell out of J to W10
The shell is a bit of a bottle neck though
it seems to have a length limitation.
   "The command line is too long"
perhaps i can send a string of lines, or
i may have to use file Foreign's
if there is not an undocumented clip Foreign.

~greg
http://krsnadas.org

--

from: David Mitchell <[email protected]>
to: [email protected]
date: Jun 29, 2020, 5:25 AM
subject: Re: [Jprogramming] copy/paste implementation

How about this:

shell 'echo This is a test | clip'

shell 'powershell -command "Get-Clipboard"'

David Mitchell

--

Thanks for the github location
sadly it too, has too many dependencies.
Still hoping for a raw Foreign

~greg
http://krsnadas.org

--

from: David Mitchell <[email protected]>
to: [email protected]
date: Jun 28, 2020, 7:49 PM
subject: Re: [Jprogramming] copy/paste implementation

Fixed typo.

If you are running Windows, this is available:

0!:0 <jpath'~Addons/general/misc/clippaste.ijs'

or

https://github.com/jsoftware/general_misc/blob/master/clippaste.ijs

or

https://raw.githubusercontent.com/jsoftware/general_misc/master/clippaste.ijs

Does this help?
David Mitchell

--

from: greg heil <[email protected]>
to: Programming forum <[email protected]>
date: Jun 28, 2020, 7:19 PM
subject: Re: [Jprogramming] copy/paste implementation

Sigh no
i am not really trying to code in bare metal 0s & 1s...
but i do not have access to load or pacman or...
Perhaps their is a URL for clippaste.ijs?

~greg
http://krsnadas.org

--

from: 'Pascal Jasmin'
to: [email protected]
date: Jun 28, 2020, 7:06 PM
subject: Re: [Jprogramming] copy/paste implementation

wdclippaste

wd@('clippaste'"_) ::(''"_)

it is part of wd framework.  Does that help?  wd is part of jqt.

--

from: greg heil <[email protected]>
to: Programming forum <[email protected]>
date: Jun 28, 2020, 6:47 PM
subject: copy/paste implementation

>i am trying to access the copy/paste buffer directly (w/o pacman) but i am 
>drawing a blank on how to do so. i seem to remember it was in Foreign 11 ... 
>but that is skipped over. Perhaps the definition of clippaste.ijs has it... 
>but i cannot find its definition online?

~greg
http://krsnadas.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to