I was trying to make a spam bot using python but it doesn’t work when I try to make it arabic but it works perfectly when I make it english I really need help quickly This is the code time.sleep(5) f = open(‘spam.txt’,’r’) fa = f.encode("utf-8") for word in fa: pyautogui.typewrite(word) pyautogui.press("enter") spam.txt مرحبا Thanks ..
Category : pyautogui
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 my goal for this right now is to be able to receive the coordinates from locateOnScreen function and use that to click something on the screen. I know how to use cordinates to click something on screen but I cant find the coordinates from the locateOnScreen function This is what I have so far ..
I am having a nightmare of a time installing Pillow on my apple silicon. Everytime I attempt to install it, it throws a truly massive error which I have posted below. It says Wheels is not installed but it is installed. It also says to refer to the Pillow page which I have done. I ..
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 ..
For some reason when i try to install pyautogui with pip i get this error, and when i tried to install other module every thing work as intended. Pls help me identify the problem, I couldn’t find any info online, and failed to find more info by my self. Error message: Collecting PyAutoGUI Using cached ..
import random, string, pyautogui, time numbers=random.randint(1000000000, 1000000000000) def random_char(y): return ”.join(random.choice(string.ascii_letters) for x in range(y)) time.sleep(2) pyautogui.typewrite(random_char(10)) time.sleep(0.5) pyautogui.write(numbers) output = piTPLlrXPn (<— Random 10 Letters) but numbers won’t work Error: Exception has occurred: TypeError ‘int’ object is not iterable File "C:UsersNoahPicturesPythontest.py", line 9, in <module> pyautogui.write(numbers) Source: Python..
Pyautogui wont move the mouse but it will click just fine. I have tried adding the Terminal & python to permissions for taking over the computer, I have tried the drag options and setting coordinates manual. Nothing seems to work, its very frustrating. I’m on a new apple m1 chip, I doubt that is doing ..
I want to be able to hold left click while draging the pointer using pyautogui i tried this but it didnt work pyautogui.drag(x = 331, y = 262, x = 192, y = 263 button=’left’) Source: Python..
import pyautogui, time time.sleep(5) pyautogui.moveTo(x=960, y=540) pyautogui.sleep(0.5) pyautogui.rightClick For some reason, the rightclick doesnt work idk pls help Source: Python..
Recent Comments