Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 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.  
  6. ^!n::
  7. IfWinExist Untitled - Notepad
  8. WinActivate
  9. else
  10. Run Notepad
  11. #InstallKeybdHook
  12. #UseHook On
  13. toggle = 0
  14. #MaxThreadsPerHotkey 2
  15.  
  16. F8::
  17. Toggle := !Toggle
  18. While Toggle{
  19. Click
  20. Send {Enter}
  21. sleep 100
  22. }
  23. return
  24.  
  25. Esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement