#!/usr/bin/env python # -*- coding: utf-8 -*- # Import the robot class from the pyrobot module from pyrobot import Robot import os import ctypes import multiprocessing from ctypes import * from ctypes.wintypes import * # create an instance of the class robot = Robot() # Launch a program robot.start_program('path') # print(windll.kernel32) robot.sleep(1) robot.key_press('left_windows__(natural_board)') # robot.press_and_release('r') robot.key_release('left_windows__(natural_board)') # robot.sleep(2) # robot.type_string('string')