Advertisement
EzFlow997

NoelleEvilyn Example

Mar 3rd, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5. #SingleInstance Force
  6. ;#NoTrayIcon
  7. SetBatchLines, -1
  8. SetKeyDelay, -1, 1
  9. SetControlDelay, -1
  10. SetMouseDelay, -1
  11. SetWinDelay, -1
  12. SetBatchLines, -1
  13. ListLines, Off
  14. PID := DllCall("GetCurrentProcessId")
  15. Process, Priority, %PID%, High
  16.  
  17. Hotkey, ^1, Exit
  18. Hotkey, ^2, ToggleOn
  19. Hotkey, ^3, ToggleOff
  20.  
  21. Exit(){
  22. ExitApp
  23. }
  24.  
  25. global toggle := 0
  26. global count := 0
  27. global ticks := 0
  28.  
  29. ToggleOn(){
  30. if(toggle = 0){
  31. toggle := 1
  32. Start()
  33. }
  34. }
  35.  
  36. ToggleOff(){
  37. if(toggle = 1){
  38. toggle := 0
  39. }
  40. }
  41.  
  42. Start(){
  43. While(toggle = 1){
  44. Send {Space Down}
  45. startTime := A_TickCount
  46. While(A_TickCount - startTime <= 921){
  47. ticks := A_TickCount - startTime
  48. }
  49. Send {Space Up}
  50. ;count++
  51. ;Tooltip, %toggle%`n%count%`n%ticks%
  52. }
  53. }
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement