Simple script lagging

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
HighArn
Posts: 17
Joined: 20 Oct 2021, 08:25

Simple script lagging

20 Oct 2021, 08:37

Hi i'm new here. Just hanging around and trying some scripts. All of them works fine but this little script that add to Space botton Shift function when it pressed -lagging. So problem with it that when i'm typing, letters sometimes appearing with latency, and typing is uncomfortable. I tried turning off all other scripts and living only this, but problem is same. Thanks for help.

Code: Select all

*Space::
	SendInput, {Shift Down}
	Key =
	Input, Key, V L1
Return
*Space Up::
	SendInput, {Shift Up}
	Input,,T.01
	If !Key
		SendInput, %A_Space%
Return
[Mod edit: [code][/code] tags added.]
User avatar
mikeyww
Posts: 26891
Joined: 09 Sep 2014, 18:38

Re: Simple script lagging

20 Oct 2021, 10:07

Could try instead:

Code: Select all

*Space::Send {Shift down}
*Space Up::Send % (A_PriorKey = "Space" ? " " : "") "{Shift up}"
HighArn
Posts: 17
Joined: 20 Oct 2021, 08:25

Re: Simple script lagging

20 Oct 2021, 10:58

mikeyww wrote:
20 Oct 2021, 10:07
Could try instead:

Code: Select all

*Space::Send {Shift down}
*Space Up::Send % (A_PriorKey = "Space" ? " " : "") "{Shift up}"
Same. Did it work for you normally? Maybe issue with my computer, is pretty old with intel 2500k, but all other scripts work just fine. But thank you for replying!
User avatar
mikeyww
Posts: 26891
Joined: 09 Sep 2014, 18:38

Re: Simple script lagging

20 Oct 2021, 11:26

It worked in my brief testing. You could try it on a different computer to see if you have any better luck.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: jameswrightesq and 297 guests