hi all, new to ahk. i am trying to send shift key plus p key by pressing only one key. not a shifted, capital p, want to send shift and p key.
i tried a few different things but the syntax is new to me.
thanks!
send shift plus key on one keystroke Topic is solved
Re: send shift plus key on one keystroke
Like this:
If you want to use some other commands using the same key, then you'd do something like this:
Tutorial:
AutoHotkey beginner tutorial
Relevant:
Hotkeys
KeyList
Code: Select all
a::Send {Shift}{p}
Code: Select all
a::
Send {Shift}{p}
MsgBox, You pressed Shift + p
; More commands...
Return
AutoHotkey beginner tutorial
Relevant:
Hotkeys
KeyList
Re: send shift plus key on one keystroke
"send shift and p key"d8thstar wrote:hi all, new to ahk. i am trying to send shift key plus p key by pressing only one key. not a shifted, capital p, want to send shift and p key.
i tried a few different things but the syntax is new to me.
thanks!
Do you mean you want to press AND RELEASE shift, then send p, or do you mean Press shift, send p, release shift?
There is zero difference between sending capital P and holding shift plus sending lower case p.
ie there is no such thing as "Send upper case p". There is only "Hold shift and press p"
Who is online
Users browsing this forum: No registered users and 96 guests