mausuHoldo: latest stable
This commit is contained in:
parent
aebeb177c4
commit
c2ee3a02b6
1 changed files with 19 additions and 11 deletions
|
|
@ -1,16 +1,24 @@
|
|||
#MaxThreadsPerHotkey 2
|
||||
#HotkeyInterval 10000
|
||||
#MaxHotkeysPerInterval 9999
|
||||
#NoEnv
|
||||
;;Process, Priority, , R
|
||||
;;DllCall("mouse_event", "UInt", 1, "UInt", (rightMov + lefMov) , "UInt", upMov + downMov )
|
||||
|
||||
;;WINDOOOOOOOOOOOOOOOOOOOOOOOOOOOOOWS y ahk unaware del futuro de los escritorios
|
||||
;;https://www.autohotkey.com/boards/viewtopic.php?t=97706
|
||||
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
|
||||
|
||||
;;DllCall("QueryPerformanceCounter", "Int64*", baseTime)
|
||||
;;DllCall("QueryPerformanceCounter", "Int64*", currentTime)
|
||||
;;DllCall("QueryPerformanceFrequency", "Int64*", updateRate)
|
||||
;;updateRate := updateRate / 1000
|
||||
;;currentTime := currentTime / 1.0
|
||||
;;baseTime := baseTime / 1.0
|
||||
freqUpdater := DllCall("GetProcAddress", "Ptr" , DllCall("GetModuleHandle", "Str", "kernel32", "Ptr"), "AStr", "QueryPerformanceCounter", "Ptr")
|
||||
;;VarSetCapacity(baseTime, 2334423432128)
|
||||
;;VarSetCapacity(currentTime, 423523423128)
|
||||
|
||||
DllCall(freqUpdater, "Int64*" , baseTime)
|
||||
DllCall(freqUpdater, "Int64*" , currentTime)
|
||||
DllCall("QueryPerformanceFrequency", "Int64*", updateRate)
|
||||
updateRate := updateRate / 1000
|
||||
currentTime := currentTime ;;/ 1.0
|
||||
baseTime := baseTime ;;/ 1.0
|
||||
|
||||
mouseActive := 0
|
||||
|
||||
|
|
@ -67,12 +75,12 @@ Loop
|
|||
rBtnHold := 0
|
||||
break
|
||||
}
|
||||
;;DllCall("QueryPerformanceCounter", "Int64*", currentTime)
|
||||
;;if (currentTime - baseTime >= updateRate)
|
||||
;;{
|
||||
DllCall(freqUpdater, "Int64*", currentTime)
|
||||
if (currentTime - baseTime >= updateRate)
|
||||
{
|
||||
mouseMovement(lefMov, rightMov, upMov, downMov, mouseSpeed)
|
||||
baseTime := currentTime
|
||||
;;}
|
||||
}
|
||||
}
|
||||
return
|
||||
#if
|
||||
|
|
@ -106,7 +114,7 @@ $sc027::
|
|||
}
|
||||
return
|
||||
sc027 Up::
|
||||
if (mouseActive == 1)
|
||||
if (mouseActive == 1)
|
||||
{
|
||||
rightMov := 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue