Advertisement
EzFlow997

LettuceIsPog Example v2

Mar 3rd, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 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, M, ExecuteMacroOne
  19.  
  20. Exit(){
  21. Send {w Up} + {d Up}
  22. MouseClick, Left,,,,,U
  23. ;Send {LShift Up}
  24. ExitApp
  25. }
  26.  
  27. ExecuteMacroOne(){
  28. Send {w Down} + {d Down}
  29. MouseClick, Left,,,,,D
  30. ;Send {LShift Down}
  31. ;Tooltip, Active
  32.  
  33. Sleep, 250
  34. KeyWait, M, D
  35.  
  36. Send {w Up} + {d Up}
  37. MouseClick, Left,,,,,U
  38. ;Send {LShift Up}
  39. ;Tooltip, Not Active
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement