Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timeCheckDelay := 922 // time delay in ms
- Start(){
- While(toggle = 1){
- Send {Space Down}
- DllCall("QueryPerformanceFrequency", "Int64*", freq) // initialize Performance Frequency value to Variable
- DllCall("QueryPerformanceCounter", "Int64*", CounterBefore) // initialize Performance Counter value to Variable
- DllCall("QueryPerformanceCounter", "Int64*", CounterAfter) // initialize Performance Counter value to Variable
- While((CounterAfter - CounterBefore) / freq * 1000 <= timeCheckDelay){ // waits for 922 ms
- DllCall("QueryPerformanceCounter", "Int64*", CounterAfter) // updates CounterAfter value
- }
- Send {Space Up}
- ;Debug()
- }
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement