Using Sendkeys in python to press {F12} results in other keys pressed?
- by ThantiK
import time
from ctypes import *
import win32gui
import win32com.client as comclt
X = 119
Y = 53
def PILColorToRGB(pil_color):
""" convert a PIL-compatible integer into an (r, g, b) tuple """
hexstr = '%06x' % pil_color
# reverse byte order
r, g, b = hexstr[4:], hexstr[2:4], hexstr[:2]
r, g, b = [int(n, 16) for n in (r, g, b)]…