Results 1 to 3 of 3

Thread: Clipboard

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    399

    Clipboard

    VB Code:
    1. Dim text As String
    2. Dim test As clsKeyboard
    3. Set test = New clsKeyboard
    4. Clipboard.Clear  'When I add this.. the CTRL C doesnt work.. but it worked before?!
    5. ''''''''''' BELOW THIS WORKS '''''''''''''''''
    6.  
    7. Call ClickCoords(118, 554)
    8. test.PressKeyVK keyControl, True 'selet all
    9. test.PressKey "a", False, False, True
    10. test.PressKeyVK keyControl, False
    11. Sleep (100)
    12. test.PressKeyVK keyControl, True 'copy all
    13. test.PressKey "c", False, False, True
    14. test.PressKeyVK keyControl, False
    15.  
    16. '''''''''''''NOTE I KNOW THE CODE UP BETWEEN THESE 2 LINES WORK'''''''''''''''''''
    17. text = Clipboard.GetText() 'this always returns blank when Clipboard.Clear is added... any idea why?!

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    399

    Re: Clipboard

    The text im copying is in another application and its in a class named "Internet_Explorer Server" or something like that.. does anyone know how to get the text content of that easily? in VB6? I found posts about it in vb.NET.. but i couldnt figure it out.. I posted about this in API cause this is an API issue, but no replies as of yet.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    399

    Re: Clipboard

    I managed to figure out the Internet_Explorer Server issue thanks to iPranks advice in another thread .. so I no longer need an answer to the clipboard issue, however if anyone knows why it doesnt work.. itd be interested to knwo

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