Search code examples
windows-10autohotkey

Version 2 of AutoHotkey. how do I use the Ctrl and Z keys to perform the action of pressing the p key after right mouse click?


Version 2 of AutoHotkey. how do I use the Ctrl and Z keys to perform the action of pressing the p key after right mouse click?

I tried, but the code gives me an error.

<^z::+F10 & p

OS windows10


Solution

  • You need to use Send

    <^z::SendInput, +{F10}p
    

    or

    <^z::SendInput, {RButton}p