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?!