Discussion:
scripting lazarus commands from external programs
David Emerson
2010-03-25 05:47:42 UTC
Permalink
I see that in KDE I can drag-n-drop files from konqueror onto the
lazarus source editor.

What I'd really like to do is "drop" a file into the source editor from
the command line (of an xterm). How would I go about doing so?

Thanks,
David.


--
Mattias Gaertner
2010-03-25 07:07:47 UTC
Permalink
On Wed, 24 Mar 2010 22:47:42 -0700
Post by David Emerson
I see that in KDE I can drag-n-drop files from konqueror onto the
lazarus source editor.
What I'd really like to do is "drop" a file into the source editor from
the command line (of an xterm). How would I go about doing so?
Select the text in the xterm, then middle click in the source
editor.

Mattias

--
David Emerson
2010-03-29 18:06:02 UTC
Permalink
Post by Mattias Gaertner
Post by David Emerson
I see that in KDE I can drag-n-drop files from konqueror onto the
lazarus source editor.
What I'd really like to do is "drop" a file into the source editor
from the command line (of an xterm). How would I go about doing so?
Select the text in the xterm, then middle click in the source
editor.
When I do this, the name of the selected file is pasted into the open
source.

Any mouse-free method?

As a workaround, I'm trying to figure out how to create an XDND event
from the command-line ... but ... there must be a better way!

Cheers,
David.


--

Hans-Peter Diettrich
2010-03-25 07:49:28 UTC
Permalink
Post by David Emerson
I see that in KDE I can drag-n-drop files from konqueror onto the
lazarus source editor.
What I'd really like to do is "drop" a file into the source editor from
the command line (of an xterm). How would I go about doing so?
On Windows you'd have to call a program that sends a WM_DROPFILES
message to Lazarus. Dunno about Linux.

DoDi


--
Loading...