View Full Version : getting info from the clipboard
hi,
Iam new in thinbasic.
I like to know if there is text in the clipboard. How can i do this.
I like to do this with RetCode = SendMessage(hEdit, %EM_CANPASTE, %CF_TEXT, 0)
Is this possible ?
Regards
Patrick
ErosOlmi
08-08-2011, 18:32
Hi Patrick,
first welcome to thinBasic community forum.
Using native thinBasic commands, if you are just interested in text clipboard you can use something like:
IF LEN(ClipBoard_GetText) then
'---do something
END IF
Ciao
Eros
Thanks Eros,
And what to do if a want to know about another clipboard format ?
Regards Patrick
ErosOlmi
08-08-2011, 19:57
Handling Clipboard using Windows API is not that straight.
If you want to experiment, reference is at: http://msdn.microsoft.com/en-us/library/ms648709(VS.85).aspx
But that is an area where I will add more native functions in next thinBasic versions.
Ciao
Eros
Thanks,
Its a very nice language.
Regards
Patrick