Sign in to follow this  
Followers 0
ihenvyr

Disable Keys

4 posts in this topic

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

Share this post


Link to post
Share on other sites



maybe

HotKeySet("^a", "DoNothing")

8)


NEWHeader1.png

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

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.

thank you very much.. :think:


Umbrella Member

Share this post


Link to post
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
Sign in to follow this  
Followers 0