

# https://www.globalsino.com/ICs/page4853.html
# Hold function in Keyboard Control

import pyautogui as pg
import time

time.sleep(2)

# Get the coordinates at a position
print(pg.position())

time.sleep(2)

# Press Num Lock key
pg.press("numlock")

# This can be used to select some text ("num lock" has to be disabled)
with pg.hold('shift'):
    pg.press('left', presses = 5)




