import ctypes def loyaut(): u = ctypes.windll.LoadLibrary("user32.dll") at = getattr(u, "GetKeyboardLayout") if hex(at(0)) == '0x4190419': return True else: return False while True: print(loyaut())
import ctypes def loyaut(): u = ctypes.windll.user32 at = u.GetKeyboardLayout if hex(at(0)) == '0x4190419': return True else: return False while True: print(loyaut())