| |

VerySource

 Forgot password?
 Register
Search
View: 794|Reply: 3

How to write text content to an edit box in another process ??

[Copy link]

2

Threads

19

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-2-17 09:30:01
| Show all posts |Read mode
I want to write a string through an application to an edit box control in a dialog box of another open application? How can I achieve this? With a hook? Didn't see a similar example?
How can there be similar examples?
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-30 09:30:02
| Show all posts
There is no need for hooks.
FindWindowEx, FindChildWindow, SendMessage ()
Those using hooks can refer to those programs that automatically log in or obtain passwords.
Reply

Use magic Report

0

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-8-2 15:00:01
| Show all posts
Use Spy++ to find the ID of that edit box
Then find the handle of the edit box after FindWindow in your program, then setwindowText.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-15 22:15:01
| Show all posts
setwindowText will not work, because it is not the same process.
If you don't use hooks, you can only use the way of sending messages to simulate keyboard messages.
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