Hold down key and modifier

Get help with using AutoHotkey and its commands and hotkeys
Shade4Real1111

Hold down key and modifier

20 Jun 2018, 00:43

I am trying to send 81Xm down for 300 miliseconds but I cant get it to capitalize X
I know i can do sendinput, X but i want it to be held down

Code: Select all

Sendinput, {8 down}
Sendinput, {1 down}
Sendinput, {Shift}{X down}
Sendinput, {m down}
sleep, 300
Sendinput, {8 up}
Sendinput, {1 up}
Sendinput, {Shift}{X up}
Sendinput, {m up}
Rohwedder
Posts: 1510
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Hold down key and modifier

20 Jun 2018, 11:35

Hallo,
perhaps??

Code: Select all

Sendinput, {8 down}
Sendinput, {1 down}
Sendinput, {Shift down}{x down}{Shift up}
Sendinput, {m down}
sleep, 300
Sendinput, {8 up}
Sendinput, {1 up}
Sendinput, {x up}
Sendinput, {m up}
User avatar
jeeswg
Posts: 5413
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Hold down key and modifier

20 Jun 2018, 14:47

Perhaps:

Code: Select all

SendInput, {Text}X ;requires AHK v1.1.27+

Return to “Ask For Help”

Who is online

Users browsing this forum: 8bitgunny, Bing [Bot], Forcea, Google [Bot], hanslhansl, ineuw, Mipha, swagfag, vvhitevvizard and 95 guests