send shift plus key on one keystroke Topic is solved

Ask gaming related questions (AHK v1.1 and older)
d8thstar

send shift plus key on one keystroke  Topic is solved

20 Mar 2018, 19:48

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!
User avatar
Cuadrix
Posts: 236
Joined: 07 May 2017, 08:26

Re: send shift plus key on one keystroke

20 Mar 2018, 20:25

Like this:

Code: Select all

a::Send {Shift}{p}
If you want to use some other commands using the same key, then you'd do something like this:

Code: Select all

a::
Send {Shift}{p}
MsgBox, You pressed Shift + p
; More commands...
Return
Tutorial:
AutoHotkey beginner tutorial

Relevant:
Hotkeys
KeyList
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: send shift plus key on one keystroke

21 Mar 2018, 13:02

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!
"send shift and p key"
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"

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: aaa666 and 50 guests