I am creating a program that can automate some tasks. But I am stuck up in between. I want to know any command with which I can put the same text entered by the user to another window. For Example:
import web browser as wb
a = input("Enter your text...")
wb.open("www.xyz.com")
Here, I want to ask the user to input text and then I want to open any website like google or any notes website and I want to put the same input entered by the user (whose variable has been defined as 'a') into the text box. So how can I do it?
Is there any specific function?
I tried Xerox and pyperclip as copy and paste but it is not working it's just copying and not pasting... So is there any other function or module or am I doing any mistake in paperclip or Xerox to paste the data?
Please guide as soon as possible.