Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

keyboard lockout
Hi all,

Is it possible to lockout the keyboard and mouse while a script is running?

tia,
Mike



Report this thread to moderator Post Follow-up to this message
Old Post
Michael Herz
05-27-04 03:30 PM


Re: keyboard lockout
Michael Herz wrote:

> Is it possible to lockout the keyboard and mouse while a script is running?[/color
]
Hi

You can do this with AutoIt/AutoItX...

AutoIt/AutoItX is free and can be found here:
http://www.autoitscript.com/autoit3/index.php

AutoItX is an ActiveX control version of AutoIt and can be used from
a vbscript.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/co...er/default.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Torgeir Bakken \(MVP\)
05-27-04 04:30 PM


Re: keyboard lockout
Thanks for the response. I have and use WinBatch usually. I was hoping for a
native wsh method. It's kinda crazy to have a sendkeys method without a
keyboard lockout method (but maybe that's just my bent ;-)

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:%23f9DOm$QEHA.3124@TK2MSFTNGP12.phx.gbl...
> Michael Herz wrote:
> 
running?
> Hi
>
> You can do this with AutoIt/AutoItX...
>
> AutoIt/AutoItX is free and can be found here:
> http://www.autoitscript.com/autoit3/index.php
>
> AutoItX is an ActiveX control version of AutoIt and can be used from
> a vbscript.
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/co...er/default.mspx



Report this thread to moderator Post Follow-up to this message
Old Post
Michael Herz
05-27-04 05:30 PM


Re: keyboard lockout
Michael Herz wrote:

> Thanks for the response. I have and use WinBatch usually. I was hoping for
 a
> native wsh method.
Hi

Sorry, a native wsh method for this does not exist...


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/co...er/default.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Torgeir Bakken \(MVP\)
05-27-04 06:30 PM


Re: keyboard lockout
A buddy of mine wrote an exe that disabled the keyboard and mouse a while
back as we had the same need.  Rather than trying to find it I will inform
you that when the keyboard and mouse are disabled, sendkeys do not
function...

Richard


"Michael Herz" <mherz@uwaterloo.ca> wrote in message
news:eGg8f0$QEHA.1548@TK2MSFTNGP10.phx.gbl...
> Thanks for the response. I have and use WinBatch usually. I was hoping for
a
> native wsh method. It's kinda crazy to have a sendkeys method without a
> keyboard lockout method (but maybe that's just my bent ;-)
>
> "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
> news:%23f9DOm$QEHA.3124@TK2MSFTNGP12.phx.gbl... 
> running? 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Richard
05-28-04 07:30 PM


Re: keyboard lockout
Thanks for the reply. I think I decided that the few problems I had with
WinBatch weren't so bad afterall ;-)




Report this thread to moderator Post Follow-up to this message
Old Post
Michael Herz
05-28-04 09:30 PM


Re: keyboard lockout
"Richard" <NoSpam@NoSpam.net> wrote in message
news:%23s1FkuNREHA.2876@TK2MSFTNGP09.phx.gbl...
> A buddy of mine wrote an exe that disabled the keyboard and mouse a while
> back as we had the same need.  Rather than trying to find it I will inform
> you that when the keyboard and mouse are disabled, sendkeys do not
> function...

There's an API method, BlockInput, which does just this.
It doesn't block ctrl+alt+del, though (probably a good idea).

Troels



Report this thread to moderator Post Follow-up to this message
Old Post
Troels Jakobsen
05-29-04 10:30 AM


Re: keyboard lockout
I'll have to look that one up :-)

Thanks

"Troels Jakobsen" <dont@like.spam> wrote in message
news:uclc4oVREHA.3452@TK2MSFTNGP10.phx.gbl...
>
> "Richard" <NoSpam@NoSpam.net> wrote in message
> news:%23s1FkuNREHA.2876@TK2MSFTNGP09.phx.gbl... 
while 
inform 
>
> There's an API method, BlockInput, which does just this.
> It doesn't block ctrl+alt+del, though (probably a good idea).
>
> Troels
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Michael Herz
06-03-04 04:30 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

WSH archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:11 PM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.