Re: Lock the keyboard

From: Joe Earnest (joeearnestNO_at_SPAMqwest.netPLEASE)
Date: 02/21/04


Date: Sat, 21 Feb 2004 09:24:39 -0700

Hi,

"Rolf Lystad" <rolf@spam.com> wrote in message
news:#NjAQmI#DHA.3428@tk2msftngp13.phx.gbl...
| I want to lock the keyboard while a script is running. (and unlock
| afterwards)
| Is there a way to do this?

AutoItX (good third-party scripting add-on freeware for admin and rollouts)
will let you block keyboard input and/or screen output. The changing shell
calls over different versions of Windows will produce different results. If
you can't use an ActiveX, you can use AutoIt's own script, which can also
compile to an EXE utility.

http://www.hiddensoft.com/AutoIt/

>From the AutoItX CHM file:

BlockInput
----------

Will prevent any user input via the mouse or keyboard. See the Remarks
section for limitations.

BlockInput(strToggle)

Parameters

strToggle
This should be set to the string "on" to block input, and "off" to enable
input.

Return value
None.

Remarks
This function will have different effects depending on the operating system
used:.

Operating System "BlockInput" Results

Windows 95 No effect.

Windows 98 User input is blocked but AutoIt is also unable to simulate
input.

Windows NT 4 (Without ServicePack 6) No effect.

Windows NT 4 (With ServicePack 6) User input is blocked and AutoIt can
simulate input.

Windows 2000 User input is blocked and AutoIt can simulate input.

[ditto for Xp]

Example
To Block all user input:

Set oAutoIt = CreateObject("AutoItX.Control")
oAutoIt.BlockInput "on"

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 01-19-04


Relevant Pages

  • Re: Download vs buy Suse 10?
    ... > I am not asking you to host the CDs or DVDs. ... >> Linux but with SuSE instead of Fedora. ... Although if you have a script that does ... >> SuSE still has issues with the French Canadian keyboard. ...
    (alt.os.linux.suse)
  • Re: AutoIt
    ... Digging through the AutoIt Newsgroup I ... To answer your questions the script does run in SMS's context and the ... uninstall string of an application. ...
    (microsoft.public.sms.installer)
  • Re: variables as operators
    ... There is a useful vbscript for those computers that have a hardware ... hooked up and when GINA presented the login dialog, the keyboard ... The script below is very useful. ...
    (microsoft.public.vb.general.discussion)
  • Re: Import text file into a field
    ... I know I can do this with Import Folder, selecting text files, but is ... and write a simple script in any text editor and compile it. ... Let FMP open any text editor with the wanted file as the argument; ... Now run that compiled AutoIt script from FMP: ...
    (comp.databases.filemaker)
  • Re: Internet Explorer/wireless problem
    ... no keyboard running Windows CE connects to a web server via wireless. ... Problem is, without a menu bar there is no way to go back, reload the ... redisplay the menu bar from a script, ...
    (microsoft.public.windowsce.embedded)

Loading