Advertisement
jeffharbert

Simulate CTRL+Home on a double right-click

Apr 11th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RButton::
  2. if (A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 500)
  3. {
  4. ;The sleep commands simulate something closer to human input and avoid keys being unprocessed from going too fast
  5. Sleep 150
  6. Send {Ctrl Down}
  7. Sleep 150
  8. Send {Home}
  9. Sleep 150
  10. Send {Ctrl Up}
  11. Sleep 150
  12. }
  13. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement