Sign in to follow this  
Followers 0
Arez

Disable A Button On The Keyboard

11 posts in this topic

How would you go about disabling a certain button on the keyboard?

Been searching but couldn't find it

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Thi disable the letter s, don't know if possible with shift, ctrl, alt, and winkey..

HotKeySet("s","disable_s")
func disable_s()
    send("")
EndFunc

while 1
    sleep(100)
WEnd
Edited by slightly_abnormal

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

HotKeySet("{Esc}","disable_esc")

func disable_esc()

send("")

EndFunc

while 1

sleep(100)

WEnd

Edit: esc button disable works

How would you disable the minimize key?

Edited by Arez

Share this post


Link to post
Share on other sites

What minimize key? There is no minimize key on any keyboard I've seen....


---Sparkes.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

When you press the windows key (to the left of the alt button) it minimizes. What would I put in the code to specify the windows key?

Also, what would I use for the / key?

HotKeySet("/","disable_/)

func disable_/()

send("")

EndFunc

I don't think that's right

Edited by Arez

Share this post


Link to post
Share on other sites

The key code for slash is just "/", and the key code for the Win key is {#}, but when I test it, it doesn't work. The helpfile has a big long section on the send keys, check index for Send Key List, that should help...

Note: I don't think you can have a forward slash in your function name...


---Sparkes.

Share this post


Link to post
Share on other sites

If you're still talking about Diablo II (which I believe you are), use WinSetOnTop.

Share this post


Link to post
Share on other sites

Thanks, and is there any way to disable the left click on the mouse?

Also, I didn't understand WinSetOnTop even when I was in the help file

Share this post


Link to post
Share on other sites

If you are disabling all the keys and mouse movements, just use BlockInput(1) ...


---Sparkes.

Share this post


Link to post
Share on other sites

I tried BlockInput(1) in an au3 file and it didn't work

what am I doing wrong?

Share this post


Link to post
Share on other sites

When you press the windows key (to the left of the alt button) it minimizes. What would I put in the code to specify the windows key?

Also, what would I use for the / key?

HotKeySet("/","disable_/)

func disable_/()

send("")

EndFunc

I don't think that's right

HotKeySet("/", "bye_bye_slash")
Func bye_bye_slash()
Send ("")
EndFunc
While 1
Sleep (100)
WEnd

:)


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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