R
R
Rostislav Ivanov2021-09-16 08:34:16
Python
Rostislav Ivanov, 2021-09-16 08:34:16

How to print text instead of displaying it in the console?

There is a code:

tt = "Компьютер"
print (tt)


When you run the code file in cmd: the print command prints the word "Computer" in the console.
How to make this word written in the browser in the search bar.
(Given the fact that I, for example, clicked on the search bar. It remains only to type or copy the tt variable into the search bar)

I mean that the browser is an example. I do not need to work with a browser, or a text document, excel.
You just need to type text on the screen. Or insert the variable tt.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2021-09-16
@Slavik28

The keyboard module can perform typing.
Or you are looking for pyautogui.

R
Ruslan., 2021-09-16
@LaRN

Search in the browser can be run like this
https://docs.python.org/3/library/webbrowser.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question