hello world, get text to clipboard

BlitzPlus Forums/BlitzPlus Beginners Area/hello world, get text to clipboard

c h i e f y(Posted 2014) [#1]
Graphics 640,480

Text 280,240,"Hello world"

WaitKey()

ok I do that


I see Hello world in the middle of the screen

what I need is a way of getting Hello World to clipboard

is there a way? :)

at the moment I've got a black screen with white text but no way of highlighting the text to copy it


Zethrax(Posted 2014) [#2]
There doesn't seem to be any dedicated functionality for that in BlitzPlus Chiefster, so you're going to have to get down and dirty with the Windows API. Some links below.

(Also, check the code archives in case there's code there. You'll also find userlib declaration files for various Windows API DLLs that you'll need there.)

http://msdn.microsoft.com/en-us/library/windows/desktop/ms649016(v=vs.85).aspx#_win32_Copying_Information_to_the_Clipboard
http://msdn.microsoft.com/en-us/library/windows/desktop/ff468802(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms649051(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms649039(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms649048(v=vs.85).aspx

I might have a crack at doing a library for this for the code archives when I'm less drunk.

Also, you should visit the forum more often.


c h i e f y(Posted 2014) [#3]
ok thanks for the reply :)


Zethrax(Posted 2014) [#4]
There's a code archive entry for this at the link below.
http://www.blitzbasic.com/codearcs/codearcs.php?code=699

Here's a Google site search link with more results.
https://www.google.com.au/search?client=opera&q=site:http://www.blitzbasic.com/codearcs/+clipboard&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest&gws_rd=ssl