how to measure time between button down and button up?
Posted: 20 Jun 2019, 05:12
the thing is in (another) game, I wanna walk a certain distance down and then that same distance up again (cause that makes me exist and reenter the room, respawning stuff).
so since I cant measure distance I thought:
1. measure how much time the down button has to pressed (aka how long to walk down).
doing this manually, having some script measure the rough time betwenn me pressing the down arrow button and letting it go.
from the stuff here, I know that button down and button up are separate events, so that shouldnt be impossible
2. Automate the walking, aka pressing the down button the above time
pribably like
buttom down
sleep, t
button up
and do the same for upwards movement.
so yeah, i just need a thingie to count time between button events.
a timer or something that starts when I press the button down and stops when I let go of the button, msgboxing me the counted time.
any good function or something for that?
Edit: Aside from that, is there some good hotkey controlled timer availlable?
you know stop wathc style? I press b, it starts from 0.
pressing b stops the stop watch.
same as above, but triggered with a hotkey instead of an event/events
so since I cant measure distance I thought:
1. measure how much time the down button has to pressed (aka how long to walk down).
doing this manually, having some script measure the rough time betwenn me pressing the down arrow button and letting it go.
from the stuff here, I know that button down and button up are separate events, so that shouldnt be impossible
2. Automate the walking, aka pressing the down button the above time
pribably like
buttom down
sleep, t
button up
and do the same for upwards movement.
so yeah, i just need a thingie to count time between button events.
a timer or something that starts when I press the button down and stops when I let go of the button, msgboxing me the counted time.
any good function or something for that?
Edit: Aside from that, is there some good hotkey controlled timer availlable?
you know stop wathc style? I press b, it starts from 0.
pressing b stops the stop watch.
same as above, but triggered with a hotkey instead of an event/events