Howdy,
Let's say i have a simple script. Press 'a' and it sends 'b' followed by 'c'.
But i want the mousewheel to adjust the Sleep time between b and c
a::
Send, {b}
Sleep 500
Send, {c}
Return
Wheel down::
>>>Somehow increase Sleep to 600, then 700, then 800, then 900 depending on how much i rotate it
Wheel up::
>>>Somehow decrease Sleep to 500, then 400, then 300, then 200 depending on how much i rotate it
Would appreciate if someone can figure this one out. Thank you very much!
[Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.]
Using mousewheel like an adjustor
Re: Using mousewheel like an adjustor
Code: Select all
#Requires AutoHotkey v1.1.33
wait := 400
low := 200
high := 900
incr := 100
Gosub WheelDown
WheelUp::
WheelDown::ToolTip % wait := Min(Max(wait + (InStr(A_ThisHotkey, "U") ? -incr : incr), low), high)
a::
Send b
Sleep wait
Send c
Return
-
- Posts: 5
- Joined: 17 Jun 2022, 06:14
Re: Using mousewheel like an adjustor
Mike, it worked to perfection.
Thank you very much!
Thank you very much!