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:
CiaoIF LEN(ClipBoard_GetText) then '---do something END IF
Eros
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
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:
CiaoIF LEN(ClipBoard_GetText) then '---do something END IF
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks Eros,
And what to do if a want to know about another clipboard format ?
Regards Patrick
Handling Clipboard using Windows API is not that straight.
If you want to experiment, reference is at: http://msdn.microsoft.com/en-us/libr...09(VS.85).aspx
But that is an area where I will add more native functions in next thinBasic versions.
Ciao
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks,
Its a very nice language.
Regards
Patrick
Bookmarks