Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43798

Wiki Page: Why does extracting text from the clipboard with SilkTest not work on Windows Vista?

$
0
0
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())

Viewing all articles
Browse latest Browse all 43798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>