Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preventing Auto Key Repeat (spacebar)
#4
Function FilterKeysOnOff
Code:
Copy      Help
;/
function !on

;Turns on or off the "Filter keys" Windows accessibility feature.
;Does not change its parameters. You can change it in Control Panel.

;on - 1 on, 0 off.


FILTERKEYS f.cbSize=sizeof(f)
SystemParametersInfo SPI_GETFILTERKEYS 0 &f 0
if on
,if(f.dwFlags&FKF_FILTERKEYSON) ret
,f.dwFlags|FKF_FILTERKEYSON
else
,if(f.dwFlags&FKF_FILTERKEYSON=0) ret
,f.dwFlags~FKF_FILTERKEYSON
SystemParametersInfo SPI_SETFILTERKEYS 0 &f 0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)