Skip to content

Commit

Permalink
attempt to fix #114 using GetTickCount64
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaryan committed Mar 31, 2016
1 parent cff9a2c commit 15db1d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Clipjump.ahk
Expand Up @@ -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
}
Expand Down
7 changes: 7 additions & 0 deletions lib/anticj_func_labels.ahk
Expand Up @@ -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)
Expand Down

0 comments on commit 15db1d8

Please sign in to comment.