I want to upload a file to a website try: pk=browser.find_elements_by_class_name(‘fileupload’).click() except: print("not working") browser.execute_script("document.getElementsByClassName(‘fileupload’).click();") time.sleep(2) pyautogui.write("’C:/Users/SOMEN/Downloads/book.pdf’") time.sleep(2) pyautogui.press(‘enter’) this is my code to upload file this works fine. but when the windows file opener opens, my pyautogui write it to the search box but this is the problem windows says this filename is not ..
Hello my goal is to be able to make my bot click the thing of my choosing on any screen size because I think that is the main issue. Ive tried to decrease the confidence level but it just ends up clicking something else with the same general color. ive tested it with an EXACT ..
So I was reading the automate the boring stuff book, and on chapter 20 it talks about the pyautogui module and some of its functions. The first one I had a problem with was the .mouseInfo function, which is supposed to open a window that gives you the color of the pixel your cursor is ..
I have already used pyautogui on a Mac os system before without any trouble, but now I’m trying on a windows 10 machine running this code: import pyautogui print(pyautogui.position()) And I get the following error: Traceback (most recent call last): File "screenshot.py", line 1, in <module> import pyautogui File "/home/cj/.local/lib/python3.8/site-packages/pyautogui/__init__.py", line 241, in <module> import ..
Considering the question, you might think why am I going for C++ when you have many easy libraries for python. The answer is performance. Of what I’ve been "told" about, C++ is about 400 times faster than python. Now, I have this major automation project which after 1 week have I’ve made. But it’s too ..
I am working on personal voice assistant in python. I want to implement a function that minimize all windows at once. And I find a keyboard shortcut that is WINDOWS + D which will throw us on desktop. So I am thinking to make a python program with the help of pyautogui module to press ..
I am a real rookie in python, and I want to use pyautogui to remotely control the other computer. The issue is that the mouse works for my VNC viewer window, but the keyboard doesn’t work. Is there any solution or reference for this? Thank you guys. Source: Windows Que..
I currently have the problem with pyautogui that it only works on the primary screen. Can I change this somehow? PS: I have already read the docs, but I found nothing :c Source: Windows..
I have coded a simple Osu! bot, but it doesnt work. I get no error until i open (fullscreen) osu. I have tried running it from cmd with administrator, but it just wont work. I get this error: Traceback (most recent call last): File "C:/Users/Kris/PycharmProjects/OsuBot/venv/drums.py", line 7, in if pyautogui.pixel(609, 440) == 235: File "C:UsersKrisAppDataLocalProgramsPythonPython38libpyscreeze_init_.py", ..
I want to automate some clicks on Windows. I use pyautogui for that. But when my code meets pyautogui.click(…), it execute it, and after that doesn’t execute any other code except for pyautogui. When I launch this code (I launch it through cmd with python myFile.py): import pyautogui print("Hello, World!") pyautogui.click(500, 500) print("Hello, World! x2") ..