[repost] SendInput, {Shift}{Shift} in IntelliJ is not working

Get help with using AutoHotkey and its commands and hotkeys
av930
Posts: 24
Joined: 24 Dec 2017, 10:21

[repost] SendInput, {Shift}{Shift} in IntelliJ is not working

19 Feb 2018, 19:21

Hello there.
I am using Intellij editor.

I remapped default shortcut by my own
However, only "Search Everywhere key" emulation is not working.
"Search Everywhere key" shortcut is {Shift}{Shift}.


#Z::
SendInput, {Shift}{Shift}

please give me advice. if you are using Intellij.
Last edited by av930 on 24 Feb 2018, 12:03, edited 1 time in total.
User avatar
RunarSF
Posts: 27
Joined: 01 Jul 2017, 11:48
GitHub: RunarSF
Location: Norway
Contact:

Re: SendInput, {Shift}{Shift} in IntelliJ is not working

22 Feb 2018, 09:21

Can't really test it, as I'm not using IntelliJ, but you should be able to just change the sleep value to change how fast the second shift key is pressed.

Code: Select all

#SingleInstance, Force ; Skips replace dialog
#Z::
	SendInput, {Shift}
	sleep, 50
	SendInput, {Shift}
return
There are two kinds of people in the world: those who can extrapolate from incomplete data.
av930
Posts: 24
Joined: 24 Dec 2017, 10:21

Re: SendInput, {Shift}{Shift} in IntelliJ is not working

24 Feb 2018, 12:00

Sorry for my late response,
I have already done it. it is no use.
For other shortcut, it works.
only {shift}{shift} has problem
User avatar
evilC
Posts: 4359
Joined: 27 Feb 2014, 12:30

Re: [repost] SendInput, {Shift}{Shift} in IntelliJ is not working

01 Mar 2018, 10:50

SendInput presses the key and then releases it immediately, which some apps do not like.
Use Send instead, along with SetKeyDelay to control how long the key is held

Code: Select all

SetKeyDelay, 0, 50
#Z::
	Send {Shift}
	sleep, 50
	Send {Shift}
return
When you see the line SendMode Input ; Recommended for new scripts due to its superior speed and reliability in new AHK scripts - if you are using it for a game, ignore it, SendInput is the absolute last thing you want.
av930
Posts: 24
Joined: 24 Dec 2017, 10:21

Re: [repost] SendInput, {Shift}{Shift} in IntelliJ is not working

01 Mar 2018, 19:57

Ok. thanks, but it is no use. Maybe Intellij has special method for checking key press
I just close this issue..
Anyway thankful for your advice

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], blad4, Google [Bot], Sabestian Caine and 45 guests