cr0x Posted February 22, 2006 Share Posted February 22, 2006 hi i searched with google but did not find any thing mayb some1 here knows if it is possible to disable keys on keyboard/mouse. Learning autoit since 18.02.06 Link to comment Share on other sites More sharing options...
Valuater Posted February 22, 2006 Share Posted February 22, 2006 whats the purpose?? 8) Link to comment Share on other sites More sharing options...
seandisanti Posted February 22, 2006 Share Posted February 22, 2006 hi i searched with google but did not find any thing mayb some1 here knows if it is possible to disable keys on keyboard/mouse. you can just set a hotkey that doesn't do anything. Link to comment Share on other sites More sharing options...
cr0x Posted February 22, 2006 Author Share Posted February 22, 2006 (edited) sometimes at night my cats walk or jump on my keyboard and cancel severel times any processes looks like this HotKeySet("{Esc}", "") Edited February 22, 2006 by cr0x Learning autoit since 18.02.06 Link to comment Share on other sites More sharing options...
Valuater Posted February 22, 2006 Share Posted February 22, 2006 (edited) sometimes at night my cats walk or jump on my keyboard and cancel severel times any processesThats funny... it is ONE of the same reasons i wrote thishttp://www.autoitscript.com/forum/index.ph...427&hl=VAULTER#8) Edited February 22, 2006 by Valuater Link to comment Share on other sites More sharing options...
gamerman2360 Posted February 22, 2006 Share Posted February 22, 2006 I would recommend getting a keyboard with a Fn key. Usually Fn+F11 disables the keyboard. That or unplug the keyboard when you leave. Also HotkeySet() dosn't work for the mouse. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 22, 2006 Moderators Share Posted February 22, 2006 I would recommend getting a keyboard with a Fn key. Usually Fn+F11 disables the keyboard. That or unplug the keyboard when you leave. Also HotkeySet() dosn't work for the mouse.That's when you used _IsPressed() Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
greenmachine Posted February 22, 2006 Share Posted February 22, 2006 That's when you used _IsPressed() Yeah, but _IsPressed doesn't steal keys (or mouseclicks) like HotKeySet, so when you click the mouse you'd still be getting the click plus the result of the _IsPressed. Link to comment Share on other sites More sharing options...
cr0x Posted February 23, 2006 Author Share Posted February 23, 2006 hm but HotKeySet("{ESC}", "a") does not work. if i try 2 start the script " Unknown function name.: HotKeySet("{ESC}", "a") " appears Learning autoit since 18.02.06 Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 23, 2006 Share Posted February 23, 2006 (edited) hm but HotKeySet("{ESC}", "a") does not work. if i try 2 start the script " Unknown function name.: HotKeySet("{ESC}", "a") " appears HI, you want something strange like HotKeySet("{ESC}", "a") while 1 sleep(100000000) WEnd Func a() ;MsgBox(0,"","jo") EndFunc ???? So long, Mega Edited February 23, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
JSThePatriot Posted February 23, 2006 Share Posted February 23, 2006 Has everyone forgotten or just dont know about BlockInput()? HotKeySet("^!s", "_Start");CTRL+ALT+s starts the block HotKeySet("^!x", "_End");CTRL+ALT+x ends the block HotKeySet("{ESC}", "_Exit");ESC exits the program While 1 Sleep(10) WEnd Func _Start() BlockInput(1) EndFunc Func _End() BlockInput(0) EndFunc Func _Exit() Exit EndFunc @Valuater If your code uses BlockInput ignore this post hehe. I hope the above helps with the situation, JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
=sinister= Posted February 23, 2006 Share Posted February 23, 2006 I don't like block input because it blocks your mouse too. It comes in handy every once in a while, but other than that, I don't like 100000 hotkeyset's in my scripts. Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 23, 2006 Share Posted February 23, 2006 (edited) HotKeySet("^!s", "_Start");CTRL+ALT+s starts the blockHotKeySet("^!x", "_End");CTRL+ALT+x ends the blockHotKeySet("{ESC}", "_Exit");ESC exits the programWhile 1 Sleep(10)WEndFunc _Start() BlockInput(1)EndFuncFunc _End() BlockInput(0)EndFuncFunc _Exit() ExitEndFuncHow should that (HotKeySet("^!x", "_End");CTRL+ALT+x ends the block) work if keybord is already blocked???? So long,Mega Edited February 23, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
BigDod Posted February 23, 2006 Share Posted February 23, 2006 (edited) CTRL+ALT+x does not unblock input as you cant input it. The only way to unblock input is to use CTRL+ALT+DEL as it says in the help file. EDIT - Too slow again. Edited February 23, 2006 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
JSThePatriot Posted February 23, 2006 Share Posted February 23, 2006 How should that (HotKeySet("^!x", "_End");CTRL+ALT+x ends the block) work if keybord is already blocked???? So long,MegaCTRL+ALT+x does not unblock input as you cant input it. The only way to unblock input is to use CTRL+ALT+DEL as it says in the help file.EDIT - Too slow again.You both caught me!! lol I cant believe I did that. haha@=sinister=I thought he wanted the mouse blocked as well.Anyways... use the CTRL+ALT+DEL to end the BlockInput JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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