This application claims priority to Taiwan Application Serial Number 96122603, filed Jun. 22, 2007, which is herein incorporated by reference.
1. Field of Invention
The present invention relates to a keyboard command inputting method. More particularly, the present invention relates to a method for negotiating keyboard commands between a computer and an external keyboard.
2. Description of Related Art
However, a conventional keyboard 150 (as illustrated in
It is inconvenient to switch NL status of the keyboard 150, however, some keyboard vender thus provides a small external keyboard 170 for commonly used with a main keyboard of a computer system. The external keyboard 170 may be used instead of the numeric key area 106 on the keyboard 100 or the numeric key area 154 of the keyboard 150.
When the external keyboard 170 (as illustrated in
It is therefore an objective of the present invention to provide a method for negotiating keyboard commands between a computer and an external keyboard
In accordance with the foregoing and other objectives of the present invention, a method for negotiating keyboard commands between a computer and an external keyboard is provided. The computer and the external keyboard have respective NL (number lock) status. When the external keyboard is pressed, the external keyboard act as the following mechanics. When NL status of the computer is “Off” and NL status of the external keyboard is “On”, and a time internal between adjacent serially-pressed numeric keys of the external keyboard is less than a predetermined time period, a key code of NL on the external keyboard is firstly sent to alter NL status of the computer from “Off” to “On”, key codes of pressed numeric keys of the external keyboard are secondly sent to the computer, and the key code of NL on the external keyboard is finally sent to alter NL status of the computer from “On” to “Off”.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the invention as claimed.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. In the drawings,
Reference will now be made in detail to the present preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Table 1 shows operation mechanics for 4 sets of status when users press the external keyboard 250, which is commonly used with the notebook computer 200.
When NL status of the computer 200 is “Off” (i.e. NL LED turn off) and NL status of the external keyboard 250 is “Off” (i.e. NL LED turn off), the external keyboard 250 sends key codes of pressed keys to the computer 200.
When NL status of the computer 200 is “Off” (i.e. NL LED turn off) and NL status of the external keyboard 250 is “On” (i.e. NL LED turn on), the external keyboard 250 performs the following sequence: (1) sending a key code of NL on the external keyboard 250 to alter a NL status of the computer 200, i.e. to switch NL status of the computer 200 from “off” to “on”; (2) sending key codes of pressed numeric keys to the computer 200; (3) when no keys of the external keyboard 250 has not been pressed for a predetermined time period, sending a key code of NL on external keyboard 250 to alter the NL status of computer 200, i.e. to switch NL status of the computer 200 from “on” to “off”. That is, in step (2), the external keyboard 250 would not send a key code of NL on external keyboard 250 to alter the NL status of the computer 200 when a time internal between adjacent serially-pressed keys is less than a predetermined time period (such as 0.3˜0.5 sec). The step (3) is designed for the particular case of quickly serially pressing keys on the external keyboard 250. When the external keyboard 250 is serially pressed quickly, i.e. a time internal between adjacent serially-pressed keys is less than 0.3˜0.5 sec, the key code of NL on the external keyboard 250 in step (3) is postponed to send. Once no keys of the external keyboard 250 has not been pressed for a predetermined time period, the external keyboard 250 would send a key code of NL on external keyboard 250 to alter the NL status of the computer 200. Step (3) is to resolve the delaying issue of key codes when the external keyboard 250 is serially pressed quickly.
When NL status of the computer 200 is “On” (i.e. NL LED turn on) and NL status of the external keyboard 250 is “Off” (i.e. NL LED turn off), the external keyboard 250 sends key codes of computer 200, which is corresponding to pressed keys on external keyboard 250, to the computer 200.
When NL status of the computer 200 is “On” (i.e. NL LED turn on) and NL status of the external keyboard 250 is “On” (i.e. NL LED turn on), the external keyboard 250 sends key codes of pressed keys to the computer 200.
Referring to the following Table 2, which shows another operation mechanics for 4 sets of status when users press the external keyboard 250, which is commonly used with the notebook computer 200.
Table 2 has only one operation mechanics (when NL status of the computer 200 is “On” and NL status of the external keyboard 250 is “Off”), which is different from operation mechanics in Table 1.
When NL status of the computer 200 is “On” (i.e. NL LED turn on) and NL status of the external keyboard 250 is “Off” (i.e. NL LED turn off), the external keyboard 250 send a key code of NL on the external keyboard 250 to alter NL status of the computer 200, i.e. switch NL status of the computer 200 from “on” to “off”. This set of NL status is a temporary status. Thus, Table 2 actually has three sets of NL status.
Referring to the following Table 3, which shows another operation mechanics for 4 sets of status when users press the external keyboard 250, which is commonly used with the notebook computer 200.
Table 3 has only one operation mechanics (when NL status of the computer 200 is “On” and NL status of the external keyboard 250 is “On”), which is different from operation mechanics in Table 2.
When NL status of the computer 200 is “On” (i.e. NL LED turn on) and NL status of the external keyboard 250 is “On” (i.e. NL LED turn on), the external keyboard 250 send a key code of NL on the external keyboard 250 to alter NL status of the computer 200, i.e. switch NL status of the computer 200 from “on” to “off”. This set of NL status is a temporary status. Thus, Table 3 actually has two sets of NL status.
Referring to the following Table 4, which shows another operation mechanics for 4 sets of status when users press the external keyboard 250, which is commonly used with the notebook computer 200.
Table 4 has only one operation mechanics (when NL status of the computer 200 is “Off” and NL status of the external keyboard 250 is “On”), which is different from operation mechanics in Table 3.
When NL status of the computer 200 is “Off” (i.e. NL LED turn off) and NL status of the external keyboard 250 is “On” (i.e. NL LED turn on), the external keyboard 250 performs the following sequence: (1) sending a key code of NL on the external keyboard 250 to alter a NL status of the computer 200, i.e. to switch NL status of the computer 200 from “off” to “on”; (2) sending key code of single pressed key to the computer 200; (3) sending a key code of NL on external keyboard 250 to alter the NL status of computer 200, i.e. to switch NL status of the computer 200 from “on” to “off”. Table 4 actually has two sets of NL status. NL status “On” of the computer 200 is a temporary status.
Referring to the following Table 5, which shows another operation mechanics for 4 sets of status when users press the external keyboard 250, which is commonly used with the notebook computer 200.
Table 5 has only one operation mechanics (when NL status of the computer 200 is “On” and NL status of the external keyboard 250 is “Off”), which is different from operation mechanics in Table 1 or Table 2.
When NL status of the computer 200 is “On” (i.e. NL LED turn on) and NL status of the external keyboard 250 is “Off” (i.e. NL LED turn off), the external keyboard 250 performs the following sequence: (1) sending a key code of NL on the external keyboard 250 to alter a NL status of the computer 200, i.e. to switch NL status of the computer 200 from “on” to “off”; (2) sending key codes of pressed numeric keys to the computer 200; (3) when no keys of the external keyboard 250 has not been pressed for a predetermined time period, sending a key code of NL on external keyboard 250 to alter the NL status of computer 200, i.e. to switch NL status of the computer 200 from “off” to “on”. That is, in step (2), the external keyboard 250 would not send a key code of NL on external keyboard 250 to alter the NL status of the computer 200 when a time internal between adjacent serially-pressed keys is less than a predetermined time period (such as 0.3˜0.5 sec). The step (3) is designed for the particular case of quickly serially pressing keys on the external keyboard 250. When the external keyboard 250 is serially pressed quickly, i.e. a time internal between adjacent serially-pressed keys is less than 0.3˜0.5 sec, the key code of NL on the external keyboard 250 in step (3) is postponed to send. Once no keys of the external keyboard 250 has not been pressed for a predetermined time period, the external keyboard 250 would send a key code of NL on external keyboard 250 to alter the NL status of the computer 200. Step (3) is to resolve the delaying issue of key codes when the external keyboard 250 is serially pressed quickly.
In discussed embodiments, the keyboard operation mechanics as described herein can overcome key code delaying or missing of when the external keyboard is serially pressed quickly. Besides, the keyboard operation mechanics can also compatibility issue of the external keyboard while using the external keyboard to play a computer game.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
96122603 | Jun 2007 | TW | national |