TWI408569B - Control method and control system utilizing the same - Google Patents

Control method and control system utilizing the same Download PDF

Info

Publication number
TWI408569B
TWI408569B TW98124975A TW98124975A TWI408569B TW I408569 B TWI408569 B TW I408569B TW 98124975 A TW98124975 A TW 98124975A TW 98124975 A TW98124975 A TW 98124975A TW I408569 B TWI408569 B TW I408569B
Authority
TW
Taiwan
Prior art keywords
pressed
function key
keyboard
key
function
Prior art date
Application number
TW98124975A
Other languages
Chinese (zh)
Other versions
TW201104502A (en
Inventor
Chih Hao Lin
Original Assignee
Giga Byte Tech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Giga Byte Tech Co Ltd filed Critical Giga Byte Tech Co Ltd
Priority to TW98124975A priority Critical patent/TWI408569B/en
Publication of TW201104502A publication Critical patent/TW201104502A/en
Application granted granted Critical
Publication of TWI408569B publication Critical patent/TWI408569B/en

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

A control method is disclosed. A hotkey is determined whether to be pressed. When the hotkey is pressed, data of a data field is updated. A first function key is determined whether to be pressed. When the first function key is pressed, the data of the data field and the first function key are utilized to output a first key code. A first service program is executed according to the first key code.

Description

控制方法及控制系統Control method and control system

本發明係有關於一種控制系統,特別是有關於一種組合功能熱鍵(hot key)的控制系統。The present invention relates to a control system, and more particularly to a control system for combining function hot keys.

電腦已逐漸成為現代人工作或日常生活中必備的工具。以操作系統為例,早期的DOS系統在人機介面的親和力較差。對於初學者而言,入門障礙較高。在視窗系統(WINDOWS)問世後,這種入門障礙與困擾隨即迎刃而解。一般而言,使用者係透過滑鼠(mouse)操作視窗系統。然而,如果依照正常程序操作視窗系統時,可能影響工作效率。舉例而言,在視窗系統中,若想利用滑鼠調整部分功能(如喇叭音量、螢幕亮度等)時,可能需透過開啟多個視窗,才能達到調整的功能。Computers have gradually become a must-have tool for modern people's work or everyday life. Taking the operating system as an example, the early DOS system had a poor affinity in the human-machine interface. For beginners, entry barriers are higher. After the advent of Windows (WINDOWS), this barrier to entry and troubles were solved. In general, the user operates the window system through a mouse. However, if you operate the Windows system in accordance with normal procedures, it may affect your work efficiency. For example, in a Windows system, if you want to use the mouse to adjust some functions (such as speaker volume, screen brightness, etc.), you may need to open multiple windows to achieve the adjustment function.

本發明提供一種控制方法,包括下列步驟:判斷是否按下一熱鍵;當該熱鍵被按下時,更新一資料欄位的資料;判斷是否按下一第一功能鍵;當該第一功能鍵被按下時,根據該資料欄位的資料及該第一功能鍵,輸出一第一鍵盤編碼;以及根據該第一鍵盤編碼,執行一第一服務程式。The present invention provides a control method comprising the steps of: determining whether a hot key is pressed; updating the data of a data field when the hot key is pressed; determining whether a first function key is pressed; When the function key is pressed, a first keyboard code is output according to the data field of the data field and the first function key; and a first service program is executed according to the first keyboard code.

本發明另提供一種控制系統,包括一鍵盤、一控制單元以及一終端單元。鍵盤具有一熱鍵以及一第一功能鍵。當熱鍵被按下時,鍵盤輸出一熱鍵掃描信號。當第一功能鍵被按下時,鍵盤輸出一第一功能鍵掃描信號。當鍵盤輸 出熱鍵掃描信號時,控制單元更新一資料欄位的資料。在控制單元接收到熱鍵掃描信號後,若鍵盤輸出第一功能鍵掃描信號時,控制單元根據資料欄位的資料以及第一功能鍵掃描信號,輸出一鍵盤編碼。當終端單元接收到鍵盤編碼時,終端單元發出一中斷要求。當一作業系統得知中斷要求時,則根據鍵盤編號,執行一服務程式。The invention further provides a control system comprising a keyboard, a control unit and a terminal unit. The keyboard has a hot key and a first function key. When the hotkey is pressed, the keyboard outputs a hotkey scan signal. When the first function key is pressed, the keyboard outputs a first function key scan signal. When the keyboard loses When the hotkey scans the signal, the control unit updates the data of a data field. After the control unit receives the hot key scan signal, if the keyboard outputs the first function key scan signal, the control unit outputs a keyboard code according to the data field data and the first function key scan signal. When the terminal unit receives the keyboard code, the terminal unit issues an interrupt request. When an operating system knows the interrupt request, a service program is executed according to the keyboard number.

為讓本發明之特徵和優點能更明顯易懂,下文特舉出較佳實施例,並配合所附圖式,作詳細說明如下:In order to make the features and advantages of the present invention more comprehensible, the preferred embodiments are described below, and are described in detail with reference to the accompanying drawings.

藉由按下鍵盤的至少一熱鍵與至少一功能鍵,使用者便可啟動被按下的熱鍵與功能鍵所對應的服務程式(如增加/減少螢幕亮度等)。因此,可節省許多操作時間。By pressing at least one hot key of the keyboard and at least one function key, the user can activate the service program corresponding to the pressed hot key and the function key (such as increasing/decreasing screen brightness, etc.). Therefore, many operation time can be saved.

第1圖為本發明之控制方法之一可能實施例。如圖所示,首先,判斷是否按下一熱鍵(步驟S110)。在本實施例中,熱鍵係為,單獨按下時,不會發生任何事件的按鍵,如Alt、Ctrl、Fn、Shift…等按鍵。Figure 1 is a possible embodiment of a control method of the present invention. As shown in the figure, first, it is judged whether or not a hot key is pressed (step S110). In this embodiment, the hot key is a button that does not cause any event when pressed alone, such as buttons such as Alt, Ctrl, Fn, Shift, and the like.

一般而言,當鍵盤的按鍵被按下時,鍵盤會輸出相對應的掃描信號。在本實施例中,係利用一控制器接收鍵盤的掃描信號,並且使該控制器根據鍵盤所提供的掃描信號,得知哪一個按鍵被按下。在其它實施例中,該控制器可為一鍵盤控制器(keyboard controller;KBC)或是一嵌入式控制器(embedded controllers;EC)。In general, when the keys of the keyboard are pressed, the keyboard outputs a corresponding scan signal. In this embodiment, a controller is used to receive a scan signal of the keyboard, and the controller is made to know which button is pressed according to the scan signal provided by the keyboard. In other embodiments, the controller can be a keyboard controller (KBC) or an embedded controller (EC).

當熱鍵被按下時,更新一資料欄位的資料(步驟S120)。在本實施例中,當控制器接收到鍵盤所輸出的熱鍵掃描信號時,控制器便更新一資料欄位的資料。在一可能 實施例中,資料欄位的初始資料為0。When the hot key is pressed, the data of a data field is updated (step S120). In this embodiment, when the controller receives the hot key scan signal output by the keyboard, the controller updates the data of a data field. In one possible In the embodiment, the initial data of the data field is 0.

接著,判斷熱鍵是否再次被按下(步驟S130)。當熱鍵再次被按下時,則再次更新資料欄位的資料(步驟S120)。在本實施例中,該資料欄位的資料表示熱鍵被按下的次數。本發明並不限制熱鍵被按下的次數。當熱鍵被按下的次數不同時,其所造成的影響亦會不同。在其它實施例中,可省略步驟S130。Next, it is judged whether or not the hot key is pressed again (step S130). When the hot key is pressed again, the data of the data field is updated again (step S120). In this embodiment, the data of the data field indicates the number of times the hot key is pressed. The invention does not limit the number of times the hotkey is pressed. When the number of times the hotkey is pressed is different, the effect will be different. In other embodiments, step S130 can be omitted.

接著,判斷是否按下一第一功能鍵(步驟S130)。本發明並不限制第一功能鍵的種類。在本實施例中,功能鍵係為單獨被按下時,會觸發事件發生的按鍵。舉例而言,功能鍵可為數字鍵、字母鍵或是F1~F12。在其它可能實施例中,使用者可依習慣選擇按住或放開熱鍵。因此,在第一功能鍵被按下的同時,熱鍵可能仍為按下狀態,或是已被放開。Next, it is judged whether or not a first function key is pressed (step S130). The invention does not limit the type of the first function key. In this embodiment, the function key is a button that triggers an event when it is pressed alone. For example, the function keys can be numeric keys, letter keys or F1~F12. In other possible embodiments, the user may choose to press or release the hotkey as is customary. Therefore, while the first function key is pressed, the hot key may still be in a pressed state or may have been released.

當第一功能鍵未被按下時,則執行步驟S130。當第一功能鍵被按下時,根據資料欄位的資料及第一功能鍵,輸出一第一鍵盤編碼(步驟S150)。在本實施例中,接收鍵盤所輸出的掃描信號的控制器(如KBC或EC),會等熱鍵與第一功能鍵均被按下後,才會輸出第一鍵盤編碼。然而,在控制器僅接收到熱鍵的掃描信號時,並不會輸出任何鍵盤編碼,直到功能鍵被按滿後(並不一定只按一個功能鍵),才會輸出第一鍵盤編碼。When the first function key is not pressed, step S130 is performed. When the first function key is pressed, a first keyboard code is output according to the data of the data field and the first function key (step S150). In this embodiment, the controller (such as KBC or EC) that receives the scan signal output by the keyboard outputs the first keyboard code after the hotkey and the first function key are both pressed. However, when the controller only receives the scan signal of the hotkey, it does not output any keyboard code until the function key is full (not necessarily only one function key), and the first keyboard code is output.

在一可能實施例中,假設,使用者欲執行一第一服務程式,並且該第一服務程式所對應的按鍵為熱鍵(Fn)與功能鍵(F1)時。控制器會等熱鍵(Fn)與功能鍵(F1)均被按下後,才會輸出第一服務程式所對應的鍵盤編碼。In a possible embodiment, it is assumed that the user wants to execute a first service program, and the corresponding button of the first service program is a hot key (Fn) and a function key (F1). The controller will output the keyboard code corresponding to the first service program after the hotkey (Fn) and the function key (F1) are pressed.

另外,假設,第一服務程式所對應的按鍵為熱鍵(Fn)、功能鍵(1及2)時,則控制器會等熱鍵(Fn)、功能鍵(1及2)均被按下後,才會輸出相對應的鍵盤編碼。In addition, if the button corresponding to the first service program is a hot key (Fn) or a function key (1 and 2), the controller will wait for the hot key (Fn) and the function keys (1 and 2) to be pressed. After that, the corresponding keyboard code will be output.

接著,根據第一鍵盤編碼,執行一第一服務程式(步驟S160)。在本實施例中,當控制器輸出第一鍵盤編碼時,一終端單元(如南橋)便根據第一鍵盤編碼,執行第一服務程式。在一可能實施例中,該終端單元發出一中斷(interrupt)要求,用以中斷目前所執行的程式。在中斷期間,一作業系統(OS)執行第一服務程式。直到第一服務程式完成後,才會再繼續執行剛剛被中斷的程式。Next, a first service program is executed according to the first keyboard code (step S160). In this embodiment, when the controller outputs the first keyboard code, a terminal unit (such as a south bridge) executes the first service program according to the first keyboard code. In a possible embodiment, the terminal unit issues an interrupt request to interrupt the currently executing program. During the interruption, an operating system (OS) executes the first service program. The program that has just been interrupted will not continue until the first service program is completed.

本發明並不限制中斷要求的種類。在一些可能實施例中,終端單元所發出的中斷要求可為一系統控制中斷(system control interrupt;SCI)、一系統管理中斷(system management interrupt)或是一中斷請求(interrupt requests;IRQ)。The invention does not limit the type of interrupt request. In some possible embodiments, the interrupt request issued by the terminal unit may be a system control interrupt (SCI), a system management interrupt, or an interrupt request (IRQ).

第2圖為本發明之控制方法之另一可能實施例。第2圖比第1多了步驟S210~S240。由於第2圖所示的步驟S110~S160均已介紹過,故不再贄述。在步驟S220中,判斷一還原功能是否被啟動。當還原功能被啟動時,則將熱鍵的資料欄位的資料還原成初始值(步驟S211),然後再執行步驟S110。Figure 2 is another possible embodiment of the control method of the present invention. The second figure has more steps S210 to S240 than the first one. Since steps S110 to S160 shown in FIG. 2 have been described, they will not be described again. In step S220, it is determined whether a restore function is activated. When the restore function is activated, the data of the data field of the hot key is restored to the initial value (step S211), and then step S110 is performed.

另外,還原功能的啟動與否,可由使用者自行決定。在一可能實施例中,使用者可在BIOS的功能選項內,決定是否啟動還原功能。當還原功能未被啟動時,則判斷是否按下一第二功能鍵(步驟S220)。第二功能鍵可為數字鍵、字母鍵或是F1~F12。In addition, the activation of the restore function can be determined by the user. In a possible embodiment, the user can decide whether to enable the restore function within the function options of the BIOS. When the restoration function is not activated, it is judged whether or not a second function key is pressed (step S220). The second function key can be a numeric key, a letter key or F1~F12.

若第二功能鍵未被按下時,則執行步驟S210。當該第二功能鍵被按下時,根據資料欄位的資料及第二功能鍵,輸出一第二鍵盤編碼(步驟S230)。If the second function key is not pressed, step S210 is performed. When the second function key is pressed, a second keyboard code is output according to the data field data and the second function key (step S230).

在本實施例中,由於還原功能未被啟動,故資料欄位的資料仍保存著,故控制器可依據資料欄位的資料以及被按下的第二功能鍵,輸出第二鍵盤編碼。In this embodiment, since the restoration function is not activated, the data of the data field is still stored, so the controller can output the second keyboard code according to the data of the data field and the second function key that is pressed.

舉例而言,當還原功能未被啟動時,若使用者按下熱鍵(Fn)以及功能鍵(F1及F2)時,則控制器可輸出兩鍵盤編碼,其中兩鍵盤編碼之一者對應Fn+F1,另一者對應Fn+F2。根據兩鍵盤編碼,作業系統將執行兩服務程式(如調整螢幕亮度、或是調整喇叭音量)。因此,在此實施例中,使用者不需再次按下熱鍵,但仍可得到所需的結果。For example, when the restore function is not activated, if the user presses the hot key (Fn) and the function keys (F1 and F2), the controller can output two keyboard codes, where one of the two keyboard codes corresponds to Fn. +F1, the other corresponds to Fn+F2. Based on the two keyboard codes, the operating system will execute two service programs (such as adjusting the brightness of the screen or adjusting the speaker volume). Therefore, in this embodiment, the user does not need to press the hotkey again, but the desired result can still be obtained.

當還原功能被啟動時,若使用者按下熱鍵(Fn)以及功能鍵(F1及F2)時,則控制器僅輸出一鍵盤編碼,其中該鍵盤編碼之一者對應Fn+F1。因此,作業系統僅會執行一服務程式。關於先前所按下的功能鍵F2,作業系統將執行功能鍵F2本身的功能(如儲存、復原等)。When the restore function is activated, if the user presses the hot key (Fn) and the function keys (F1 and F2), the controller outputs only one keyboard code, wherein one of the keyboard codes corresponds to Fn+F1. Therefore, the operating system will only execute one service program. Regarding the previously pressed function key F2, the operating system will perform the functions of the function key F2 itself (such as storage, restoration, etc.).

第3A及3B圖為控制器取得鍵盤編碼的一可能實施例。請參考第3A圖,當熱鍵Fn被按下時,則程式將跳至位址1。接著,若功能鍵F1被按下時,則可得知熱鍵Fn與功能鍵F1的組合係對應鍵盤編碼keycode 11。同樣地,在熱鍵Fn被按下後,若功能鍵F2被按下時,則可得知熱鍵Fn與功能鍵F2的組合係對應鍵盤編碼keycode 12,其餘組合依此類推。Figures 3A and 3B show a possible embodiment of the controller obtaining the keyboard code. Please refer to Figure 3A. When the hotkey Fn is pressed, the program will jump to address 1. Next, when the function key F1 is pressed, it can be known that the combination of the hot key Fn and the function key F1 corresponds to the keyboard code keycode 11. Similarly, after the hot key Fn is pressed, if the function key F2 is pressed, it can be known that the combination of the hot key Fn and the function key F2 corresponds to the keyboard code keycode 12, and the other combinations are analogous.

在第3B圖中,係說明熱鍵Alt與功能鍵組合之間的關係。當熱鍵Alt被按下時,則程式將跳到位址2。接著,若 功能鍵F2被按下時,則可得知熱鍵Alt與功能鍵F2的組合係對應鍵盤編碼keycode 22。In Fig. 3B, the relationship between the hot key Alt and the function key combination is explained. When the hotkey Alt is pressed, the program will jump to address 2. Then, if When the function key F2 is pressed, it can be known that the combination of the hot key Alt and the function key F2 corresponds to the keyboard code keycode 22.

第3C圖為控制器取得鍵盤編碼的另一可能實施例。當熱鍵Fn與功能鍵F1依序被按下時,則程式跳至位址0xA1。因此,可得到鍵盤編碼keycode 12。同樣地,當熱鍵Alt與功能鍵F1依序被按下時,則程式跳至位址0xB1。因此,可得到鍵盤編碼keycode 21。Figure 3C is another possible embodiment of the controller obtaining keyboard encoding. When the hotkey Fn and the function key F1 are sequentially pressed, the program jumps to the address 0xA1. Therefore, the keyboard code keycode 12 can be obtained. Similarly, when the hotkey Alt and the function key F1 are sequentially pressed, the program jumps to the address 0xB1. Therefore, the keyboard code keycode 21 can be obtained.

由第3A~3C圖可知,可待熱鍵與功能鍵均被按下後,再搜尋鍵碼表(如第3C圖),或是在熱鍵被按下時,便搜尋相對應的鍵碼表(如第3A及3B)。It can be seen from the figures 3A to 3C that after the hotkey and the function key are pressed, the key code table is searched (for example, FIG. 3C), or when the hotkey is pressed, the corresponding key code is searched. Table (eg, 3A and 3B).

第4圖為本發明之控制系統之示意圖。如圖所示,控制系統400包括,鍵盤410、控制單元420、終端單元430以及作業系統440。鍵盤410具有一熱鍵以及一第一功能鍵。當熱鍵被按下時,鍵盤410輸出一熱鍵掃描信號予控制單元420。當第一功能鍵被按下時,鍵盤410輸出一第一功能鍵掃描信號予控制單元420。Figure 4 is a schematic illustration of the control system of the present invention. As shown, the control system 400 includes a keyboard 410, a control unit 420, a terminal unit 430, and an operating system 440. The keyboard 410 has a hot key and a first function key. When the hot key is pressed, the keyboard 410 outputs a hot key scan signal to the control unit 420. When the first function key is pressed, the keyboard 410 outputs a first function key scan signal to the control unit 420.

本發明並不限制熱鍵與功能鍵的種類。在本實施例中,熱鍵係指按下不會產生任何動作的按鍵,而功能鍵恰好相反。當功能鍵被按下時,將會引起事件(如螢幕出現數字、字母)的發生。The invention does not limit the types of hot keys and function keys. In the present embodiment, the hot key refers to pressing a button that does not cause any action, and the function key is just the opposite. When the function key is pressed, it will cause an event (such as the occurrence of numbers, letters on the screen).

舉例而言,熱鍵可為鍵盤上的按鍵Fn、Alt、Ctrl、Shift等,而功能鍵可為數字鍵、字母鍵或是F1~F12等。另外,本發明並不限制在按下功能鍵時,是否需放開熱鍵。使用者可依習慣或方便性,選擇持續按住或放開熱鍵。因此,在按下功能鍵的同時,熱鍵可能處於被按下或被放開的狀態。For example, the hot key can be the keys Fn, Alt, Ctrl, Shift, etc. on the keyboard, and the function keys can be numeric keys, letter keys or F1~F12. In addition, the present invention is not limited to whether or not the hot key needs to be released when the function key is pressed. The user can choose to keep pressing or releasing the hot key according to the habit or convenience. Therefore, while the function key is pressed, the hot key may be in a state of being pressed or released.

在一可能實施例中,當熱鍵持續被按下時,若按下第一功能鍵,鍵盤410仍可輸出第一功能鍵掃描信號。在另一實施例中,在按下第一功能鍵時,熱鍵已被放開。In a possible embodiment, when the hot key is continuously pressed, if the first function key is pressed, the keyboard 410 can still output the first function key scan signal. In another embodiment, the hotkey has been released when the first function key is pressed.

控制單元420根據鍵盤410輸出的信號,便可得知被按下的按鍵的種類。控制單元420係為一鍵盤控制器(keyboard controller;KBC),或是一嵌入式控制器(embedded controllers;EC)。The control unit 420 can know the type of the pressed button based on the signal output from the keyboard 410. The control unit 420 is a keyboard controller (KBC) or an embedded controller (EC).

當鍵盤410輸出一熱鍵掃描信號時,控制單元420更新該熱鍵掃描信號所對應的一資料欄位的資料。本發明並不限制資料欄位的數量。不同的熱鍵掃描信號對應不同的料欄位。在本實施例中,資料欄位的資料表示相對應的熱鍵被按下的次數。另外,資料欄位的初始資料可能為0或是其它數值。When the keyboard 410 outputs a hot key scan signal, the control unit 420 updates the data of a data field corresponding to the hot key scan signal. The invention does not limit the number of data fields. Different hotkey scan signals correspond to different material fields. In this embodiment, the data of the data field indicates the number of times the corresponding hot key is pressed. In addition, the initial data of the data field may be 0 or other values.

在接收到熱鍵掃描信號後,若鍵盤410輸出第一功能鍵掃描信號時,控制單元420根據資料欄位的資料以及第一功能鍵掃描信號,輸出一鍵盤編碼keycode。控制單元420搜尋鍵盤編碼keycode的方法可採用第3A~3C圖所示的方法。After receiving the hot key scan signal, if the keyboard 410 outputs the first function key scan signal, the control unit 420 outputs a keyboard code keycode according to the data field data and the first function key scan signal. The method in which the control unit 420 searches for the keyboard code keycode can adopt the method shown in FIGS. 3A to 3C.

另外,當一還原功能未被啟動時,在熱鍵以及第一功能鍵被按下後,若一第二功能鍵被按下時,鍵盤410輸出一第二功能鍵掃描信號。控制單元420根據資料欄位的資料、第一及第二功能鍵掃描信號,輸出第一及第二鍵盤編碼(如keycode 11及keycode 12)。In addition, when a restore function is not activated, after the hot key and the first function key are pressed, if a second function key is pressed, the keyboard 410 outputs a second function key scan signal. The control unit 420 outputs the first and second keyboard codes (such as keycode 11 and keycode 12) according to the data of the data field, the first and second function key scan signals.

相反地,當還原功能啟動時,在熱鍵以及第一功能鍵被按下後,若一第二功能鍵被按下時,鍵盤410仍將輸出一第二功能鍵掃描信號。然而,控制單元420僅根據資料 欄位的資料以及第一功能鍵掃描信號,輸出第一鍵盤編碼(如keycode 11)。至於第二功能鍵掃描信號,控制單元420並不會組合熱鍵掃描信號與第二功能鍵掃描信號。Conversely, when the restore function is activated, after the hot key and the first function key are pressed, if a second function key is pressed, the keyboard 410 will still output a second function key scan signal. However, the control unit 420 is based only on data The data of the field and the first function key scan signal output the first keyboard code (such as keycode 11). As for the second function key scan signal, the control unit 420 does not combine the hot key scan signal and the second function key scan signal.

當終端單元430接收到鍵盤編碼keycode時,便發出一中斷要求(如SCI或SMI),用以中斷目前正在執行的程式。在中斷期間,作業系統440根據鍵盤編號keycode,執行一服務程式(如增加/減少螢幕亮度,或是增加/降低喇叭音量)。在本實施例中,終端單元430包括一南橋(south-bridge)晶片。南橋晶片(未顯示)發出中斷要求SCI、SMI或IRQ。When the terminal unit 430 receives the keyboard code keycode, it issues an interrupt request (such as SCI or SMI) to interrupt the currently executing program. During the interruption, the operating system 440 executes a service program (such as increasing/decreasing screen brightness or increasing/decreasing the speaker volume) based on the keyboard number keycode. In the present embodiment, the terminal unit 430 includes a south-bridge wafer. The South Bridge chip (not shown) issues an interrupt request for SCI, SMI or IRQ.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

S110~S160、S210~S240‧‧‧步驟S110~S160, S210~S240‧‧‧ steps

400‧‧‧控制系統400‧‧‧Control system

410‧‧‧鍵盤410‧‧‧ keyboard

420‧‧‧控制單元420‧‧‧Control unit

430‧‧‧終端單元430‧‧‧terminal unit

440‧‧‧作業系統440‧‧‧ operating system

第1圖為本發明之控制方法之一可能實施例。Figure 1 is a possible embodiment of a control method of the present invention.

第2圖為本發明之控制方法之另一可能實施例。Figure 2 is another possible embodiment of the control method of the present invention.

第3A及3B圖為控制器取得鍵盤編碼的一可能實施例。Figures 3A and 3B show a possible embodiment of the controller obtaining the keyboard code.

第3C圖為控制器取得鍵盤編碼的另一可能實施例。Figure 3C is another possible embodiment of the controller obtaining keyboard encoding.

第4圖為本發明之控制系統之示意圖。Figure 4 is a schematic illustration of the control system of the present invention.

S110~S160‧‧‧步驟S110~S160‧‧‧Steps

Claims (13)

一種控制方法,包括下列步驟:判斷是否按下一熱鍵;當該熱鍵被按下時,更新一資料欄位的資料;判斷是否按下一第一功能鍵;當該第一功能鍵被按下時,根據該資料欄位的資料及該第一功能鍵,輸出一第一鍵盤編碼;以及根據該第一鍵盤編碼,執行一第一服務程式,其中該資料欄位表示該熱鍵被按下的次數。 A control method comprising the steps of: determining whether a hot key is pressed; updating the data of a data field when the hot key is pressed; determining whether a first function key is pressed; when the first function key is When pressed, outputting a first keyboard code according to the data of the data field and the first function key; and executing a first service program according to the first keyboard code, wherein the data field indicates that the hot key is The number of times pressed. 如申請專利範圍第1項所述之控制方法,其中利用一控制單元輸出該第一鍵盤編碼,並使一終端單元根據該第一鍵盤編碼,執行該第一服務程式,該終端單元發出一中斷要求,一作業系統在中斷期間,執行該第一服務程式,該中斷要求係為一系統控制中斷(system control interrupt;SCI)或是一系統管理中斷(system management interrupt)。 The control method of claim 1, wherein the first keyboard code is output by a control unit, and a terminal unit executes the first service program according to the first keyboard code, and the terminal unit issues an interrupt. It is required that an operating system executes the first service program during an interrupt, and the interrupt request is a system control interrupt (SCI) or a system management interrupt. 如申請專利範圍第1項所述之控制方法,其中在該第一功能鍵被按下時,該熱鍵仍為按下狀態。 The control method of claim 1, wherein the hot key is still in a pressed state when the first function key is pressed. 如申請專利範圍第1項所述之控制方法,其中在該第一功能鍵被按下時,該熱鍵已被放開。 The control method of claim 1, wherein the hot key has been released when the first function key is pressed. 如申請專利範圍第1項所述之控制方法,更包括:判斷一還原功能是否被啟動;當該還原功能未被啟動時,則在該第一功能鍵被按下後,判斷是否按下一第二功能鍵;當該第二功能鍵被按下時,根據該資料欄位及該第二功能鍵,輸出一第二鍵盤編碼;根據該第二鍵盤編碼,執行一第二服務程式;以及 當該還原功能啟動時,若在該第一功能鍵被按下後,該第二功能鍵被按下時,不執行該第二服務程式。 The control method of claim 1, further comprising: determining whether a restore function is activated; when the restore function is not activated, determining whether to press a button after the first function button is pressed a second function key; when the second function key is pressed, outputting a second keyboard code according to the data field and the second function key; and executing a second service program according to the second keyboard code; When the restore function is activated, if the second function key is pressed after the first function key is pressed, the second service program is not executed. 一種控制系統,包括:一鍵盤,具有一熱鍵以及一第一功能鍵,當該熱鍵被按下時,該鍵盤輸出一熱鍵掃描信號,當該第一功能鍵被按下時,該鍵盤輸出一第一功能鍵掃描信號;一控制單元,當該鍵盤輸出該熱鍵掃描信號時,該控制單元更新一資料欄位的資料,在接收到該熱鍵掃描信號後,若該鍵盤輸出該第一功能鍵掃描信號時,該控制單元根據該資料欄位的資料以及該第一功能鍵掃描信號,輸出一鍵盤編碼;以及一終端單元,當接收到該鍵盤編碼時,該終端單元發出一中斷要求;其中,當一作業系統得知該中斷要求時,則根據該鍵盤編碼,執行一服務程式。 A control system includes: a keyboard having a hot key and a first function key, when the hot key is pressed, the keyboard outputs a hot key scan signal, when the first function key is pressed, the The keyboard outputs a first function key scan signal; a control unit, when the keyboard outputs the hot key scan signal, the control unit updates the data of a data field, and after receiving the hot key scan signal, if the keyboard output When the first function key scans the signal, the control unit outputs a keyboard code according to the data of the data field and the first function key scan signal; and a terminal unit, when receiving the keyboard code, the terminal unit sends out An interrupt request; wherein, when an operating system knows the interrupt request, a service program is executed according to the keyboard code. 如申請專利範圍第6項所述之控制系統,其中該控制單元係為一鍵盤控制器(keyboard controller;KBC),或是一嵌入式控制器(embedded controllers;EC)。 The control system of claim 6, wherein the control unit is a keyboard controller (KBC) or an embedded controller (EC). 如申請專利範圍第6項所述之控制系統,其中該終端單元包括一南橋,該南橋發出該中斷要求,該中斷要求係為一系統控制中斷(system control interrupt;SCI)或是一系統管理中斷(system management interrupt)。 The control system of claim 6, wherein the terminal unit comprises a south bridge, the south bridge issues the interrupt request, and the interrupt request is a system control interrupt (SCI) or a system management interrupt. (system management interrupt). 如申請專利範圍第6項所述之控制系統,其中在該熱鍵持續被按下時,若按下該第一功能鍵,該鍵盤仍可輸出該第一功能鍵掃描信號。 The control system of claim 6, wherein the keyboard can still output the first function key scan signal if the first function key is pressed while the hot key is continuously pressed. 如申請專利範圍第6項所述之控制系統,其中在按 下該第一功能鍵時,該熱鍵已被放開。 For example, in the control system described in claim 6, wherein When the first function key is pressed, the hot key has been released. 如申請專利範圍第6項所述之控制系統,其中當一還原功能未被啟動時,在該熱鍵以及該第一功能鍵被按下後,若一第二功能鍵被按下時,該鍵盤輸出一第二功能鍵掃描信號;該控制單元根據該資料欄位及該第二功能鍵掃描信號,輸出一第二鍵盤編碼;該作業系統根據該第二鍵盤編碼,執行一第二服務程式。 The control system of claim 6, wherein when a restore function is not activated, after the hot key and the first function key are pressed, if a second function key is pressed, The keyboard outputs a second function key scan signal; the control unit outputs a second keyboard code according to the data field and the second function key scan signal; the operating system executes a second service program according to the second keyboard code . 如申請專利範圍第6項所述之控制系統,其中當一還原功能啟動時,在該熱鍵以及該第一功能鍵被按下後,若一第二功能鍵被按下時,該鍵盤輸出一第二功能鍵掃描信號;該控制單元僅根據該第二功能鍵掃描信號,輸出一第二鍵盤編碼。 The control system of claim 6, wherein when a restore function is activated, after the hot key and the first function key are pressed, if a second function key is pressed, the keyboard output a second function key scans the signal; the control unit outputs a second keyboard code based only on the second function key scan signal. 如申請專利範圍第6項所述之控制系統,其中該資料欄位表示該熱鍵被按下的次數。 The control system of claim 6, wherein the data field indicates the number of times the hot key is pressed.
TW98124975A 2009-07-24 2009-07-24 Control method and control system utilizing the same TWI408569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98124975A TWI408569B (en) 2009-07-24 2009-07-24 Control method and control system utilizing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98124975A TWI408569B (en) 2009-07-24 2009-07-24 Control method and control system utilizing the same

Publications (2)

Publication Number Publication Date
TW201104502A TW201104502A (en) 2011-02-01
TWI408569B true TWI408569B (en) 2013-09-11

Family

ID=44813661

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98124975A TWI408569B (en) 2009-07-24 2009-07-24 Control method and control system utilizing the same

Country Status (1)

Country Link
TW (1) TWI408569B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6198474B1 (en) * 1997-07-02 2001-03-06 William H. Roylance Computer keyboard having full-sized keys suitable for touch typing and thumb operable space key also acting as a shift key
US7029191B2 (en) * 2002-04-26 2006-04-18 Lite-On Technology Corporation Apparatus for inputting special character and method for the same
TW200905520A (en) * 2007-07-30 2009-02-01 Wistron Corp Method for differentiating hotkeys and computer apparatus thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6198474B1 (en) * 1997-07-02 2001-03-06 William H. Roylance Computer keyboard having full-sized keys suitable for touch typing and thumb operable space key also acting as a shift key
US7029191B2 (en) * 2002-04-26 2006-04-18 Lite-On Technology Corporation Apparatus for inputting special character and method for the same
TW200905520A (en) * 2007-07-30 2009-02-01 Wistron Corp Method for differentiating hotkeys and computer apparatus thereof

Also Published As

Publication number Publication date
TW201104502A (en) 2011-02-01

Similar Documents

Publication Publication Date Title
US8700829B2 (en) Systems and methods for implementing a multi-function mode for pressure sensitive sensors and keyboards
US7721227B2 (en) Method for describing alternative actions caused by pushing a single button
US9838524B2 (en) Apparatus and method for controlling operation of mobile terminal
KR20190100339A (en) Application switching method, device and graphical user interface
US20140055235A1 (en) Mobile terminal and lock function operation method therefor
US20030107557A1 (en) Control of unintended single-tap actuation of a computer touch pad pointing device
CN109491573B (en) Electronic device control method and electronic device for executing the method
US10048862B2 (en) Managing an on-screen keyboard
US7616194B2 (en) Key lock means and application method of the same
WO2015003648A1 (en) Terminal device and locking/unlocking method therefor
WO2014161305A1 (en) Method and terminal for variable touch keyboard keys
JP3684183B2 (en) Information processing device
US9696793B2 (en) Systems and methods for selectably suppressing computing input events triggered by variable pressure and variable displacement sensors
TWI408569B (en) Control method and control system utilizing the same
TWI511452B (en) Key module and signal generating method thereof
CN106354273B (en) A kind of method and smart machine manipulating smart machine
US20090070491A1 (en) Method for executing target programs with compound quick keys
JP4902709B2 (en) Control method and control system thereof
CN107273238B (en) Control method for operation of radio frequency device and mobile terminal
US8284078B2 (en) Control method and control system
WO2018135299A1 (en) Information processing device and signal control program
KR101147557B1 (en) A method and a system for controlling a hot key with combination function
TWI745961B (en) Electronic apparatus and key function switching method thereof
EP2290502A1 (en) Control method and control system utilizing the same
TWI530876B (en) Macro instruction auto-switching system and method thereof