Code: Select all
Click, 1217, 462, 0 Send, {LShift Up}
Sleep, 15
Click, 1218, 461, 0
Sleep, 47
Click, WheelUp
Sleep, 47
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Code: Select all
Click, 1217, 462, 0 Send, {LShift Up}
Sleep, 15
Click, 1218, 461, 0
Sleep, 47
Click, WheelUp
Sleep, 47
Code: Select all
#InstallKeybdHook
#InstallMouseHook
Click, 1217, 462, 0 Send, {LShift Up}
Sleep, 15
Click, 1218, 461, 0
Sleep, 47
Click, WheelUp
Sleep, 47
KeyHistory
Code: Select all
*LShift::TimerOn("Continous_scroll_wheel_input", 200) ; every 200 ms
*LShift Up::TimerOff("Continous_scroll_wheel_input")
Continous_scroll_wheel_input:
Click, 1217, 462, 0
Sleep, 15
Click, 1218, 461, 0
Sleep, 47
Click, WheelUp
Return
TimerOn(Label, Period, Instantly := True ){
Global
If (%Label%)
Return
SetTimer,% Label,% %Label% := Period
IF Instantly
Gosub, %Label%
}
TimerOff(Label){
SetTimer,% Label, Delete,% %Label% := False
}
Code: Select all
#Persistent ; Keep the script running
toggle := false
paused := false
F12:: ; Toggle key
toggle := !toggle
if (toggle)
{
WinActivate, Minecraft* 1.20.4 - Singleplayer ahk_class GLFW30
while (toggle)
{
if (paused)
{
Sleep, 100
continue
}
Code: Select all
; #Persistent ; not necessary as Hotkeys are in the script
toggle := false
paused := false
F12::SetTimer, Minecraft,% (toggle:=!toggle)?100:"Off" ;toggles: every 100 ms/off
Minecraft:
WinActivate, Minecraft* 1.20.4 - Singleplayer ahk_class GLFW30
if (paused)
Return
...
When you hold down the scroll wheel, a single MButton Click is sent, not multiple WheelUps!hold down the scroll wheel so that it delivers constant scrollwheel up input like a real person and not just a bunch of singular scrolls
Users browsing this forum: No registered users and 48 guests