Advertisement
EzFlow997

HaraldWeedhair v2

Mar 11th, 2024 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #Requires AutoHotkey v2.0
  2. #InputLevel 1
  3. #SingleInstance Force
  4. PID := DllCall("GetCurrentProcessId")
  5. ProcessSetPriority "High", PID
  6.  
  7. Hotkey "^1", Exit
  8.  
  9. global G_Key := "g"
  10. global LControl_Key := "LCtrl"
  11.  
  12. g::PressKeyBindOneDown
  13. PressKeyBindOneDown(){
  14. DllCall("keybd_event", "UChar", GetKeyVK(LControl_Key), "UChar", GetKeySC(LControl_Key), "UInt", 0, "Ptr", 0)
  15. DllCall("keybd_event", "UChar", GetKeyVK(G_Key), "UChar", GetKeySC(G_Key), "UInt", 0, "Ptr", 0)
  16. }
  17. g up::PressKeyBindOneUp
  18. PressKeyBindOneUp(){
  19. DllCall("keybd_event", "UChar", GetKeyVK(LControl_Key), "UChar", GetKeySC(LControl_Key), "UInt", 2, "Ptr", 0)
  20. DllCall("keybd_event", "UChar", GetKeyVK(G_Key), "UChar", GetKeySC(G_Key), "UInt", 2, "Ptr", 0)
  21. }
  22.  
  23. Exit(ThisHotkey){
  24. ExitApp
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement