Questions tagged [autopy]

AutoPy is a simple, cross-platform GUI automation toolkit for Python. It includes functions for controlling the keyboard and mouse, finding colors and bitmaps on-screen, and displaying alerts -- all in a cross-platform, efficient, and simple manner.

AutoPy is a simple, cross-platform GUI automation toolkit for Python. It includes functions for controlling the keyboard and mouse, finding colors and bitmaps on-screen, and displaying alerts -- all in a cross-platform, efficient, and simple manner.

47 questions
8
votes
4 answers

Errors while installing python autopy

Hey I have looked at and old question here but it doesn't answer my question I have installed libpng, then try to install autopy and get complie errors. I am not great at python yet so I am not sure on how to fix them. Ashley:~ ashleyhughes$ sudo…
Ashley Hughes
  • 571
  • 1
  • 6
  • 18
5
votes
1 answer

Python - Human Like Mouse Behaviour

I'm trying to simulate human-like mouse movements using pyautogui or autopy Do any of you know or can provide a good way? Let's say I want to move from (0, 0) to (56, 200). If I use the pyautogui.moveTo(), It just jumps there. If I use the…
SunAwtCanvas
  • 1,261
  • 1
  • 13
  • 38
4
votes
1 answer

How to NOT release keypress in autopy or pyautogui?

When we press a key (such as 'a') in a notebook, and don't release it, we will get aaaaaaaaaaaaaaaa...... I want to simulate the key-press in python. So I've coded as follows. import pyautogui, autopy pyautogui.keyDown('a') #…
Levi Nie
  • 43
  • 7
3
votes
2 answers

Converting an autopy bitmap to a Pillow image

I'm developing a screen scraper in Python, using Autopy and Pillow. Is it possible to convert a bitmap object to a Pillow image object? My current solution is to save the bitmap object as an image file, and then use the path to create a Pillow image…
Vingtoft
  • 13,368
  • 23
  • 86
  • 135
2
votes
1 answer

Use of base_library.zip file in pyinstaller

I created a PyQt application and then made it's .exe file using auto-py-to-exe. I am observing that it has created a base_library.zip file inside my directory. I want to know it's purpose and should I unzip this file or not? I am using Python 3,…
Voldemort
  • 175
  • 5
  • 20
2
votes
0 answers

Problems moving cursor to image using autopy

I am learning autopy so I hope I can find help here. I am trying to find an image on my screen and move the cursor to it. I have written the following code: import autopy # Take a screenshot of the entire…
Mortada
  • 35
  • 4
2
votes
1 answer

Converting a PIL Image to an autopy bitmap?(and back)

Recently I started working with PIL together with AutoPy to automate some tasks. One of the core functions AutoPy is needed for is its suprisingly fast (though buggy, but there are fixes for that - the build and installation from source can be…
JeWe37
  • 21
  • 3
2
votes
1 answer

Can I use Scikit learn and autopy to play video games?

I know this is a very broad question but I'm learning about data science, I've been reading up on it for a few days and I can't find any info on how to manipulate a video game using python. Can I use autopy and scikit-learn to make something similar…
Eric MacLeod
  • 451
  • 3
  • 7
  • 18
2
votes
1 answer

simulate cursor motion from X,Y to X,Y

I need to move mouse cursor from coordinates (800,300) to (100,600) with visible cursor movement. How can I do that? (I need to simulate motion only - I am getting mouse position with autopy module)
peter
  • 4,289
  • 12
  • 44
  • 67
2
votes
1 answer

Autopy screen capture on OSX

I'm using Autopy on osx 10.7.4 and everything in the module works except for the capture_screen method. Whenever I use it to capture the screen the image it saves is just completely black. Why would this be?
user36026
  • 21
  • 1
1
vote
1 answer

Failed to build wheel with autopy

I was bored recently so I decided to do some programming and follow this tutorial which seemd interesting: https://www.youtube.com/watch?ev=8gPONnGIPgw&t=244s During it, he installs the autopy module directly from pycharm, however when I try it…
1
vote
1 answer

“SyntaxError: invalid syntax” while installing autopy

I need to run code (for python 2.7) which requires autopy Python 2.7 setuptools-rust 0.11.4 autopy 4.0.0 C:\pip install autopy DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python…
1
vote
1 answer

How to delete an auto py to exe executable file?

I have made a exe file with auto py to exe. But when I opened it I have some problems. So I decided to delete it. But when I am selecting the file and pressing SHIFT+DEL, then it would say it is open in another exe program. Can someone say a…
1
vote
0 answers

ModuleNotFoundError when converting from .py to .exe

I created a program in Pycharm which uses the following library: import sys sys.coinit_flags = 2 import tkinter as tk from tkinter import filedialog, ttk, messagebox import os import zipfile import shutil from pynput.keyboard import Key,…
Dave White
  • 31
  • 3
1
vote
1 answer

AutoPy - Point out of bounds (smooth_move)

Hi so i'm trying to move my cursor on screen using the smooth_move function from the AutoPy module. My screen resolution is 1920x1080 But when i execute this code, autopy.mouse.smooth_move(1700, 0) I get the following Error ValueError: Point out of…
SunAwtCanvas
  • 1,261
  • 1
  • 13
  • 38
1
2 3 4