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
|
#MaxThreadsPerHotkey 2
|
||||||
#HotkeyInterval 10000
|
#HotkeyInterval 10000
|
||||||
#MaxHotkeysPerInterval 9999
|
#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
|
;;WINDOOOOOOOOOOOOOOOOOOOOOOOOOOOOOWS y ahk unaware del futuro de los escritorios
|
||||||
;;https://www.autohotkey.com/boards/viewtopic.php?t=97706
|
;;https://www.autohotkey.com/boards/viewtopic.php?t=97706
|
||||||
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
|
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
|
||||||
|
|
||||||
;;DllCall("QueryPerformanceCounter", "Int64*", baseTime)
|
freqUpdater := DllCall("GetProcAddress", "Ptr" , DllCall("GetModuleHandle", "Str", "kernel32", "Ptr"), "AStr", "QueryPerformanceCounter", "Ptr")
|
||||||
;;DllCall("QueryPerformanceCounter", "Int64*", currentTime)
|
;;VarSetCapacity(baseTime, 2334423432128)
|
||||||
;;DllCall("QueryPerformanceFrequency", "Int64*", updateRate)
|
;;VarSetCapacity(currentTime, 423523423128)
|
||||||
;;updateRate := updateRate / 1000
|
|
||||||
;;currentTime := currentTime / 1.0
|
DllCall(freqUpdater, "Int64*" , baseTime)
|
||||||
;;baseTime := baseTime / 1.0
|
DllCall(freqUpdater, "Int64*" , currentTime)
|
||||||
|
DllCall("QueryPerformanceFrequency", "Int64*", updateRate)
|
||||||
|
updateRate := updateRate / 1000
|
||||||
|
currentTime := currentTime ;;/ 1.0
|
||||||
|
baseTime := baseTime ;;/ 1.0
|
||||||
|
|
||||||
mouseActive := 0
|
mouseActive := 0
|
||||||
|
|
||||||
|
|
@ -67,12 +75,12 @@ Loop
|
||||||
rBtnHold := 0
|
rBtnHold := 0
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
;;DllCall("QueryPerformanceCounter", "Int64*", currentTime)
|
DllCall(freqUpdater, "Int64*", currentTime)
|
||||||
;;if (currentTime - baseTime >= updateRate)
|
if (currentTime - baseTime >= updateRate)
|
||||||
;;{
|
{
|
||||||
mouseMovement(lefMov, rightMov, upMov, downMov, mouseSpeed)
|
mouseMovement(lefMov, rightMov, upMov, downMov, mouseSpeed)
|
||||||
baseTime := currentTime
|
baseTime := currentTime
|
||||||
;;}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
#if
|
#if
|
||||||
|
|
@ -106,7 +114,7 @@ $sc027::
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
sc027 Up::
|
sc027 Up::
|
||||||
if (mouseActive == 1)
|
if (mouseActive == 1)
|
||||||
{
|
{
|
||||||
rightMov := 0
|
rightMov := 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue