not-me Posted December 19, 2006 Posted December 19, 2006 Please i want to find a way to disable the keyboard only if something has changed in a region then unlock the keyboard again if the region become as it was. Thanks all
Paulie Posted December 19, 2006 Posted December 19, 2006 Please i want to find a way to disable the keyboard only if something has changed in a region then unlock the keyboard again if the region become as it was. Thanks allYou can "Hotkeyset" all of your keys to a blank Functon. Then Bind them to nothing to re-enable them. Like this HotKeySet("a","Lame_Func") While 1 Sleep(100) WEnd Func Lame_Func() ToolTip("Your 'A' Key Won't Type") EndFunc
not-me Posted December 19, 2006 Author Posted December 19, 2006 Thanks paulie, but it dosnt meet what i want. I want to disable all the keyboard if a region change and unlock the keyboard again if the region back as it was (by checking the PixelChecksum every 1 sec for example). Any idea plz?
mikehunt114 Posted December 19, 2006 Posted December 19, 2006 Did you try Paulie's suggestion? I don't see why it wouldn't apply. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
James Posted December 19, 2006 Posted December 19, 2006 You can make it do more than one function at a time you know. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
theguy0000 Posted December 19, 2006 Posted December 19, 2006 have you even TRIED? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
James Posted December 19, 2006 Posted December 19, 2006 me? I know I tried because I can use functions etc. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Qsr Nrwn Posted December 19, 2006 Posted December 19, 2006 Perhaps it will help you (www.dx21.com), search for disable keyboard... Rev 127 Et factum et prælium magnum in cælo: Michaël et angeli ejus præliabantur cum dracone, et draco pugnabat, et angeli ejus: 8 et non valuerant, neque locus inventus est eorum amplius in cælo.9 Et projectus est draco ille magnus, serpens antiquus, qui vocatur diabolus, et Satanas, qui seducit universum orbem: et projectus est in terram, et angeli ejus cum illo missi sunt.
herewasplato Posted December 19, 2006 Posted December 19, 2006 http://www.autoitscript.com/forum/index.ph...st&p=269719 [size="1"][font="Arial"].[u].[/u][/font][/size]
not-me Posted December 19, 2006 Author Posted December 19, 2006 i tried the code in the 1st comment but it is long to disable all the keys using the hotkeyset method and i want to unlock the keys again if the region back again as it was.Qsr NrwnPerhaps it will help you (www.dx21.com), search for disable keyboard...The site is very good to use run32.dll. Thanks
not-me Posted December 19, 2006 Author Posted December 19, 2006 the " RunDll32.exe KEYBOARD,disable " dosnt work on win XP bad luck
Qsr Nrwn Posted December 19, 2006 Posted December 19, 2006 the " RunDll32.exe KEYBOARD,disable " dosnt work on win XPbad luck give a try to this (im not pretty sure that if it will work on XP, it will disable the mouse, keyboard and display...). Hope you have luck Rev 127 Et factum et prælium magnum in cælo: Michaël et angeli ejus præliabantur cum dracone, et draco pugnabat, et angeli ejus: 8 et non valuerant, neque locus inventus est eorum amplius in cælo.9 Et projectus est draco ille magnus, serpens antiquus, qui vocatur diabolus, et Satanas, qui seducit universum orbem: et projectus est in terram, et angeli ejus cum illo missi sunt.
James Posted December 19, 2006 Posted December 19, 2006 Wait couldnt this be used maliciously? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
herewasplato Posted December 20, 2006 Posted December 20, 2006 i tried the code in the 1st comment but it is long to disable all the keys using the hotkeyset method and i want to unlock the keys again if the region back again as it was...What code did you try? The first 64 keys are set/blocked in less than 4 milliseconds and the rest in less than 2 milliseconds... and that was on my weak laptop. I'm sure that a gaming system would do better.BlockKeyboardInput1.au3BlockKeyboardInput2.au3http://www.autoitscript.com/forum/index.ph...st&p=269719So, read up on STDIO and have your main script toggle the other two as desired.@Secure_ICT,Yes, but BlockInput() about the same. This code keeps the mouse alive. [size="1"][font="Arial"].[u].[/u][/font][/size]
Qsr Nrwn Posted December 21, 2006 Posted December 21, 2006 (edited) Wait couldnt this be used maliciously?Yes, but sometimes you need to prevent some unexperienced user to - as a way to pave the way to make your script work - send some keystrokes that will crash your script... And it will be perfectly legal in your actions if you disable the keyboard while you walk through the critical part of your script (ideally notifying the user before doing so)And sometimes the method showed here (relatively to minimize and send) will not work, perhaps is a legacy (Win 3.x/95, in my case) software, and it is the only way to make it worktThe answer to that could be: That's upon your ethics... I'm trying not to be so paranoid. He/She is asking "How i can disable the keyboard only?", and he clearly states:"Please i want to find a way to disable the keyboard only if something has changed in a region then unlock the keyboard again if the region become as it was.Thanks allSo, for me there is no harm to show someone where the information is. It's upon his'/her's ethics.So long, Qsr NrwnEDIT: Corrected end tag missig. Added EDIT Edited December 21, 2006 by Qsr Nrwn Rev 127 Et factum et prælium magnum in cælo: Michaël et angeli ejus præliabantur cum dracone, et draco pugnabat, et angeli ejus: 8 et non valuerant, neque locus inventus est eorum amplius in cælo.9 Et projectus est draco ille magnus, serpens antiquus, qui vocatur diabolus, et Satanas, qui seducit universum orbem: et projectus est in terram, et angeli ejus cum illo missi sunt.
herewasplato Posted December 21, 2006 Posted December 21, 2006 (edited) ...it is the only way to make it work......but in that same thread that we referenced, SmOke_N states:Something put together with care, should easy enough be able to accomplish any task without fear of user interactions IMHO.So the challenge has been made; you come up with the scenario and SmOke_N will humbly write the code. :-) :-) :-)...or at least humbly offer an opinion :-) Edited December 21, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
Moderators SmOke_N Posted December 22, 2006 Moderators Posted December 22, 2006 ...but in that same thread that we referenced, SmOke_N states:So the challenge has been made; you come up with the scenario and SmOke_N will humbly write the code. :-) :-) :-)...or at least humbly offer an opinion :-)Humbly? 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.
HackerZer0 Posted December 22, 2006 Posted December 22, 2006 Humbly? lmao Earn money on CASHCRATE by sitting around doing nothing..
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