Difference between revisions of "DisableKey"
no edit summary
imported>WereWolf |
imported>WereWolf |
||
Line 1: | Line 1: | ||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | ||
'''Syntax:''' | '''Syntax:''' | ||
DisableKey | (nothing) DisableKey dxScanCode:long | ||
Prevents the use a given button. Use [[EnableKey]] to turn it off. | Prevents the use a given button. Use [[EnableKey]] to turn it off. | ||
==Examples== | ==Examples== | ||
DisableKey 20 ;T | DisableKey 20 ;T | ||
Line 15: | Line 12: | ||
==Notes== | ==Notes== | ||
*DirectX scancodes are typically in hexadecimal, but this function takes decimal values. | *DirectX scancodes are typically in hexadecimal, but this function takes decimal values. | ||
*As well as the normal DX scancodes, you can use the numbers 256 to 263 to stop mouse button presses, and also 264 and 265 for mouse wheel movement. | *As well as the normal DX scancodes, you can use the numbers 256 to 263 to stop mouse button presses, and also 264 and 265 for mouse wheel movement. | ||
Line 23: | Line 19: | ||
==See Also== | ==See Also== | ||
*[[EnableKey]] | *[[EnableKey]] | ||
[[Category: Functions]] | [[Category: Functions]] |