Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Webview2 devtools copy to clipboard notification? (https://www.delphipraxis.net/214714-webview2-devtools-copy-clipboard-notification.html)

softtouch 26. Feb 2024 13:09

Delphi-Version: 5

Webview2 devtools copy to clipboard notification?
 
Wenn ich das devtools Fenster in TEgdeBrowser öffne, und dort mit einem right-click ein element auswähle, und dann zum Beispiel den XPath kopiere, gibt es irgendeine Möglichkeit, zu wissen das was ins clipboard kopiert wurde, also irgend einen event dazu, den ich nicht finde?
Was ich möchte: User klickt einen Button, eine neue Form mit einem TEdgeBrowser öffnet sich, und es wird zu einer bestimmten Seite navigiert. Dort rechts-klickt der user ein Element und wählt "inspect", somit öffnet sich das devtools window. Dort rechts-klickt der user dan auf das element und wählt "copy->XPATH" aus. Kann ich das irgendwie mitbekommen?

himitsu 26. Feb 2024 15:59

AW: Webview2 devtools copy to clipboard notification?
 
Delphi-Referenz durchsuchenClipboard und MSDN-Library durchsuchenWM_CLIPBOARDUPDATE

softtouch 26. Feb 2024 16:02

AW: Webview2 devtools copy to clipboard notification?
 
Zitat:

Zitat von himitsu (Beitrag 1533893)

Das weiss ich auch, aber gibt es da keinen event oder sonst was wenn bestimmte Funktionen im devtool window ausgeführt werden? Clipboard nützt mir reichlich wenig, da ich nicht weiss was im clipboard ist, css selector, id, name, xpath order sonst was.

himitsu 26. Feb 2024 16:09

AW: Webview2 devtools copy to clipboard notification?
 
Das OnChange-Event hatte ich oben noch nachgetragen
und was drin ist, wirst du schon selbst rausfinden müssen.

Du kannst zumindestens das oder die Daten-Format(e) abfragen, welche drin liegen ... "HasFormat" und Dergleichen
https://learn.microsoft.com/de-de/wi...pboard-formats
und dann z.B. anhand von Mustern rausfinden zu versuchen, was der "Text" darstellen soll.


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz