Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

shift key gets virtually stuck held down while using a script...


  • Please log in to reply
7 replies to this topic
skunk1724
  • Members
  • 9 posts
  • Last active: Oct 28 2015 03:50 PM
  • Joined: 09 Oct 2015

hello i have a weird problem i started experiencing shortly after i started using some of my scripts..

they dont have much to do with the key itself rather then makeing it a press a different button

thats one of my scripts:

LShift::'

RButton::
While getkeyState("RButton", "P") 
{
	Send 1{RButton}2
}
return

they are all pretty much like this with small tweaks and im using just one of those at a time, but when i do after a few minuts the shift key decides it needs to be held down... constantly untill i physically press to release it and its very annoying.

now i disabled sticky keys and anything i could find in keyboard options... its a standard simple microsoft keyboard.

im pretty sure the keyboard is good, i tried to run with a different keyboard and the resaults are the same.

 

any idea why my shift key misbehaves?

thanks.



SkrillexAkaCraft
  • Members
  • 45 posts
  • Last active: Jan 04 2018 06:02 PM
  • Joined: 04 Feb 2015

have you tried with a method like this Send {Up Down}   ?



skunk1724
  • Members
  • 9 posts
  • Last active: Oct 28 2015 03:50 PM
  • Joined: 09 Oct 2015

i kinda isolated the problem... if i dont use the LShift::' it doesnt happen... so... i still need to use it xD any other method of doing that same function in a different way?

and what do you mean {up down}?? sorry im very new to AHK :p

like this ?

LShift::{' down}
        {' up}

update: well that ^ doesnt work... any ideas then?



SkrillexAkaCraft
  • Members
  • 45 posts
  • Last active: Jan 04 2018 06:02 PM
  • Joined: 04 Feb 2015

i kinda isolated the problem... if i dont use the LShift::' it doesnt happen... so... i still need to use it xD any other method of doing that same function in a different way?

and what do you mean {up down}?? sorry im very new to AHK :p

like this ?

LShift::{' down}
        {' up}

update: well that ^ doesnt work... any ideas then?

no its like this send {LSHIFT Down}

sleep 100 

send {LSHIFT UP}



skunk1724
  • Members
  • 9 posts
  • Last active: Oct 28 2015 03:50 PM
  • Joined: 09 Oct 2015

but i want to hotkey to be the Lshift i dont want to actually send a Lshift... i mean i want to click Lshift and recieve this ' ...

i tried to do Lshift down::'   but apparently you cant do that lol :p



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

This code below doesn't really solve it, but should quickly release LShift if it's still down

 

LShift::
Send '
KeyWait, LShift, T1
If ErrorLevel ; if LShift is still down
   Send {LShift Up}
return

 

KeyWait

 

It is untested code, and it may not have the same benefits of a remap for you.



skunk1724
  • Members
  • 9 posts
  • Last active: Oct 28 2015 03:50 PM
  • Joined: 09 Oct 2015

tried it and it still happends... i still need to physically press shift again to release it.. >,< any other ideas?

for some reason its even more frequently happening while keywait thingy is on and i tried putting but {Lshift down}, {Lshift up} as well and it doesnt work..

ok i figured out what happend... i can trigger this error by trying to push both hotkeys i made at the same time... how do i fix this? :S



skunk1724
  • Members
  • 9 posts
  • Last active: Oct 28 2015 03:50 PM
  • Joined: 09 Oct 2015

any ideas how to make two remaps i made not work at the same time maybe? that might solve it but i have no idea how to begin doing it

help would be greatly appreciated!