Jump to content

Disable Keys


Recommended Posts

this script:

HotKeySet("{LCTRL}", "DoNothing")
HotKeySet("{RCTRL}", "DoNothing")
HotKeySet("a", "DoNothing")
HotKeySet("{ENTER}", "DoNothing")

While 1
    Sleep(10)
WEnd

Func DoNothing()
EndFunc

it disable the key LCTRL, RCTRL, ENTER and A

but why is it that pressing A or ENTER while holding the LCTRL or RCTRL down still sends A or ENTER?

i play need for speed underground 2, and it does.. is there a way to disable hotkey ctrl+a or ctrl+enter?

any ideas? thanks guys.... :think:

Umbrella Member

Link to comment
Share on other sites

this script:

HotKeySet("{LCTRL}", "DoNothing")
HotKeySet("{RCTRL}", "DoNothing")
HotKeySet("a", "DoNothing")
HotKeySet("{ENTER}", "DoNothing")

While 1
    Sleep(10)
WEnd

Func DoNothing()
EndFunc

it disable the key LCTRL, RCTRL, ENTER and A

but why is it that pressing A or ENTER while holding the LCTRL or RCTRL down still sends A or ENTER?

i play need for speed underground 2, and it does.. is there a way to disable hotkey ctrl+a or ctrl+enter?

any ideas? thanks guys.... :think:

you would probably be better off using _IsPressed, otherwise I believe you'll need to use all combinations of the keys you don't want to use.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...