Can't Solve Sticking Modifier Keys

Get help with using AutoHotkey and its commands and hotkeys
User avatar
LanceDaoust
Posts: 9
Joined: 06 Jan 2017, 14:14
Facebook: http://fb.com/lancedaoust
Location: Canada
Contact:

Can't Solve Sticking Modifier Keys

11 Jan 2017, 11:53

I have several scripts that are very basic, but the modifier keys get stuck in the down position. It seems that sometimes a key that was not even used gets stuck, like ALT or SHIFT when I used CTRL.

I've looked this up already and found numerous solutions that all have zero impact. I'll list them here:

Code: Select all

;--- PREVENT KEYS STICKING ---;
	Sleep, 50
	#HotkeyModifierTimeout 100
;--- /PREVENT KEYS STICKING ---;

Code: Select all

;--- PREVENT KEYS STICKING ---;
	KeyList := "Shift|Win|CTRL|alt|Escape|ScrollLock|CapsLock|NumLock|Tab"
	Loop, Parse, KeyList, |
	{
		If GetKeystate(A_Loopfield, "P")
			Send % "{" A_Loopfield " Up}"
	}
	reload
;--- /PREVENT KEYS STICKING ---;

Code: Select all

;--- PREVENT KEYS STICKING ---;
	#HotkeyModifierTimeout 100
	Sleep, 50
	Send {CapsLock Up}
	Send {LWin Up}
	Send {Alt Up}
	Send {Ctrl Up}
	Send {Shift Up}
;--- /PREVENT KEYS STICKING ---;

Code: Select all

#InstallKeybdHook ; Added at the start, or end, of a script
The scripts I am writing are super-basic, things like converting OneNote ribbon mouse clicks into keyboard shortcuts.

Because I cannot make ANYTHING work, I am left thinking that this is because my installation of Win7 is through VMware Fusion. Somehow virtualizing Windows has made AHK clunky, because the Run, command to launch a folder is a good 5 to 10 second delay from the moment of key press to the moment the folder opens. When I was working in Win7 natively there was no delay.
THIS IS ME: :wtf:

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], paik1002, roysubs and 109 guests