mrcr
March 25th, 2006, 09:13 PM
Yes another question on the same project. Can you tell I'm new to programming?
Seems that I have everything working now except one thing.. getting the actualy file contents onto the clipboard. Like I said in the other thread, I can copy the file contents and parse it to another file. As in I can get it to search for the data I need and then copy it and paste it into another file. And I am able to now send data correctly to the focused window.
Now I need to take that text I'm copying from the file and actually copy it directly to the clipboard so I can paste it to the active window, instead of copying it to a string and outputting it to another file.
I looked at some of the clipboard info and it's confusing me to no end. I'm not sure if I have this right, but it looks like I have to:
- Get the clipboard id
- open the clipboard
- empty the clipboard
- mem allocation?
- copy string to clipboard
- close clipboard
I got this by searching through MSDN, but now I'm just more confused :/
I'm pretty sure I can get the opening, emptying, and closing part right, but I am not sure about getting the clipboard ID and what the memory allocation is for. And of course actually copying the string i get from the file to the clipboard.
Seems that I have everything working now except one thing.. getting the actualy file contents onto the clipboard. Like I said in the other thread, I can copy the file contents and parse it to another file. As in I can get it to search for the data I need and then copy it and paste it into another file. And I am able to now send data correctly to the focused window.
Now I need to take that text I'm copying from the file and actually copy it directly to the clipboard so I can paste it to the active window, instead of copying it to a string and outputting it to another file.
I looked at some of the clipboard info and it's confusing me to no end. I'm not sure if I have this right, but it looks like I have to:
- Get the clipboard id
- open the clipboard
- empty the clipboard
- mem allocation?
- copy string to clipboard
- close clipboard
I got this by searching through MSDN, but now I'm just more confused :/
I'm pretty sure I can get the opening, emptying, and closing part right, but I am not sure about getting the clipboard ID and what the memory allocation is for. And of course actually copying the string i get from the file to the clipboard.