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
    12

    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
    54
    Posts
    8,636
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Location
    Belgium Beveren
    Posts
    16
    Rep Power
    12
    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
    54
    Posts
    8,636
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Location
    Belgium Beveren
    Posts
    16
    Rep Power
    12
    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

Posting Permissions

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