Sendkey Ctrl+a Ctrl+c Does Not Work Properly With Webview2-control
Có thể bạn quan tâm
- Notifications You must be signed in to change notification settings
- Fork 62
- Star 508
- Code
- Issues 1.2k
- Pull requests 31
- Discussions
- Actions
- Wiki
- Security
Uh oh!
There was an error while loading. Please reload this page.
- Insights
Description
I try to copy the displayed document content to a texbox.
Environment: Windows 10 Home, Visual Studio Community 2019 Version 16.7.5, VB.net, .net framework 4.8.03752
Public Sub WebView_NavigationCompleted(sender As Object, e As CoreWebView2NavigationCompletedEventArgs) Handles wv.NavigationCompleted wv.Focus() Clipboard.Clear() SendKeys.SendWait("^a") SendKeys.SendWait("^c") tb.Text = Clipboard.GetText() End Sub
The copy command works, but after that the clipboard content is not available by Clipboard.gettext() and the text selection in Webview2 is not visible. On the other hand the clipboard content is available while using ctrl+v manually in the textbox or using Notepad.
Without line "tb.Text = Clipboard.GetText()" text selection ist visible. Any other line following the copy command (e.g. "MessageBox.Show("xxx") instead of "tb.Text = Clipboard.GetText()") leads to the same effect.
Inserting a sleep command does not help.
Metadata
Metadata
Assignees
No one assignedLabels
No labelsNo labelsType
No typeProjects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » Visual Basic Sendkeys Ctrl+c
-
Thread: Why SendKeys "(^C)" Doesn't Work? - VBForums
-
Emulate Copy-paste From Keyboard Wedge Application In
-
Application.SendKeys Method (Excel) - Microsoft Docs
-
SendKeys Statement (VBA) - Microsoft Docs
-
How To Use Excel SendKeys Method In Macros - Contextures
-
Using Sendkeys() Function To Send Keys Like ALT, CTRL, Etc.?
-
SendKeys Ctrl + C đến Các ứng Dụng Bên Ngoài (văn Bản Vào ...
-
[SOLVED] SendKeys Really Working [Archive] - VBA Express Forum
-
What Are SendKeys In VBA? - Software Solutions Online
-
Sendkey (Ctrl+C) Problem | MrExcel Message Board
-
Function Send - AutoIt
-
VB Script That Mimics CTRL+C, CTRL+G, CTRL+V, ENTER? - Bytes
-
How Do I Format A String For The Methis SendKeys Method To Emulate ...