中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 17:58
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Ask: How can I use batch processing to block the keyboard and mouse!
Printable Version  1,636 / 9
Floor1 yaoguof Posted 2006-12-06 00:34
初级用户 Posts 35 Credits 90
I want to use a batch script to block keyboard and mouse input!
When the batch script is running, block any key presses and mouse operations?
How should this be achieved?
Floor2 redtek Posted 2006-12-06 00:41
金牌会员 Posts 1,147 Credits 2,902
What kind of operation is it that doesn't want users to use the mouse and keyboard?

(Downloading ad plugins or executing "tools" with virus properties?)

(Formatting the user's hard drive?)

(Deleting important data?)

(Or something else?)
Floor3 yaoguof Posted 2006-12-06 01:00
初级用户 Posts 35 Credits 90
It is equivalent to a reminder tool that automatically closes after a few seconds so that the user can perform operations.
Floor4 lxmxn Posted 2006-12-06 01:11
版主 Posts 4,938 Credits 11,386

  I don't understand what purpose the owner wants to achieve.
Floor5 electronixtar Posted 2006-12-06 05:25
铂金会员 Posts 2,672 Credits 7,493
Just uninstall the mouse and keyboard drivers, and it'll be fine.
Floor6 a9319751 Posted 2006-12-06 05:28
中级用户 Posts 170 Credits 439
Generally, it is the time when necessary updates are needed for Internet café machines. I don't want customers to mess around, so I want to lock the screen.
Floor7 voiL Posted 2006-12-06 06:12
中级用户 Posts 189 Credits 384
Originally posted by a9319751 at 2006-12-6 05:28:
Generally, it is the time when necessary updates for Internet cafe machines need to be done. I don't want customers to move around randomly, so I want to lock the screen.


I have also worked in an Internet cafe before and deeply understand the pain of network administrators.
Floor8 seyeskcn Posted 2006-12-06 10:17
新手上路 Posts 6 Credits 12 From 河南洛阳
Floor9 yaoguof Posted 2006-12-06 23:52
初级用户 Posts 35 Credits 90
Basically, it means this, but is the aspect of the 5th floor a bit that?
Floor10 redtek Posted 2006-12-07 01:42
金牌会员 Posts 1,147 Credits 2,902
Indirectly lock the mouse and keyboard through a screen saver program without calling the API, and set it to allow unlocking after n minutes...

) Start a password-protected screen saver

The screen saver has an extension of.SCR, which is actually an executable EXE file.

Simple programming, VB is fine.

The screen saver must require entering a password to exit. Then use VB to make a timer. After a few minutes, if the password is not entered, it will automatically exit.

As for how to control this few minutes, the VB-made screen saver program can have a startup parameter. Add the number of minutes in the startup parameter.

) How to start the screen saver and make the screen saver run "correctly"?

See if there are any relevant registry entries related to the screen saver. If not, it's better. Just control it with the.SCR (EXE) file.

Or use a.BAT batch program to directly call the.SCR executable file, and add the parameter to set the number of minutes to lock. In this way, the system immediately enters the locking mode of screen saver operation.


) Moreover, this special program with screen saver function developed by oneself can also send some messages to the server when the screen saver is started,
or connect to the server to retrieve the instructions to be executed. In this way, it can also be used for remote control.



(The above ideas are purely nonsense, not verified, just for fun~:)

[ Last edited by redtek on 2006-12-6 at 12:45 PM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023