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


Reply With Quote
.. so I no longer need an answer to the clipboard issue, however if anyone knows why it doesnt work.. itd be interested to knwo
