CN101727281A - System and method for one-key locking of computer monitor - Google Patents
System and method for one-key locking of computer monitor Download PDFInfo
- Publication number
- CN101727281A CN101727281A CN200910192074A CN200910192074A CN101727281A CN 101727281 A CN101727281 A CN 101727281A CN 200910192074 A CN200910192074 A CN 200910192074A CN 200910192074 A CN200910192074 A CN 200910192074A CN 101727281 A CN101727281 A CN 101727281A
- Authority
- CN
- China
- Prior art keywords
- message
- program
- password
- screen
- keylock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention provides a system and a method for the one-key locking of a computer monitor. The system comprises a key message interception module, a message discrimination module, an executing module and an identity authentication module. The method comprises the following steps: configuring a keyboard hook in the operating system of a computer; monitoring all the keys; for specific keys, locking the monitor and forbidding a user to switch the program simultaneously; running a window, waiting for the user to enter passwords, wherein if the passwords entered are incorrect, the program cannot exit, and if the passwords entered are correct, the operation that the user can switch the program is recovered; and ending the process of waiting for the input of the passwords. The monitor can be conveniently locked through the system and the method for the one-key locking of the computer monitor to conveniently prevent unrelated people seeing or checking the context that the user do not want others to see.
Description
Technical field
The present invention relates to a kind of system and method to computer screen one keylock.
Background technology
At present, computing machine is used in daily life widely, because the superiority of itself, computing machine has entered every family and has been applied in the office space, changed original working method to a great extent, but because the maloperation of fortuitous event or malicious operation mouse-keyboard etc. may cause serious adverse consequences, for example the computer user is because of thing not before computer screen the time, the content that privacy on the computer or do not want allows others see may be seen by irrelevant people, cause harmful effect, also might be deleted or revise by other people by some data message in addition, cause more serious loss.
Summary of the invention
Technical matters to be solved by this invention is to overcome the deficiencies in the prior art, a kind of system and method to computer screen one keylock is provided, this system and method is by pressing a specific button, automatically with screen locking, the user must input the password of prior setting could unlock screen, prevents from that the people who has nothing to do from seeing or viewing the user not want the content that allows others see.
The technical solution adopted in the present invention is: a kind of system to computer screen one keylock provided by the invention is to realize a keylock to computer screen by setting a specific keys, and this system comprises:
Keyboard message is intercepted and captured module, is used to intercept and capture all press key messages that come from the outside;
Whether message discrimination module, the press key message that is used to judge intercepting and capturing are the message from above-mentioned specific keys;
Execution module is used to carry out the screen locking task;
Authentication module is used for the affirmation to user right, judges whether remove current screen locking task.
Above-mentioned specific keys can be an one key that is arranged on the keyboard, also can be an independent key device that separates with keyboard.
The present invention also provides a kind of method to computer screen one keylock, realizes may further comprise the steps a keylock to computer screen by setting a specific keys:
(1) intercepting and capturing are from all press key messages in the computer system external world;
(2) whether the press key message of judge intercepting and capturing is the message from above-mentioned specific keys,
If not the message of above-mentioned specific keys is then given back system to this message and is continued to handle; If the message of above-mentioned specific keys is then forbidden user's changeover program interface, set up a new desktop then, full frame screen locking program of operation is come lock-screen on new desktop;
(3) above-mentioned full frame screen locking program waits for that the user inputs password, and authentication module is carried out authentication to the password of input,
If password is correct, then withdraw from full frame screen locking program, turn off the desktop of in step (2), being set up;
If password bad, then the clearing password with input falls, and continues to wait for that the user inputs password.
Intercepting and capturing extraneous press key message in above-mentioned steps (1) is to realize by the keyboard Hook Function.
Screen locking program in above-mentioned steps (2) is set up process:
Step 1 is at first created an application program; Step 2 with the size of the window size variation according to screen, is provided with a password input window mouth in the above; Step 3 is fallen the message screening that correctly withdraws from of application program, can only just can withdraw from window when password is correct; Step 4, program compiler generates the screen locking program.
The invention has the beneficial effects as follows: screen locking system and method provided by the invention, be installed in the computing machine as the form of software, do not influence other application programs of computer operating system; Only need simple code just can realize the function of only coming lock-screen by a specific keys, operating process is very simple and convenient, is a relatively design of hommization.
Description of drawings
Fig. 1 is a functional block diagram of the present invention;
Fig. 2 is the process flow diagram of locking means among the present invention.
Embodiment
Locking system functional block diagram of the present invention as shown in Figure 1 comprises keyboard intercepting and capturing module 101, message discrimination module 102, execution module 103, authentication module 104.Wherein keyboard is intercepted and captured the button that module 10l is used for intercepting and capturing all keyboards; Message discrimination module 102 is used for judging the message that whether needs out; Execution module 103 is to be used for carrying out concrete screen locking task; Authentication module 104 is used for judging whether to remove current screen locking task.
The workflow of screen locking method provided by the invention as shown in Figure 2: working procedure at first, step 201, the keyboard of installation system is intercepted and captured module then, the keyboard message that interception system is all, step 202, this operation realizes that with the Hook Function of keyboard hook is a point of penetration of system message treatment mechanism, judges whether it is button to be processed, as step 203, if not button to be processed, continue to judge whether to be to quit a program, as step 204, as not quitting a program, message is given back system continue to handle, prepare then to handle next press key message, as step 203.If quit a program, the keyboard hook that step 202 is installed uninstalls, and as step 205, is original appearance with system recovery, quits a program then, as step 206.If in step 203, judgement is specific button, to forbid user's changeover program, as step 207, set up a new desktop then, full frame program of operation is come lock-screen on new desktop, as step 208, at this full frame program waits for user input password, as step 209, the user inputs the process of carrying out authentication behind the password, judges whether password is correct, as step 210, if password bad, the clearing password of input is fallen, change step 209 again, wait for that the user inputs password.If password is correct, just withdraw from full frame program, turn off the desktop of in step 208, setting up, as step 211, recover then to allow user's changeover program, as step 212, continue the next message of disposal system then, as step 203.
Lift an instantiation below technical scheme of the present invention be described:
The locking system that the present invention proposes can use MS Visual C++ to realize.Step 1 is at first created a dynamic link library (DLL).Step 2, the statement of adding interface function, this statement comprise installs the keyboard Hook Function, and unloading keyboard Hook Function is forbidden user's changeover program function, allows user's changeover program function.Step 3, finish the interface function definition, emphasis is when judgement is the press key message that needs to handle, set up a new desktop process earlier, forbid user's changeover program then, call the screen locking program of writing below then, wait for that the screen locking program withdraws from, recover to allow user's changeover program then, withdraw from set up previously the desktop process, finish the recovery of screen locking.Step 4 compiles this program, generates dynamic link library file; Step 5, with interface document, dynamic link library file, and corresponding lib document copying is in the catalogue of application program, and join in the application program.In the application program launching process, call the keyboard hook program of installing, withdraw from application program and call unloading keyboard hook in the process.
Writing of above-mentioned screen locking program, step 1 is at first created an application program; Step 2 with the size of the window size variation according to screen, is provided with a password input window mouth in the above; Step 3 is fallen the message screening that correctly withdraws from of program, can only just can withdraw from window when password is correct; Step 4, program compiler generates the screen locking program.
Claims (5)
1. system to computer screen one keylock, realize a keylock to computer screen it is characterized in that this system comprises by setting a specific keys:
Keyboard message is intercepted and captured module, is used to intercept and capture all press key messages that come from the outside;
Whether message discrimination module, the press key message that is used to judge intercepting and capturing are the message from above-mentioned specific keys;
Execution module is used to carry out the screen locking task;
Authentication module is used for the affirmation to user right, judges whether remove current screen locking task.
2. a kind of system to computer screen one keylock according to claim 1 is characterized in that, described specific keys is one to be arranged on the one key on the keyboard, perhaps is an independent key device that separates with keyboard.
3. method to computer screen one keylock realizes it is characterized in that a keylock to computer screen by setting a specific keys, may further comprise the steps:
(1) intercepting and capturing are from all press key messages in the computer system external world;
(2) whether the press key message of judge intercepting and capturing is the message from above-mentioned specific keys,
If not the message of above-mentioned specific keys is then given back system to this message and is continued to handle;
If the message of above-mentioned specific keys is then forbidden user's changeover program interface, set up a new desktop then, full frame screen locking program of operation is come lock-screen on new desktop;
(3) above-mentioned screen locking program waits for that the user inputs password, and authentication module is carried out authentication to the password of input,
If password is correct, then withdraw from full frame screen locking program, turn off the desktop of in step (2), being set up;
If password bad, then the clearing password with input falls, and continues to wait for that the user inputs password.
4. a kind of method to computer screen one keylock according to claim 3 is characterized in that, intercepting and capturing extraneous press key message in step (1) is to realize by the keyboard Hook Function.
5. a kind of method to computer screen one keylock according to claim 3 is characterized in that, the screen locking program in step (2) is set up process and is:
Step 1 is at first created an application program; Step 2 with the size of the window size variation according to screen, is provided with a password input window mouth in the above; Step 3 is fallen the message screening that correctly withdraws from of application program, can only just can withdraw from window when password is correct; Step 4, program compiler generates the screen locking program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910192074A CN101727281A (en) | 2009-09-04 | 2009-09-04 | System and method for one-key locking of computer monitor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910192074A CN101727281A (en) | 2009-09-04 | 2009-09-04 | System and method for one-key locking of computer monitor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101727281A true CN101727281A (en) | 2010-06-09 |
Family
ID=42448228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910192074A Pending CN101727281A (en) | 2009-09-04 | 2009-09-04 | System and method for one-key locking of computer monitor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101727281A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185974A (en) * | 2011-05-11 | 2011-09-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and operation locking control method thereof |
CN102411465A (en) * | 2010-09-21 | 2012-04-11 | 汉王科技股份有限公司 | Screen-locking method and electronic reader |
CN102541289A (en) * | 2012-01-10 | 2012-07-04 | 苏州三诺信息科技有限公司 | Method for implementation of universal keyboard lock function |
CN102542202A (en) * | 2011-12-27 | 2012-07-04 | 长春希达电子技术有限公司 | Real-time screen lock system |
CN102880117A (en) * | 2012-09-28 | 2013-01-16 | 佛山宝钢不锈钢贸易有限公司 | Screen locking key system for numerical-control machine tool |
CN103886232A (en) * | 2012-12-20 | 2014-06-25 | 联想(北京)有限公司 | Terminal and method for safely utilizing same |
CN104375836A (en) * | 2014-11-19 | 2015-02-25 | 深圳市腾讯计算机系统有限公司 | Method and device for showing lock screen window |
CN105069351A (en) * | 2015-07-23 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Apparatus and method for preventing stealing of login information of application program |
TWI547825B (en) * | 2012-10-12 | 2016-09-01 | 緯創資通股份有限公司 | Computer device capable of locking screen and the screen locking method thereof |
CN106886400A (en) * | 2017-01-06 | 2017-06-23 | 山东华软金盾软件股份有限公司 | A kind of windows system screens locking means |
CN108319471A (en) * | 2018-02-27 | 2018-07-24 | 郑州云海信息技术有限公司 | Computer peripheral management method, device, equipment and readable storage medium storing program for executing |
CN109426705A (en) * | 2017-08-17 | 2019-03-05 | 阿里巴巴集团控股有限公司 | A kind of interface display method, device, equipment and storage medium |
CN113158165A (en) * | 2021-05-20 | 2021-07-23 | 读书郎教育科技有限公司 | Method and device for quickly locking application of Android terminal |
-
2009
- 2009-09-04 CN CN200910192074A patent/CN101727281A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102411465A (en) * | 2010-09-21 | 2012-04-11 | 汉王科技股份有限公司 | Screen-locking method and electronic reader |
CN102185974A (en) * | 2011-05-11 | 2011-09-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and operation locking control method thereof |
CN102542202A (en) * | 2011-12-27 | 2012-07-04 | 长春希达电子技术有限公司 | Real-time screen lock system |
CN102541289A (en) * | 2012-01-10 | 2012-07-04 | 苏州三诺信息科技有限公司 | Method for implementation of universal keyboard lock function |
CN102880117A (en) * | 2012-09-28 | 2013-01-16 | 佛山宝钢不锈钢贸易有限公司 | Screen locking key system for numerical-control machine tool |
TWI547825B (en) * | 2012-10-12 | 2016-09-01 | 緯創資通股份有限公司 | Computer device capable of locking screen and the screen locking method thereof |
CN103886232A (en) * | 2012-12-20 | 2014-06-25 | 联想(北京)有限公司 | Terminal and method for safely utilizing same |
CN103886232B (en) * | 2012-12-20 | 2017-11-24 | 联想(北京)有限公司 | The safe handling method and terminal of a kind of terminal |
CN104375836A (en) * | 2014-11-19 | 2015-02-25 | 深圳市腾讯计算机系统有限公司 | Method and device for showing lock screen window |
CN104375836B (en) * | 2014-11-19 | 2018-08-17 | 深圳市腾讯计算机系统有限公司 | A kind of method and device of displaying screen locking window |
CN105069351A (en) * | 2015-07-23 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Apparatus and method for preventing stealing of login information of application program |
CN106886400A (en) * | 2017-01-06 | 2017-06-23 | 山东华软金盾软件股份有限公司 | A kind of windows system screens locking means |
CN109426705A (en) * | 2017-08-17 | 2019-03-05 | 阿里巴巴集团控股有限公司 | A kind of interface display method, device, equipment and storage medium |
CN108319471A (en) * | 2018-02-27 | 2018-07-24 | 郑州云海信息技术有限公司 | Computer peripheral management method, device, equipment and readable storage medium storing program for executing |
CN113158165A (en) * | 2021-05-20 | 2021-07-23 | 读书郎教育科技有限公司 | Method and device for quickly locking application of Android terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101727281A (en) | System and method for one-key locking of computer monitor | |
CN103092484B (en) | The method of unlock screen, device and terminal | |
EP3065074A1 (en) | Fingerprint authentication method and device, intelligent terminal, and computer storage medium | |
CN103336924A (en) | Starting lock for mobile terminal application program | |
CN101483658B (en) | System and method for input content protection of browser | |
CN104484612A (en) | Sensitive information shielding method and system for remote desktop applications | |
CN103631517A (en) | Mobile terminal and lock function operation method therefor | |
CN104679330B (en) | Control method and device based on Rimless terminal | |
KR20160111543A (en) | Limiting the functionality of a software program based on a security model | |
CN104166816A (en) | Lock screen unlocking method and system based on application icons | |
CN105224194B (en) | A kind of data processing method and terminal | |
KR20100061025A (en) | Module and method for security condition confirmation of keyboard | |
CN103870743A (en) | Information processing apparatus, and lock execution method | |
EP2835754B1 (en) | Information input method, device, terminal and storage medium | |
EP3532980B1 (en) | Method in computer assisted operation | |
CN102156826A (en) | Provider management method and system | |
CN106775326A (en) | A kind of screen control method and device for mobile terminal | |
WO2014036932A1 (en) | A user interface hijacking prevention device and method | |
CN101271507B (en) | File hiding method, system and device based on USB equipment | |
WO2019047048A1 (en) | Fingerprint event processing device and method | |
CN111581630A (en) | Computer unlocking method, device, equipment and medium | |
CN103902205A (en) | Information processing method and electronic device | |
CN102902913B (en) | Prevent the security method of software in malicious sabotage computer | |
CN102222179A (en) | Anti-keylogging technology based on Windows kernel | |
CN101241529A (en) | Method for blocking computer input device and its device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20100609 |
|
C20 | Patent right or utility model deemed to be abandoned or is abandoned |