[Question] Hold modifier keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SashaChernykh
Posts: 32
Joined: 01 Sep 2016, 04:04
Contact:

[Question] Hold modifier keys

24 Oct 2017, 06:27

1. Briefly

I don't understand, how I can make these actions:
  • hold modifier keys,
  • print some symbols, when modifier keys hold,
  • drop modifier keys.
I need it, because I use Clipjump.

2. Expected behavior

Simply example:

Image

Ctrl DownVVCtrl Up.

3. Actual behavior

Part of my script:

Code: Select all

#t::
Send, {LCtrl Down}
Sleep, 1000
Send, {V}
Sleep, 1000
Send, {V}
Sleep, 1000
Send, {LCtrl Up}
return
Image

Ctrl DownVCtrl Up, Ctrl DownVCtrl Up.


4. Did not help
  1. In Google, I write queries, for example, autohotkey hold modifier keys, autohotkey hold ctrl, but I can get no answer to my question.
Thanks.
User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: [Question] Hold modifier keys

24 Oct 2017, 08:59

No sure that this alone will get it to work since there can be other factors, but there is no reason to put { } around the v key. And it shouldn't be a capital V because it would send a shift so it can send a capital V. Should be simply Send, v.
SashaChernykh
Posts: 32
Joined: 01 Sep 2016, 04:04
Contact:

Re: [Question] Hold modifier keys

24 Oct 2017, 12:41

boiler wrote:No sure that this alone will get it to work since there can be other factors, but there is no reason to put { } around the v key. And it shouldn't be a capital V because it would send a shift so it can send a capital V. Should be simply Send, v.
@boiler, I get the same result. See also.

Thanks.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: dipahk, Nerafius, RandomBoy and 189 guests