Arez Posted March 19, 2006 Share Posted March 19, 2006 How would you go about disabling a certain button on the keyboard? Been searching but couldn't find it Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 19, 2006 Share Posted March 19, 2006 (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 March 19, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
Arez Posted March 19, 2006 Author Share Posted March 19, 2006 (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 March 19, 2006 by Arez Link to comment Share on other sites More sharing options...
Andrew Sparkes Posted March 19, 2006 Share Posted March 19, 2006 What minimize key? There is no minimize key on any keyboard I've seen.... ---Sparkes. Link to comment Share on other sites More sharing options...
Arez Posted March 19, 2006 Author Share Posted March 19, 2006 (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 March 19, 2006 by Arez Link to comment Share on other sites More sharing options...
Andrew Sparkes Posted March 19, 2006 Share Posted March 19, 2006 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. Link to comment Share on other sites More sharing options...
greenmachine Posted March 19, 2006 Share Posted March 19, 2006 If you're still talking about Diablo II (which I believe you are), use WinSetOnTop. Link to comment Share on other sites More sharing options...
Arez Posted March 19, 2006 Author Share Posted March 19, 2006 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 Link to comment Share on other sites More sharing options...
Andrew Sparkes Posted March 19, 2006 Share Posted March 19, 2006 If you are disabling all the keys and mouse movements, just use BlockInput(1) ... ---Sparkes. Link to comment Share on other sites More sharing options...
Arez Posted March 19, 2006 Author Share Posted March 19, 2006 I tried BlockInput(1) in an au3 file and it didn't work what am I doing wrong? Link to comment Share on other sites More sharing options...
theguy0000 Posted March 19, 2006 Share Posted March 19, 2006 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 rightHotKeySet("/", "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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now