473,799 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

write text to clipboard (linux)

Hi,

I would like to write text directly to the clipboard of
linux using some c++ lines. Would be nice, if anyone has a suggestion, how to
do this.
Thanks!

Greetings!
Fabian
Jul 13 '08 #1
3 3962
"Fabian Braennstroem" <f.************ @gmx.dewrote in message
news:g5******** **@tamarack.fer nuni-hagen.de...
Hi,

I would like to write text directly to the clipboard of
linux using some c++ lines. Would be nice, if anyone has a suggestion,
how to
do this.
Thanks!
Check a liniux newsgroup, it's OT here, same as writing text to windows
clipboard is OT (off topic).
Jul 13 '08 #2
Jim Langston wrote:
Check a liniux newsgroup, it's OT here, same as writing text to windows
clipboard is OT (off topic).
Besides, Linux doesn't have a clipboard, and on X11, there are several
such concepts.
Jul 14 '08 #3
* Matthias Buelow <mk*@incubus.de wrote:
Jim Langston wrote:
>Check a liniux newsgroup, it's OT here, same as writing text to windows
clipboard is OT (off topic).

Besides, Linux doesn't have a clipboard, and on X11, there are several
such concepts.
Sorry for the OT post.

Greetings!
Fabian
Jul 15 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
32291
by: Risto Heinonen | last post by:
Hi. I have a web page that has images and text. I can carefully select one image and the on the right of the image and then copy & paste to Word. Is it possible to make javascript do the same: select the same area (divided by <div> tag) and copy to clipboard? So far I succeeded to make the script to copy the area inside <div> but it was plain html-text.
7
18037
by: William Gill | last post by:
Is there a simple way to cut and paste from a tkinter text widget to an entry widget? I know I could create a mouse button event that triggers a popup (message widget) prompting for cut/paste in each of the widgets using a temp variable to hold the text, but I don't wnat to reinvent the wheel if there already is something that does the job. Thanks, Bill
7
1470
by: MLH | last post by:
We are constantly scouring the WEB for items for sale, copying and pasting descriptive information about the items into text and memo fields of MS Access tables. To date, we are going back to the browser page from the database program to hilite 'n copy the URL from the ADDRESS line of the browser, then back to the database again to paste the specific URL in the designated table field. That's getting old. Everybody thinks that two steps...
2
19048
by: David Dvali | last post by:
How can I cut/copy/paste text from/into textbox using clipboard from my code?
9
2208
by: sonnystarks | last post by:
I am taking a course in writing javascript and it (and all the books I have been reading) tell me that if I will use the document.write syntax, I will be able to "place text on the page." None of these sources tell me why I would do that instead of using ordinary HTML which is less typing. (I think I understand that it is somehow necessary if I am going to include text in a javascript function such as a calendar/clock, but no source...
3
2065
by: Yves Lange | last post by:
Hello, i'm searching a method to take a snapshot and save it in a jpg, bmp or gif file. I tried with win32api and win32con but it save the snapshot to the clipboard, so i tried to redirect this in a file but i have some problems while getting the IMAGE stocked in the clipboard and save it to a file. Can somebody help me ? Questions: -How can i read the snapshot in the clipboard ? -How can i take a snapshot in a different way (less...
6
3546
by: Gigs_ | last post by:
I'm writing text editor. How to enable/disable (cut, copy etc.) when text is selected/not selected
5
1582
by: countryboy | last post by:
I managed to get my text to the clipboard now I am trying to figure out how to compare it two different options. i know the goto is not good but I'm not sure a different way to do it. If clipboard text = "this" then goto line 4 If clipboard text = "that then goto line 5 If clipboard text = "anything else" give error message box Thanks for any input! Happy New Years!!!
8
8095
by: kroogar | last post by:
Hi gurus .Net 2.0 I'm on a project where I need to be able to detect if my clipboard contains BOTH images AND text (eg. when copying from a web page). For some reason Clipboard.ContainsImage() only returns true if the clipboard contains one and only one image. I use Clipboard.GetDataObject().GetDataPresent(DataFormats.Text) to detect the presence of text. What I need to figure out is how to detect if the clipboard contains one or...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10228
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.