When using SilkTest to copy data to the clipboard and then extracting it from the clipboard immediately this may sometimes fail on Windows Vista. The standard code used to do this is below: Textfield1.TypeKeys(" ") Print(Clipboard.GetText()) The reason for the failure is that it takes slightly longer to copy contents to the clipboard in Windows Vista than it did in previous versions of Windows. To resolve this problem add a sleep between copying to the clipboard and extracting the contents of the clipboard. For example: Textfield1.TypeKeys(" ") sleep(1) Print(Clipboard.GetText())
↧