D
D
Dima2021-06-14 23:02:37
Python
Dima, 2021-06-14 23:02:37

How to clear a string in python?

I have the pyautogui library, can I do something so that it clears the line?
Let's say I write to a friend in viber 'hello' and don't send it, I'll run the program and it will clear hello

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vindicar, 2021-06-15
@Vindicar

If you mean "remove all text from the current input field", then go to the window first Ctrl-A (select all), then Del. But it will only work if the input field has focus.

D
Dima, 2021-06-15
@interneterrorhehe

How to make a program that will select and delete?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question