From 15db1d8c80426edf3cf2f79d2e5b9f1eb1c25457 Mon Sep 17 00:00:00 2001 From: aviaryan Date: Thu, 31 Mar 2016 11:52:09 +0530 Subject: [PATCH] attempt to fix #114 using GetTickCount64 --- Clipjump.ahk | 4 ++-- lib/anticj_func_labels.ahk | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Clipjump.ahk b/Clipjump.ahk index e38c14d..961697c 100644 --- a/Clipjump.ahk +++ b/Clipjump.ahk @@ -405,8 +405,8 @@ onClipboardChange: if !startUpComplete ;if not started, not allow - after onclipboard=1 as the purpose of onc is served return ; check for machine-done clipboard manipulations - timeDiff := A_TickCount - lastClipboardTime - lastClipboardTime := A_TickCount + timeDiff := TickCount64() - lastClipboardTime + lastClipboardTime := TickCount64() if (timeDiff < 200){ return } diff --git a/lib/anticj_func_labels.ahk b/lib/anticj_func_labels.ahk index c638247..995ee36 100644 --- a/lib/anticj_func_labels.ahk +++ b/lib/anticj_func_labels.ahk @@ -664,6 +664,13 @@ fillwithSpaces(text="", limit=35){ return text r } +/** + * TickCount in 64 bit precision + */ +TickCount64(){ + return DllCall("GetTickCount64", "Cdecl UInt64") +} + /* SuperInstr() Returns min/max position for a | separated values of Needle(s)