Skip to content

danalite/pygb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyGB

PyGB (Py-GUI-Background) is a fork of the PyAutoGUI to support background keyboard and mouse events to a specific window.

Getting Started

Everything is the same as in the original PyAutoGUI, except for each function you can add a window argument to specify the window to send the event to (the window can be inactive, running in the background).

If the window argument is not specified, the event will be sent to the global event tap (same as original PyAutoGUI).

import pygb

# Press key to a specific window
pygb.keyDown('a', window=859)
pygb.keyUp('a', window=859)

# Take screenshot of a specific window
img = pygb.screenshot('a', window=859)

Other Changes

  • Window support

Window resizing

About

pyAutoGUI plus to control background windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages