﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3990	"_IsPressed() add ""indicate whether the key has been pressed since the last query"""	argumentum	Jpm	"{{{
Func _IsPressed($sHexKey, $vDLL = ""user32.dll"")
    Local $aCall = DllCall($vDLL, ""short"", ""GetAsyncKeyState"", ""int"", ""0x"" & $sHexKey)
    If @error Then Return SetError(@error, @extended, False)
    Return SetError(0, $aCall[0] = 0xFFFF8000, BitAND($aCall[0], 0x8000) <> 0)
EndFunc   ;==>_IsPressed
}}}
The change adds some extra information that I found was needed using a Bluetooth headset. The chatter about its use is at [https://www.autoitscript.com/forum/topic/211304-getasynckeystate-_ispressed-vs-the-bluetooth-headset-now-fight/] .
Does not brake prior script code."	Feature Request	closed	3.3.17.0	AutoIt		None	Completed	GetAsyncKeyState,_IsPressed()	
