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

Re: Problem with Strings in the Clipboard


Maybe be us a different format.
Check out Clipboard.Formats to see if a different format might be
used/available.

It depends where the he Copy came from.

Print Clipboard.Formats.Join("; ")

See it's list if formats and maybe try another in the Paste command.

Respects
BruceS


On Mon, 19 Jan 2026, 11:05 Claus Dietrich, <claus.dietrich@xxxxxxxxxx>
wrote:

> 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 ClipboardClaus Dietrich <claus.dietrich@xxxxxxxxxx>
References:
Problem with Strings in the ClipboardClaus Dietrich <claus.dietrich@xxxxxxxxxx>