[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with Strings in the Clipboard


I wanted to access the text of the clipboard but when the string contains a URL (i.e. "https://www.gambas-buch.de";) the method Clipboard.Paste() returns something else but not the original string. According to the documentation clipboard strings containing URLs are not returned as the original strings any longer since V3.18. Why has this been changed and how can I access the original URL-string for a simply routine like below? :

  ...
  Else If Clipboard.Type = Clipboard.Text Then
     Print Clipboard.Paste()    'doesn't return the string if it is a URL
     s = ...... 'How?
     if left$(s,4) = "http" Then
          Desktop.Open(s)
     end if
  Endif

Best regards

Claus



Follow-Ups:
Re: Problem with Strings in the ClipboardBruce Steers <bsteers4@xxxxxxxxx>
Re: Problem with Strings in the ClipboardLee <t.lee.davidson@xxxxxxxxx>