Advertisement
Guest User

autohotkey right click = alt script

a guest
Mar 29th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Installkeybdhook
  2. #IfWinActive, ahk_class Photoshop
  3. RButton::
  4. GetKeyState, state, LAlt
  5. if state = U
  6. {
  7. SendInput {LAlt down}{LButton down}
  8. return
  9. }
  10. else {
  11. SendInput {]}
  12. return
  13. }
  14. ~RButton Up::
  15. GetKeyState, state, LAlt
  16. if state = D
  17. {
  18. Sendinput {LAlt up}{LButton up}
  19. }
  20. #IfWinActive
  21.  
  22. #IfWinActive, CLIP STUDIO PAINT
  23. RButton::
  24. GetKeyState, state, LAlt
  25. if state = U
  26. {
  27. SendInput {LAlt down}{LButton down}
  28. return
  29. }
  30. else {
  31. SendInput {]}
  32. return
  33. }
  34. ~RButton Up::
  35. GetKeyState, state, LAlt
  36. if state = D
  37. {
  38. Sendinput {LAlt up}{LButton up}
  39. }
  40. #IfWinActive
  41. ;esc::exitapp   ; press escape key to exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement