Code: Select all
AnyPressedKey() {
Loop 256
if GetKeyState(Format("vk{:x}", A_Index-1),"P")
return GetKeyName(Format("vk{:x}",A_Index-1))
return 0
}
Code: Select all
AnyPressedKey() {
Loop 256
if GetKeyState(Format("vk{:x}", A_Index-1),"P")
return GetKeyName(Format("vk{:x}",A_Index-1))
return 0
}
Code: Select all
Key := AnyPressedKey()
Code: Select all
MsgBox, % "Pressed key: " AnyPressedKey()
Users browsing this forum: inseption86, mikeyww and 405 guests