This commit is contained in:
Oleksii Shevchuk 2018-10-01 22:41:09 +03:00
parent 80123685e7
commit e2344bcd9c
1 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@ GetLastInputInfo = windll.user32.GetLastInputInfo
if hasattr(windll.kernel32, 'GetTickCount64'): if hasattr(windll.kernel32, 'GetTickCount64'):
from ctypes import c_ulonglong from ctypes import c_ulonglong
GetTickCount = windll.kernel32.GetTickCount64 GetTickCount = windll.kernel32.GetTickCount64
GetTickCount.reestype = c_ulonglong GetTickCount.restype = c_ulonglong
else: else:
GetTickCount = windll.kernel32.GetTickCount GetTickCount = windll.kernel32.GetTickCount
GetTickCount.reestype = c_uint GetTickCount.restype = c_uint
def get_gui_idle(display=None): def get_gui_idle(display=None):
lastInputInfo = LASTINPUTINFO() lastInputInfo = LASTINPUTINFO()