screens()
Returns a list of
Screen
objects.
The following functions are provided to make writing logic in Python easier.
A subset of the Python standard library is already available.
screens()
Returns a list of
Screen
objects.
point(x, y)
Returns a
Point
object at the specified coordinates.
rectangle(x, y, width, height)
Returns a
Rectangle
object at the specified coordinates.
save_size(rectangle)
Accepts a Rectangle
as the size logic
result. The selected window will be resized to its coordinates.
You can also reference .NET code from within Python.
# add reference to .NET assembly import clr clr.AddReference("System.Windows.Forms") # import classes from System.Windows.Forms import Form # use classes form = Form() form.ShowDialog()
save_size
must have been called before the main body finishes executing.