#149702 - 2005-10-12 12:37 AM
disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Hi, i was wondering if anyone could help me. Is there a way in kixtart to disable/enable keyboard/mouse activity for a client machine? Please let me know, much appreciated. Thanks Mandev
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149704 - 2005-10-12 12:49 AM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Thanks allen for the prompt reply. so i can use devcon to do this? i suppose i could build GUI around the command line utility? what would be the command line to disable the keyboard/mouse for a client pc??
Thanks
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149706 - 2005-10-12 12:57 AM
Re: disable/enable keybaord/mouse activity
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
look for the AutoIt COM object at Hiddensoft.com
|
|
Top
|
|
|
|
#149707 - 2005-10-12 01:00 AM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
that would be great allen. i tried downloading the devcon package from the link you gave, but when i ran the application it didnt seem to work. does devcon require its own command line? or can i use the normal windows command line prompt? i just need to be able to enable/disable hardware basically as you stated.
Thanks a million!
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149709 - 2005-10-12 01:08 AM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
oh thats a shame, not working? so im left with AutoIt solution. Any ideas on that??
Thanks though
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149710 - 2005-10-12 01:09 AM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Hi, i have come across this last week. How do i use this feature? AutoIt.. Any ideas? Much appreciated.
Mandev
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149711 - 2005-10-12 01:20 AM
Re: disable/enable keybaord/mouse activity
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Here's a snippet from kholm (erik):
Code:
$oAutoIt = CreateObject("AutoItX.Control") $oAutoIt.BlockInput("on") Shell '%COMSPEC% Start /Wait Setup.exe -s' $oAutoIt.BlockInput("off")
|
|
Top
|
|
|
|
#149712 - 2005-10-12 12:20 PM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Hi shaun thanks for the reply. Will that snippet of code you gave, allow me to disable the devices and enable them back? because i want to be able to create a classroom management console, and one of the features i want to do this disable the keyboard/mouse until the teacher has finished talking etc.
Thanks
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149713 - 2005-10-12 12:34 PM
Re: disable/enable keybaord/mouse activity
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
In the example Shawn provided
- input is blocked
- a setup program is run then when it has completed...
- input is unblocked again.
Your problem is that you will need to run the script on each PC in their user space.
|
|
Top
|
|
|
|
#149714 - 2005-10-12 01:26 PM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Hi richard. Thanks for that explaination. could you show me how to implement the code using two buttons? so when i click on one i disable the keyboard and click on another i enable the keyboard for a user?
Thanks so much
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149717 - 2005-10-12 04:40 PM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Hi mart, Thanks for that coding. I will test it in the next couple of days or so when im back at work using the network. where can i download Autoit? is there a way for the teacher to select a machine name and disable their keyboard/mouse? if possible, could you show me please?
Thanks mart
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149719 - 2005-10-12 06:50 PM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
Thanks richard. alot of this is new to me.. could you show me how to do this?
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
#149720 - 2005-10-12 07:21 PM
Re: disable/enable keybaord/mouse activity
|
Stephen Wintle
Seasoned Scripter
Registered: 2001-04-10
Posts: 444
Loc: England
|
i mart, i tried that script example with the buttons, but it is not working for my machine. i have got Autoit installed as well. ????
Any suggestions?
Thanks Mandev
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1471 anonymous users online.
|
|
|