Human-computer interaction (HCI)

import pyautogui
import time

# Give a moment (half a second) to bring up the application window if needed.
time.sleep(0.5)

# If on a mac OSX machine, use command key instead of ctrl.
hotkey = 'command' if 'mac' in pyautogui.platform.platform() else 'ctrl'

# Open a new tab using a shortcut key.
pyautogui.hotkey(hotkey, 't')

# Give time for the browser to open the tab and be ready for user (typing) input.
time.sleep(1.0)

# Now type a url at a speedy 100 words per minute!
pyautogui.write('https://pyautogui.readthedocs.io', 0.01)

# Bring 'focus' to the URL bar (shortcut key may vary depending on your browser).
time.sleep(0.1)
pyautogui.hotkey(hotkey, 'l')

# Press enter to load the page.
pyautogui.press('enter')

References

Mouse control functions Keyboard control functions Caffe cv2.dnn.readNetFromCaffe() cv2.dnn.blobFromImage() cv2.dnn_Net.setInput() cv2.dnn_Net.forward() pyautogui.KEYBOARD_KEYS press()