| |

VerySource

 Forgot password?
 Register
Search
View: 708|Reply: 1

Paste problem

[Copy link]

3

Threads

10

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-4 17:40:01
| Show all posts |Read mode
How to paste the contents of the clipboard to the place where the cursor is blinking
Note: The cursor blinks on another application (current application) ~!
Reply

Use magic Report

3

Threads

10

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-4 18:18:01
| Show all posts
IntPtr hWnd = GetExeHandel ("StartOldInstance");
// MessageBox.Show ("" + hWnd);
if (hWnd! = IntPtr.Zero)
{
ShowWindow (hWnd, 1);
SendKeys.Send ("{Enter}");
Clipboard.SetDataObject ("123456789");
SetForegroundWindow (hWnd);
Ranch
}
If you want to "Clipboard.SetDataObject (" 123456789 ");
"How to achieve the paste together, please prawn help, no one answered after asking a few stickers!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list