Results 1 to 3 of 3

Thread: Clipboard API calls??

  1. #1

    Thread Starter
    Member sTyLeZ's Avatar
    Join Date
    Jan 2001
    Posts
    35

    Question Clipboard API calls??

    Ok...I'm currently using Clipboard.SetText/GetText to write a clipboard monitor program. My problem is that it doesn't work 100% of the time, mainly when I copy something out of a Microsoft program (go figure!), then try to restore a previous clipboard entry. Other than that it works. Example:

    -Copy "whatever" from some program, it gets stored in the list of
    clipboard entries in my prog
    -Copy "ASDF" while in MS Word, gets put in the list
    -Click on "whatever" in my program and hit the "Copy" button, it does Clipboard.settext "whatever"
    -Hit CTRL-V in form on some webpage and "ASDF" gets pasted

    What's the deal?? Are there Clipboard API functions that I can use that will fix this? If so, I would only need something similar to Clipboard.GetText and Clipboard.SetText. Thanks for any replies.
    Now the world is gone I'm just one...

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    there are api functions, but you need to allocate global memory, and pass a pointer to it. it's messy to do with VB.
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    Megatron
    Guest
    For standard Cut, Copy and Paste, send the WM_CUT, WM_COPY and WM_PASTE messages

Posting Permissions

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



Click Here to Expand Forum to Full Width