Using the Python win32 extensions it is relatively simple to copy to and from the clipboard. Sorry. the Windows OS is a requirement.

Member Avatar
+0 forum 0

You can accesss the clipboard simply by using the Tkinter GUI toolkit that comes with your Python installation.

Member Avatar
Member Avatar
+1 forum 11

I have linklabel which has spaces at the end, I want to copy the label's content without the spaces. This copies the linklbl with spaces at the end: Clipboard.SetText(E_mailLinkLabel.Text) But couldn't figure out how to trim the linklabel before copying it.

Member Avatar
Member Avatar
+0 forum 1

I want this program to wait untill I copy some text into my clipboard. This is what I have done so far char text[500] ; HANDLE clip ; if ( OpenClipboard (NULL) ) cout << "\nClipboard opened" ; EmptyClipboard () ; cout << "\nStart" ; while ( true ) { if ( GetClipboardData (CF_TEXT) != NULL ) { cout<<"\ninside"; clip = GetClipboardData (CF_TEXT); break ; } } /*if ( OpenClipboard (NULL) ) clip = GetClipboardData (CF_TEXT);*/ strcpy ( text, (char*)clip ) ; cout << "\n" << text ; But its no working properly. `Start` gets printed but after that nothing …

Member Avatar
Member Avatar
+0 forum 3

So I was writing a program that would take a string from clipboard, do some stuff and put the new string back to clipboard. My code so far is posted below. The problem is I want my program to wait for me until I 'ctrl+C' something. I know that `GetClipboardData()` returns NULL if something goes wrong. Is it true that it also returns NULL if clipboard is empty ? Code : # include <stdio.h> # include <math.h> # include <windows.h> int prime_check ( int i ) { int j = 0; for(j=2; j <= sqrt(i); j++ ) if(!(i%j)) break; if …

Member Avatar
Member Avatar
+0 forum 11

I'm having trouble with a bit of code here. What I'm trying to do is paste multiple images(generated from a helper function) into a RichTextBox. Here's my code: string tempText = "For the arithmetic progression $a_1, a_2, a_3, ... a_9$ it's known that $a_2 + a_8 = 8$. The sum $a_1 + a_2 + a_4 + a_5 + a_6 + a_8 + a_9$ is equal to:\nA) 14;\tB) 16;\tC) 36;\tD) 32."; for (int i = 0, lastOcc = 0, numDoll = 0; i < tempText.Length; i++) { if (tempText[i] == '$') { numDoll++; if (numDoll % 2 == 1) { problemText.Text …

Member Avatar
+0 forum 0

Hi, guys, I'm programming some artificial intelligence for a graphics program, Graphics Gale. The program is horrible, it won't let me combine layers with the same name, and it won't let me save the image as a Photoshop file, so what do I have to do? I have to code some AI. I have around 260 images that i need the layers combined, so I got all the AI working except for one part that makes no sence what so ever. It copies the current layer's image to the clipboard, and then saves it to a specified folder, but I …

Member Avatar
Member Avatar
+0 forum 7

This came up, maybe it is usefull to somebody. Later I plan to do a managing context interface to `with`statement for this.

Member Avatar
Member Avatar
+0 forum 2

Hi, I am trying to get a screenshot of the active window on the screen, for which unfortunately Java does not have an API. It allows me to capture the screenshot of the whole screen but not of the active window. Now, I did a bit of workaround but it is not working as expected. What I did was first press the Alt+PrntScrn keys using the robot class object. Then I get the contents from the clipboard and save the image to a file. The code is working fine, however it is not getting me the latest image. It gets …

Member Avatar
Member Avatar
+0 forum 2

I'm working on a simple program in which the user types a sentence, the program iterates through the string that the sentence in stored in and alternates each letter's case, and then puts the formatted text into the clipboard. I know exactly how to allow input and change case/check if characters are alphabetical and therefore able to change case. What I would like to know is how to get the clipboard part working. I have been able to get the basic code for the clipboard to work, however, if I input a string like "Hello world", it cuts off anything …

Member Avatar
Member Avatar
+0 forum 4

:D Hello everyone, I am making a program where the user types in a string and then the string is saved to the clipboard, but I am not quite sure how. I have had a look at [url]http://www.cplusplus.com/forum/beginner/33250/[/url] but I am not quite sure how to implement this. I would greatly appreciate any help offered because I am a beginner. Thanks, Muhasaresa

Member Avatar
Member Avatar
+0 forum 1

Hey guyz Is this possible to get text automatically in textbox1 whenever any textbox is copied to the clipboard. I am talking to get it automaticaly. So if i copies abc then textbox1 value will be abc automatically (Not by clicking any button or form loading)

Member Avatar
Member Avatar
+0 forum 5

hi masters.. How to code the Copy, Cut and Paste functionality in VB 6.0 ?

Member Avatar
Member Avatar
+0 forum 3

The End.