AutomateTheBoringStuff.Ch18 package

Submodules

AutomateTheBoringStuff.Ch18.P1_mouseMovement module

Mouse movement

This program uses PyAutoGUI to control mouse movement.

AutomateTheBoringStuff.Ch18.P1_mouseMovement.main()[source]

AutomateTheBoringStuff.Ch18.P2_mouseNow module

Mouse now

Displays the mouse cursor’s current position in terminal.

AutomateTheBoringStuff.Ch18.P2_mouseNow.main()[source]

AutomateTheBoringStuff.Ch18.P3_mouseInteraction module

Mouse interaction

This program uses PyAutoGUI to control mouse interaction.

AutomateTheBoringStuff.Ch18.P3_mouseInteraction.main()[source]

AutomateTheBoringStuff.Ch18.P4_spiralDraw module

Spiral draw

Program uses PyAutoGUI to draw a spiral pattern in an opened drawing program.

AutomateTheBoringStuff.Ch18.P4_spiralDraw.main()[source]

AutomateTheBoringStuff.Ch18.P5_screenshots module

Screenshots

This program uses PyAutoGUI to take and analyze screenshots.

Note

  • For Linux distros, the scrot program needs to be installed.
AutomateTheBoringStuff.Ch18.P5_screenshots.main()[source]

AutomateTheBoringStuff.Ch18.P6_mouseNow module

Mouse now 2.0

Extends P2_mouseNow to display the mouse cursor’s current position and RGB color in terminal.

AutomateTheBoringStuff.Ch18.P6_mouseNow.main()[source]

AutomateTheBoringStuff.Ch18.P7_controlKeyboard module

Control Keyboard

This program uses PyAutoGUI to manipulate keyboard input.

AutomateTheBoringStuff.Ch18.P7_controlKeyboard.commentAfterDelay() → None[source]

Comment after delay

Automatically types then comments out a line in IDLE after waiting two seconds.

Returns:None. Executes keyboard commands.
AutomateTheBoringStuff.Ch18.P7_controlKeyboard.main()[source]

AutomateTheBoringStuff.Ch18.P8_formFiller module

Form filler

Automatically fills in the form at http://autbor.com/form

AutomateTheBoringStuff.Ch18.P8_formFiller.main()[source]

Module contents