Results 1 to 5 of 5

Thread: getting info from the clipboard

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Location
    Belgium Beveren
    Posts
    16
    Rep Power
    14

    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

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    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
    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

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Location
    Belgium Beveren
    Posts
    16
    Rep Power
    14
    Thanks Eros,

    And what to do if a want to know about another clipboard format ?

    Regards Patrick

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    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

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Location
    Belgium Beveren
    Posts
    16
    Rep Power
    14
    Thanks,

    Its a very nice language.
    Regards

    Patrick

Similar Threads

  1. How to put Down Arrow into clipboard
    By jbellies in forum OS
    Replies: 11
    Last Post: 23-10-2007, 19:54

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •