TWI470480B - Method and appratus for executing device functions by using combination key to replace fn key - Google Patents

Method and appratus for executing device functions by using combination key to replace fn key Download PDF

Info

Publication number
TWI470480B
TWI470480B TW100106908A TW100106908A TWI470480B TW I470480 B TWI470480 B TW I470480B TW 100106908 A TW100106908 A TW 100106908A TW 100106908 A TW100106908 A TW 100106908A TW I470480 B TWI470480 B TW I470480B
Authority
TW
Taiwan
Prior art keywords
key
function
combination
keys
parameter value
Prior art date
Application number
TW100106908A
Other languages
Chinese (zh)
Other versions
TW201235887A (en
Inventor
Hao Tang
Yuan-Yuan Liu
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Publication of TW201235887A publication Critical patent/TW201235887A/en
Application granted granted Critical
Publication of TWI470480B publication Critical patent/TWI470480B/en

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

使用組合鍵替代Fn鍵以執行裝置功能的方法及裝置Method and apparatus for performing device functions using a combination of keys instead of Fn keys

本發明是有關於一種執行裝置功能的方法及裝置,且特別是有關於一種使用組合鍵替代Fn鍵以執行裝置功能的方法及裝置。The present invention relates to a method and apparatus for performing device functions, and more particularly to a method and apparatus for using a combination of keys instead of Fn keys to perform device functions.

在筆記型電腦功能的測試階段中,測試人員需使用內置鍵盤來測試裝置功能是否正常,尤其是需要使用Fn鍵結合F1~F12等功能鍵來啟動的裝置功能。然而在取得內置鍵盤之前,測試人員只能藉由外接鍵盤來測試,但外接鍵盤上沒有Fn鍵,因此仍無法測試筆記型電腦的Fn鍵功能是否正常,所以若要測試完整的功能,一定要等到筆記型電腦的鍵盤送達時才可進行。In the test phase of the notebook function, the tester needs to use the built-in keyboard to test whether the device function is normal, especially the device function that needs to be activated by using the Fn key combined with the function keys F1~F12. However, before the built-in keyboard is obtained, the tester can only test by using an external keyboard, but there is no Fn button on the external keyboard, so it is still impossible to test whether the Fn key function of the notebook is normal, so to test the complete function, it is necessary to Wait until the keyboard of the notebook is delivered.

另一方面,就電腦遊戲的領域而言,相較於觸感較淺的筆記型電腦鍵盤,使用者較喜愛使用觸感深的外接式鍵盤,但在遊戲中經常需要運用Fn鍵來執行特定功能,而由於外接鍵盤上沒有Fn鍵,因此使用者在需要使用到Fn鍵時,還是必須按下內置鍵盤上的Fn鍵,對於使用者而言相當不便。此外,筆記型電腦的內置鍵盤較昂貴,若內置鍵盤的Fn鍵因按壓次數過多而損壞,要置換整個內置鍵盤的花費較多。On the other hand, in the field of computer games, users prefer to use a touch-sensitive external keyboard compared to a touch-sensitive notebook keyboard, but in the game, it is often necessary to use the Fn key to perform a specific Function, and because there is no Fn button on the external keyboard, the user still has to press the Fn button on the built-in keyboard when the Fn button is needed, which is quite inconvenient for the user. In addition, the built-in keyboard of the notebook computer is relatively expensive. If the Fn key of the built-in keyboard is damaged due to too many pressing times, it is more expensive to replace the entire built-in keyboard.

本發明提供一種使用組合鍵替代Fn鍵以執行裝置功能的方法及裝置,可使用外接鍵盤來達成內置鍵盤上Fn鍵的功能,本發明提出一種使用組合鍵替代Fn鍵以執行裝置功能的方法,適於以外接鍵盤上的組合鍵替代電子裝置之內置鍵盤上的Fn鍵,其中此內置鍵盤耦接至此電子裝置之內嵌控制器,而此外接鍵盤透過連接介面連接至此電子裝置,此方法包括定義Fn鍵與多個功能鍵中的每一個結合所對應的參數值,並記錄作為此內嵌控制器的程式碼(EC code)。接著,接收此外接鍵盤被按壓所產生的掃描碼,而利用應用程式將組合鍵及功能鍵其中之一結合的掃描碼轉換為Fn鍵與此功能鍵結合所對應的參數值,並填入內嵌控制器的記憶體。內嵌控制器即根據所記錄的程式碼將參數值所對應之Fn鍵與此功能鍵結合的掃描碼傳送至作業系統(亦可發送系統控制中斷(System Control Interrupt,SCI)或以其它方式通知作業系統,發送掃描碼或發SCI或以其他方式通知操作系統都取決于內置鍵盤上Fn鍵與功能鍵結合的實現方式),以執行Fn鍵與此功能鍵結合所對應的裝置功能。The present invention provides a method and apparatus for performing a device function by using a combination key instead of an Fn key, and an external keyboard can be used to achieve the function of the Fn key on the built-in keyboard. The present invention proposes a method of using a combination key instead of the Fn key to perform a device function. The Fn key on the built-in keyboard of the electronic device is replaced by a combination key on the external keyboard, wherein the built-in keyboard is coupled to the embedded controller of the electronic device, and the external keyboard is connected to the electronic device through the connection interface, and the method includes Define the parameter value corresponding to each of the Fn key and each of the multiple function keys, and record the code (EC code) as the embedded controller. Then, receiving the scan code generated by the pressing of the keyboard, the application program converts the scan code combined with one of the combination key and the function key into a parameter value corresponding to the combination of the Fn key and the function key, and fills in the parameter value. The memory of the embedded controller. The embedded controller transmits the scan code combined with the Fn key corresponding to the parameter value and the function key to the operating system according to the recorded code (can also send a System Control Interrupt (SCI) or otherwise notify The operating system, sending a scan code or sending an SCI or otherwise notifying the operating system depends on the implementation of the combination of the Fn key and the function key on the built-in keyboard) to perform the device function corresponding to the combination of the Fn key and the function key.

在本發明之一實施例中,上述方法在定義Fn鍵與多個功能鍵中的每一個結合所對應的參數值,並記錄作為此內嵌控制器的程式碼的步驟之後,更包括接收遠端裝置發送之掃描碼,並利用應用程式將組合鍵及功能鍵其中之一結合之掃描碼轉換為Fn鍵與此功能鍵結合所對應的參數值,並填入內嵌控制器的記憶體。此內嵌控制器即根據定義將此參數值所對應之Fn鍵與此功能鍵結合的掃描碼傳送至作業系統(亦可發送SCI或以其它方式通知作業系統,發送掃描碼或發SCI或以其他方式通知操作系統都取決于內置鍵盤上Fn鍵與功能鍵結合的實現方式),以執行Fn鍵與此功能鍵結合所對應的裝置功能。In an embodiment of the present invention, after the step of defining a parameter value corresponding to each of the Fn key and the plurality of function keys, and recording the code as the embedded controller, the method further includes receiving the far The scan code sent by the end device, and the application program converts the scan code combined with one of the combination key and the function key into a parameter value corresponding to the Fn key and the function key, and fills in the memory of the embedded controller. The embedded controller transmits the scan code combined with the Fn key corresponding to the function key to the operating system according to the definition (it may also send the SCI or otherwise notify the operating system, send the scan code or send the SCI or Other ways to notify the operating system depends on the implementation of the combination of the Fn key and the function key on the built-in keyboard) to perform the device function corresponding to the combination of the Fn key and the function key.

在本發明之一實施例中,上述方法在利用應用程式將組合鍵及功能鍵其中之一結合之掃描碼轉換為Fn鍵與此功能鍵結合所對應的參數值的步驟之前,更包括執行此應用程式以顯示組合鍵的設定介面,並接收使用者在此設定介面中所選擇的組合鍵,而以此組合鍵替代Fn鍵。In an embodiment of the present invention, before the step of converting the scan code combined with one of the combination key and the function key into a parameter value corresponding to the Fn key and the function key by using the application program, the method further includes: The application displays the setting interface of the key combination and receives the key combination selected by the user in the setting interface, and replaces the Fn key with the combination key.

在本發明之一實施例中,上述方法在執行應用程式以顯示組合鍵的設定介面的步驟之後,更包括於此設定介面中顯示組合鍵與各功能鍵結合所對應的軟體按鍵,以及接收此軟體按鍵的選擇指令,而轉換為Fn鍵與此功能鍵結合所對應的參數值。In an embodiment of the present invention, after the step of executing the application to display the setting interface of the combination key, the method further includes displaying the software button corresponding to the combination of the combination key and each function key in the setting interface, and receiving the The selection command of the soft button is converted to the parameter value corresponding to the combination of the Fn key and the function key.

在本發明之一實施例中,上述方法在將參數值填入內嵌控制器的記憶體的步驟之前,更包括根據進階組態與電源介面(Advanced configuration and power interface,ACPI)定義內嵌控制器之記憶體中的一位元組作為與應用程式溝通的介面,並用以填入參數值,使得此內嵌控制器可藉由訪問此介面以取得參數值,而執行程式碼所定義的動作。In an embodiment of the present invention, the method further includes defining an inline according to an advanced configuration and power interface (ACPI) before the step of filling the parameter value into the memory of the embedded controller. A tuple in the memory of the controller acts as an interface for communicating with the application and is used to fill in the parameter values, so that the embedded controller can access the interface to obtain the parameter value and execute the code defined by the code. action.

本發明提出一種使用組合鍵替代Fn鍵以執行裝置功能的裝置,其包括內嵌控制器、外接鍵盤、內置鍵盤、系統記憶體以及處理器。其中,內嵌控制器具有記憶體。外接鍵盤具有多個按鍵,並在此些按鍵被按壓時產生掃描碼。內置鍵盤耦接於此內嵌控制器,具有Fn鍵及多個功能鍵。系統記憶體,記錄此內嵌控制器的程式碼,其中此內嵌控制器的程式碼係定義Fn鍵與各功能鍵結合所對應的參數值。處理器接收外接鍵盤產生之此掃描碼,執行應用程式以將此組合鍵與功能鍵其中之一結合之掃描碼轉換為Fn鍵與此功能鍵結合所對應的此參數值,並填入內嵌控制器的此記憶體。其中,內嵌控制器係根據程式碼將此參數值所對應之Fn鍵與功能鍵結合的掃描碼傳送至作業系統(亦可發送SCI或以其它方式通知作業系統,發送掃描碼或發SCI或以其他方式通知操作系統都取決于內置鍵盤上Fn鍵與功能鍵結合的實現方式),以執行Fn鍵與此功能鍵結合所對應的裝置功能。The present invention provides an apparatus for performing a device function using a combination key instead of an Fn key, which includes an embedded controller, an external keyboard, a built-in keyboard, a system memory, and a processor. Among them, the embedded controller has a memory. The external keyboard has a plurality of keys and generates a scan code when the keys are pressed. The built-in keyboard is coupled to the embedded controller and has an Fn key and a plurality of function keys. The system memory records the code of the embedded controller, wherein the code of the embedded controller defines a parameter value corresponding to the combination of the Fn key and each function key. The processor receives the scan code generated by the external keyboard, and executes an application to convert the scan code combined with one of the function keys and the function key into a value corresponding to the Fn key and the function key, and fill in the embedded value. This memory of the controller. The embedded controller transmits the scan code combined with the Fn key and the function key corresponding to the parameter value to the operating system according to the code (can also send the SCI or otherwise notify the operating system, send the scan code or send the SCI or The other means of notifying the operating system depends on the implementation of the combination of the Fn key and the function key on the built-in keyboard) to perform the device function corresponding to the combination of the Fn key and the function key.

在本發明之一實施例中,上述之裝置更包括通訊介面,此通訊介面接收遠端裝置傳送之此掃描碼,而由處理器執行應用程式以將組合鍵及功能鍵其中之一結合之掃描碼轉換為Fn鍵與此功能鍵結合所對應的參數值。In an embodiment of the invention, the device further includes a communication interface, the communication interface receives the scan code transmitted by the remote device, and the processor executes the application to combine the combination of the key and the function key. The code is converted to a parameter value corresponding to the combination of the Fn key and the function key.

在本發明之一實施例中,上述之處理器更包括執行應用程式以顯示組合鍵的設定介面,並接收使用者在此設定介面中所選擇的組合鍵,而以此組合鍵替代Fn鍵。In an embodiment of the invention, the processor further includes an execution application to display a setting interface of the combination key, and receives a combination key selected by the user in the setting interface, and the combination key replaces the Fn key.

在本發明之一實施例中,上述之處理器更包括於設定介面中顯示組合鍵與各功能鍵結合所對應的軟體按鍵,並接收此軟體按鍵的選擇指令,而轉換為Fn鍵與此功能鍵結合所對應的參數值。In an embodiment of the present invention, the processor further includes a software button corresponding to the combination of the combination key and each function key in the setting interface, and receives the selection instruction of the software button, and converts to the Fn key and the function. The key combines the corresponding parameter value.

在本發明之一實施例中,上述之內嵌控制器之記憶體中的一位元組係根據進階組態與電源介面定義為與應用程式溝通的介面,並用以填入參數值,使得此內嵌控制器可藉由訪問此介面以取得此參數值,而執行程式碼所定義的動作。In an embodiment of the present invention, one of the tuples in the memory of the embedded controller is defined as an interface for communicating with the application according to the advanced configuration and the power interface, and is used to fill in the parameter values, so that The embedded controller can perform the action defined by the code by accessing the interface to obtain the value of the parameter.

基於上述,本發明之使用組合鍵替代Fn鍵以執行裝置功能的方法及其裝置,藉由將外接鍵盤所接收之掃描碼,經由內嵌控制器及作業系統的應用程式作相應轉換,以執行Fn鍵與功能鍵結合所對應的裝置功能。Based on the above, the method and device for performing the function of the device by using the combination key instead of the Fn key of the present invention are performed by converting the scan code received by the external keyboard through the embedded controller and the application system of the operating system. The Fn key is combined with the function key to correspond to the device function.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

圖1是依照本發明一實施例所繪示的使用組合鍵替代Fn鍵以執行裝置功能的裝置方塊圖。本實施例之裝置100包括系統記憶體110、內嵌控制器120、處理器140、內置鍵盤160以及外接鍵盤180,其中內嵌控制器120中包括記憶體125。其中,內置鍵盤160耦接於內嵌控制器120,並具有Fn鍵及多個功能鍵,而在實際應用中,內置鍵盤160可為一筆記型電腦的鍵盤。外接鍵盤180例如是透過通用序列匯流排(Universal Serial Bus)等連接介面連接至裝置100。圖2是依照本發明一實施例所繪示的使用組合鍵替代Fn鍵以執行裝置功能之方法流程圖。1 is a block diagram of an apparatus for performing a function of a device by using a combination key instead of an Fn key, in accordance with an embodiment of the invention. The device 100 of the embodiment includes a system memory 110, an embedded controller 120, a processor 140, a built-in keyboard 160, and an external keyboard 180. The embedded controller 120 includes a memory 125. The built-in keyboard 160 is coupled to the embedded controller 120 and has an Fn key and a plurality of function keys. In practical applications, the built-in keyboard 160 can be a keyboard of a notebook computer. The external keyboard 180 is connected to the device 100, for example, through a connection interface such as a universal serial bus. 2 is a flow chart of a method for performing a device function using a combination key instead of an Fn key according to an embodiment of the invention.

請同時參照圖1及圖2。首先,在系統記憶體110裡定義Fn鍵與多個功能鍵(F1~F12)中每一個結合所對應的參數值,並記錄為內嵌控制器120的程式碼(步驟S202),舉例來說,此程式碼可將Fn+F1對應的參數值定義為1、Fn+F2對應的參數值定義為2、…、Fn+F7對應的參數值定義為7等。此處參數值與按鍵的對應關係會儲存在裝置100的系統記憶體110中,爾後每當內嵌控制器120接收到參數值時,即可藉由查詢系統記憶體110而得知所對應的按鍵組合。Please refer to FIG. 1 and FIG. 2 at the same time. First, a parameter value corresponding to each of the Fn key and each of the plurality of function keys (F1 to F12) is defined in the system memory 110, and is recorded as a code of the embedded controller 120 (step S202), for example, This code can define the parameter value corresponding to Fn+F1 as 1. The parameter value corresponding to Fn+F2 is defined as 2, ..., and the parameter value corresponding to Fn+F7 is defined as 7 or the like. Here, the correspondence between the parameter value and the button is stored in the system memory 110 of the device 100, and each time the embedded controller 120 receives the parameter value, the corresponding memory can be obtained by querying the system memory 110. Button combination.

接著,處理器140接收外接鍵盤180被按壓所產生的掃描碼(步驟S204),外接鍵盤180具有多個按鍵,在按鍵被按壓時,將產生掃描碼送至處理器140,例如在組合鍵Ctrl+shift及功能鍵F7被按壓時,外接鍵盤180會將此些按鍵的掃描碼傳送至處理器140。處理器140接收到掃描碼之後,則會利用應用程式將此組合鍵Ctrl+shift及功能鍵F7結合的掃描碼轉換為Fn鍵與此功能鍵F7結合所對應的參數值7(步驟S206)。簡言之,應用程式係將外接鍵盤的組合鍵Ctrl+shift轉換為內置鍵盤上的Fn鍵,至於要由何組合鍵來替代Fn鍵可由系統預設或由使用者自訂。上述的應用程式也可適用於內置鍵盤,因為不管是內置鍵盤還是外置鍵盤,操作系統中的應用程式都可以收到其發送的掃描碼。Next, the processor 140 receives the scan code generated by the external keyboard 180 being pressed (step S204), and the external keyboard 180 has a plurality of buttons. When the button is pressed, the scan code is generated and sent to the processor 140, for example, in the combination key Ctrl. When the +shift and function keys F7 are pressed, the external keyboard 180 transmits the scan codes of the keys to the processor 140. After receiving the scan code, the processor 140 converts the scan code combined with the combination key Ctrl+shift and the function key F7 into a parameter value 7 corresponding to the Fn key combined with the function key F7 (step S206). In short, the application converts the combination key Ctrl+shift of the external keyboard to the Fn key on the built-in keyboard. As for which combination of keys to replace the Fn key, it can be preset by the system or customized by the user. The above application can also be applied to the built-in keyboard, because the application in the operating system can receive the scan code sent by the application whether it is a built-in keyboard or an external keyboard.

需說明的是,在本發明的另一實施例中,外接鍵盤180被按壓所產生的掃描碼,亦可為遠端裝置所發送之掃描碼,適用於使用者欲從遠端裝置連線至本地端,使用組合鍵替代Fn鍵來執行裝置功能之時。It should be noted that, in another embodiment of the present invention, the scan code generated by pressing the external keyboard 180 may also be the scan code sent by the remote device, and is suitable for the user to connect from the remote device to the remote device. On the local side, use the combination key instead of the Fn key to perform the device function.

之後,處理器140將此參數值7填入內嵌控制器120的記憶體125(步驟S208)。其中,本實施例係根據進階組態與電源介面(advanced configuration and power interface,ACPI)將內嵌控制器120之記憶體125中的一個位元組定義為與處理器140之應用程式溝通的介面,處理器140可將參數值7填入此位元組,使得內嵌控制器120可藉由訪問此位元組取得參數值7,而據以執行相應動作。Thereafter, the processor 140 fills the parameter value 7 into the memory 125 of the embedded controller 120 (step S208). The embodiment defines a byte in the memory 125 of the embedded controller 120 as being communicated with the application of the processor 140 according to an advanced configuration and power interface (ACPI). The processor 140 can fill in the parameter value 7 into the byte group, so that the embedded controller 120 can obtain the parameter value 7 by accessing the byte group, thereby performing the corresponding action.

詳言之,內嵌控制器120係根據程式碼,在系統記憶體110中擷取此參數值所對應之Fn鍵與功能鍵結合的掃描碼,並傳送至處理器140的作業系統(亦可發送系統控制中斷(System Control Interrupt,SCI)或以其它方式通知作業系統,發送掃描碼或發SCI或以其他方式通知操作系統都取決于內置鍵盤上Fn鍵與功能鍵結合的實現方式)(步驟S210)。例如,在系統記憶體110中,擷取參數值7所對應之Fn鍵與功能鍵F7結合的掃描碼,並傳送至處理器140的作業系統,之後處理器140執行Fn鍵與功能鍵F7結合所對應的裝置功能(步驟S212),例如致能筆記型電腦的觸控板。In detail, the embedded controller 120 captures the scan code combined with the Fn key and the function key corresponding to the parameter value in the system memory 110 according to the code, and transmits the scan code to the operating system of the processor 140 (also Sending a System Control Interrupt (SCI) or otherwise notifying the operating system, sending a scan code or sending an SCI or otherwise notifying the operating system depends on the implementation of the combination of the Fn key and the function key on the built-in keyboard) S210). For example, in the system memory 110, the scan code combined with the Fn key corresponding to the function value F7 is extracted and transmitted to the operating system of the processor 140, after which the processor 140 performs the Fn key and the function key F7. The corresponding device function (step S212), for example, enables the touchpad of the notebook computer.

圖3是依照本發明另一實施例所繪示的組合鍵設定方法的流程圖。圖4是依照本發明另一實施例所繪示的組合鍵設定介面的示意圖。請同時參照圖1、圖3及圖4。本實施例係說明本發明中組合鍵的設定部份。其中,處理器140執行應用程式以顯示組合鍵的設定介面400(步驟S302),使用者可在此設定要用來替代Fn鍵的組合鍵,例如在組合鍵方塊402輸入Ctrl及在組合鍵方塊404輸入Shift。接著處理器140接收使用者在設定介面400中所選擇輸入的組合鍵(Ctrl+shift),而利用此組合鍵替代Fn鍵(步驟S304)。FIG. 3 is a flowchart of a method for setting a combination key according to another embodiment of the present invention. 4 is a schematic diagram of a combination key setting interface according to another embodiment of the invention. Please refer to FIG. 1 , FIG. 3 and FIG. 4 at the same time. This embodiment illustrates the setting portion of the combination key in the present invention. The processor 140 executes an application to display the setting interface 400 of the combination key (step S302), where the user can set a combination key to be used instead of the Fn key, for example, inputting Ctrl and combining key blocks in the combination key block 402. 404 enter Shift. The processor 140 then receives the key combination (Ctrl+shift) selected by the user in the setting interface 400, and replaces the Fn key with the combination key (step S304).

需說明的是,上述的設定介面400中例如還會顯示組合鍵與功能鍵結合(如Fn鍵+F7)所對應的軟體按鍵406(步驟S306)。而當使用者點擊軟體按鍵406時,處理器140即會接收到軟體按鍵406的選擇指令,並將其轉換為Fn鍵與功能鍵結合所對應的參數值(步驟S308)。換言之,處理器140會將軟體按鍵406的輸入直接轉換為Fn鍵+F 7所對應的參數值7,而可達到替代Fn鍵的功效。此軟體按鍵406的配置提供一個實體按鍵之外測試Fn鍵或裝置功能的途徑,而可供使用者選擇運用。以上的組合鍵(Ctrl+shift)及軟體按鍵406僅做為實施範例,而不限定其種類或數量。It should be noted that, in the above-mentioned setting interface 400, for example, the software button 406 corresponding to the combination of the combination key and the function key (for example, Fn key + F7) is displayed (step S306). When the user clicks the software button 406, the processor 140 receives the selection command of the software button 406 and converts it into a parameter value corresponding to the combination of the Fn key and the function key (step S308). In other words, the processor 140 converts the input of the soft button 406 directly to the parameter value 7 corresponding to the Fn key + F7, and the effect of replacing the Fn key can be achieved. The configuration of the software button 406 provides a way to test the Fn key or device function outside of a physical button, and is available for the user to select. The above combination keys (Ctrl+shift) and software button 406 are merely examples of implementation, and are not limited in their kind or number.

綜上所述,本發明提出一種使用組合鍵替代Fn鍵以執行裝置功能的方法,適於以外接鍵盤上的組合鍵替代電子裝置內置鍵盤上的Fn鍵。在沒有內置鍵盤時,也可以測試Fn鍵的功能,並且使得外接鍵盤可達到與筆記型電腦的內置鍵盤相同功能,而多使用外接鍵盤亦可延長筆記型電腦內置鍵盤的壽命。In summary, the present invention proposes a method of using a combination key instead of the Fn key to perform a device function, and is suitable for replacing the Fn key on the built-in keyboard of the electronic device with a combination key on the external keyboard. When there is no built-in keyboard, you can also test the function of the Fn key, and make the external keyboard achieve the same function as the built-in keyboard of the notebook computer, and the use of an external keyboard can extend the life of the built-in keyboard of the notebook computer.

此外,筆記型電腦的輻射量大,若使用外接鍵盤能實現Fn鍵的功能,使用者可以距離筆記型電腦的螢幕遠些,藉以減少筆記型電腦輻射對人體的傷害,有益健康。而以經濟效益來考量,用組合鍵來替代Fn鍵相對於普通鍵盤來說就是節省一個鍵,可以降低生產成本。In addition, the notebook computer has a large amount of radiation. If an external keyboard can be used to implement the Fn key function, the user can be farther away from the screen of the notebook computer, thereby reducing the damage of the notebook computer to the human body and being healthy. Considering the economic benefits, using the combination key instead of the Fn key saves one key compared to the ordinary keyboard, which can reduce the production cost.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above 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. The scope of the invention is defined by the scope of the appended claims.

100...使用組合鍵替代Fn鍵以執行裝置功能的裝置100. . . Device that uses a combination of keys instead of the Fn key to perform device functions

110...系統記憶體110. . . System memory

120...內嵌控制器120. . . Embedded controller

125...記憶體125. . . Memory

140...處理器140. . . processor

160...內置鍵盤160. . . Built-in keyboard

180...外接鍵盤180. . . External keyboard

200...使用組合鍵替代Fn鍵以執行裝置功能之方法200. . . Method of using a combination key instead of the Fn key to perform a device function

300...組合鍵設定之方法300. . . Combination key setting method

400...組合鍵設定介面400. . . Key combination setting interface

402、404...組合鍵方塊402, 404. . . Key combination box

406...軟體按鍵406. . . Software button

S202~S212...使用組合鍵替代Fn鍵以執行裝置功能之方法流程步驟S202~S212. . . Method step using a combination of keys instead of Fn to perform device functions

S302~S308...組合鍵設定之方法流程步驟S302~S308. . . Combination key setting method flow step

圖1是依照本發明一實施例所繪示的使用組合鍵替代Fn鍵以執行裝置功能的裝置方塊圖。1 is a block diagram of an apparatus for performing a function of a device by using a combination key instead of an Fn key, in accordance with an embodiment of the invention.

圖2是依照本發明一實施例所繪示的使用組合鍵替代Fn鍵以執行裝置功能之方法流程圖。2 is a flow chart of a method for performing a device function using a combination key instead of an Fn key according to an embodiment of the invention.

圖3是依照本發明另一實施例所繪示的組合鍵設定方法流程圖。FIG. 3 is a flow chart of a method for setting a combination key according to another embodiment of the invention.

圖4是依照本發明另一實施例所繪示的組合鍵設定介面示意圖。FIG. 4 is a schematic diagram of a combination key setting interface according to another embodiment of the invention.

S202~S212...使用組合鍵替代Fn鍵以執行裝置功能之方法流程步驟S202~S212. . . Method step using a combination of keys instead of Fn to perform device functions

Claims (10)

一種使用組合鍵替代Fn鍵以執行裝置功能的方法,適於以一外接鍵盤上的多個組合鍵替代一電子裝置之一內置鍵盤上的一Fn鍵,其中該內置鍵盤耦接至該電子裝置之一內嵌控制器,而該外接鍵盤透過一連接介面連接至該電子裝置,該方法包括下列步驟:定義該Fn鍵與多個功能鍵中的每一個結合所對應的一參數值,並記錄作為該內嵌控制器的一程式碼;接收該外接鍵盤被按壓所產生的一掃描碼;利用一應用程式轉換該些組合鍵及該多個功能鍵其中之一結合之該掃描碼為該Fn鍵與該功能鍵結合所對應的該參數值;填入該參數值於該內嵌控制器的一記憶體;該內嵌控制器根據該程式碼將該參數值所對應之該Fn鍵與該功能鍵結合的該掃描碼傳送至一作業系統;以及執行該Fn鍵與該功能鍵結合所對應的一裝置功能。 A method for replacing a Fn key to perform a function of a device by using a combination of a plurality of key combinations on an external keyboard to replace an Fn key on a built-in keyboard of an electronic device, wherein the built-in keyboard is coupled to the electronic device One of the embedded controllers, and the external keyboard is connected to the electronic device through a connection interface, the method comprising the steps of: defining a parameter value corresponding to the combination of the Fn key and each of the plurality of function keys, and recording a code of the embedded controller; receiving a scan code generated by the pressing of the external keyboard; and converting, by the application, the combination key and one of the plurality of function keys, the scan code is the Fn The parameter value corresponding to the combination of the key and the function key; filling the parameter value with a memory of the embedded controller; the embedded controller according to the code corresponding to the Fn key corresponding to the parameter value The scan code combined with the function key is transmitted to an operating system; and a device function corresponding to the Fn key is combined with the function key. 如申請專利範圍第1項所述之使用組合鍵替代Fn鍵以執行裝置功能的方法,其中在定義該Fn鍵與該多個功能鍵中的每一個結合所對應的該參數值,並記錄作為該內嵌控制器的該程式碼的步驟之後,更包括:接收一遠端裝置發送之該掃描碼;利用該應用程式轉換該些組合鍵及該多個功能鍵其中之一結合之該掃描碼為該Fn鍵與該功能鍵結合所對應 的該參數值,並填入該參數值於該內嵌控制器的該記憶體;以及該內嵌控制器根據該程式碼將該參數值所對應之該Fn鍵與該功能鍵結合的該掃描碼傳送至該作業系統,以執行該Fn鍵與該功能鍵結合所對應的該裝置功能。 A method for performing a device function by using a combination key instead of an Fn key as described in claim 1, wherein the parameter value corresponding to each of the Fn key and the plurality of function keys is defined and recorded as After the step of the code of the embedded controller, the method further includes: receiving the scan code sent by a remote device; and converting, by the application, the combination key and the scan code by one of the plurality of function keys Corresponding to the combination of the Fn key and the function key The parameter value is filled in the memory of the embedded controller; and the embedded controller combines the Fn key corresponding to the parameter value with the function key according to the code. The code is transmitted to the operating system to perform the device function corresponding to the combination of the Fn key and the function key. 如申請專利範圍第1項所述之使用組合鍵替代Fn鍵以執行裝置功能的方法,其中在利用該應用程式轉換該些組合鍵及該多個功能鍵其中之一結合之該掃描碼為該Fn鍵與該功能鍵結合所對應的該參數值的步驟之前,更包括:執行該應用程式以顯示該些組合鍵的一設定介面;以及接收一使用者在該設定介面中所選擇的該些組合鍵,而以該些組合鍵替代該Fn鍵。 A method for performing a device function by using a combination key instead of an Fn key as described in claim 1, wherein the scan code is combined with the combination key and one of the plurality of function keys by the application. Before the step of combining the parameter value corresponding to the Fn key and the function key, the method further includes: executing the application to display a setting interface of the combination keys; and receiving a selected one of the user selected in the setting interface The keys are combined, and the Fn keys are replaced by the combination keys. 如申請專利範圍第3項所述之使用組合鍵替代Fn鍵以執行裝置功能的方法,其中在執行該應用程式以顯示該些組合鍵的該設定介面的步驟之後,更包括:於該設定介面中顯示該些組合鍵與各該多個功能鍵結合所對應的一軟體按鍵;以及接收該軟體按鍵的一選擇指令,而轉換為該Fn鍵與該功能鍵結合所對應的該參數值。 A method for performing a function of a device by using a combination key instead of an Fn key as described in claim 3, wherein after the step of executing the application to display the setting interface of the combination keys, the method further includes: setting the interface And displaying a software button corresponding to the combination of the plurality of function keys; and receiving a selection instruction of the software button, and converting the parameter value corresponding to the combination of the Fn key and the function key. 如申請專利範圍第1項所述之使用組合鍵替代Fn鍵以執行裝置功能的方法,其中在填入該參數值於該內嵌控制器的該記憶體的步驟之前,更包括: 根據一進階組態與電源介面定義該內嵌控制器之該記憶體中的一位元組作為與該應用程式溝通的一介面,並用以填入該參數值,使得該內嵌控制器可藉由訪問該介面以取得該參數值,而執行該程式碼所定義的一動作。 A method for performing a function of a device by using a combination key instead of an Fn key as described in claim 1, wherein before the step of filling the parameter value into the memory of the embedded controller, the method further comprises: Defining a tuple in the memory of the embedded controller as an interface to communicate with the application according to an advanced configuration and a power interface, and filling in the parameter value, so that the embedded controller can An action defined by the code is executed by accessing the interface to obtain the parameter value. 一種使用組合鍵替代Fn鍵以執行裝置功能的裝置,包括:一內嵌控制器,具有一記憶體;一外接鍵盤,具有多個按鍵,在該多個按鍵被按壓時產生一掃描碼;一內置鍵盤,耦接該內嵌控制器,具有一Fn鍵及多個功能鍵;一系統記憶體,記錄該內嵌控制器的一程式碼,其中該內嵌控制器的該程式碼定義該Fn鍵與各該多個功能鍵結合所對應的一參數值;以及一處理器,接收該外接鍵盤產生之該掃描碼,執行一應用程式以轉換多個組合鍵及該多個功能鍵其中之一結合之該掃描碼為該Fn鍵與該功能鍵結合所對應的該參數值,並填入該參數值於該內嵌控制器的該記憶體,其中該內嵌控制器根據該程式碼將該參數值所對應之該Fn鍵與該功能鍵結合的該掃描碼傳送至一作業系統,以執行該Fn鍵與該功能鍵結合所對應的一裝置功能。 A device for performing a function of a device by using a combination key instead of an Fn key, comprising: an embedded controller having a memory; an external keyboard having a plurality of buttons, generating a scan code when the plurality of buttons are pressed; a built-in keyboard coupled to the embedded controller, having an Fn key and a plurality of function keys; a system memory recording a code of the embedded controller, wherein the code of the embedded controller defines the Fn a parameter value corresponding to each of the plurality of function keys; and a processor receiving the scan code generated by the external keyboard, executing an application to convert the plurality of combination keys and one of the plurality of function keys The scan code is combined with the parameter value corresponding to the Fn key and the function key, and the parameter value is filled in the memory of the embedded controller, wherein the embedded controller according to the code The scan code corresponding to the Fn key and the function key corresponding to the parameter value is transmitted to an operating system to perform a device function corresponding to the Fn key combined with the function key. 如申請專利範圍第6項所述之使用組合鍵替代Fn鍵以執行裝置功能的裝置,更包括:一通訊介面,接收一遠端裝置傳送之該掃描碼,而由 該處理器執行該應用程式以轉換該些組合鍵及該多個功能鍵其中之一結合之該掃描碼為該Fn鍵與該功能鍵結合所對應的該參數值。 The device for using the combination key instead of the Fn key to perform the function of the device, as described in claim 6, further comprising: a communication interface, receiving the scan code transmitted by a remote device, The processor executes the application to convert the combination keys and one of the plurality of function keys, and the scan code is the parameter value corresponding to the combination of the Fn key and the function key. 如申請專利範圍第6項所述之使用組合鍵替代Fn鍵以執行裝置功能的裝置,其中該處理器更包括執行該應用程式以顯示該些組合鍵的一設定介面,並接收一使用者在該設定介面中所選擇的該些組合鍵,而以該些組合鍵替代該Fn鍵。 An apparatus for performing a device function by using a combination key instead of an Fn key, as described in claim 6, wherein the processor further includes a setting interface for executing the application to display the combination keys, and receiving a user The combination keys selected in the setting interface are replaced by the combination keys. 如申請專利範圍第8項所述之使用組合鍵替代Fn鍵以執行裝置功能的裝置,其中該處理器更包括於該設定介面中顯示該些組合鍵與各該多個功能鍵結合所對應的一軟體按鍵,並接收該軟體按鍵的一選擇指令,而轉換為該Fn鍵與該功能鍵結合所對應的該參數值。 An apparatus for performing a function of a device by using a combination key instead of an Fn key as described in claim 8, wherein the processor further includes displaying, in the setting interface, the combination of the combination keys and each of the plurality of function keys. a software button receives a selection command of the software button and converts the value of the parameter corresponding to the combination of the Fn button and the function button. 如申請專利範圍第6項所述之使用組合鍵替代Fn鍵以執行裝置功能的裝置,其中該內嵌控制器之該記憶體中的一位元組係根據一進階組態與電源介面定義為與該應用程式溝通的一介面,並用以填入該參數值,使得該內嵌控制器可藉由訪問該介面以取得該參數值,而執行該程式碼所定義的一動作。 A device for performing a device function by using a combination key instead of an Fn key as described in claim 6 wherein the one-bit tuple in the memory of the embedded controller is defined according to an advanced configuration and a power interface. An interface for communicating with the application, and for filling in the parameter value, so that the embedded controller can perform an action defined by the code by accessing the interface to obtain the parameter value.
TW100106908A 2011-02-25 2011-03-02 Method and appratus for executing device functions by using combination key to replace fn key TWI470480B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110045923.5A CN102650907B (en) 2011-02-25 2011-02-25 Method and device for replacing Fn key with combination key to execute device function

Publications (2)

Publication Number Publication Date
TW201235887A TW201235887A (en) 2012-09-01
TWI470480B true TWI470480B (en) 2015-01-21

Family

ID=46692920

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100106908A TWI470480B (en) 2011-02-25 2011-03-02 Method and appratus for executing device functions by using combination key to replace fn key

Country Status (2)

Country Link
CN (1) CN102650907B (en)
TW (1) TWI470480B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI646446B (en) * 2017-09-19 2019-01-01 宏碁股份有限公司 Computer system and switching method of key mode
WO2021015741A1 (en) * 2019-07-23 2021-01-28 Hewlett-Packard Development Company, L.P. Processing presses of external keyboard function keys
CN111208912B (en) * 2019-12-31 2022-09-23 联想(北京)有限公司 Input method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200601144A (en) * 2004-06-25 2006-01-01 Compal Electronics Inc A fn-key control system and method
TW200917097A (en) * 2007-10-01 2009-04-16 Ortek Technology Inc Method for transmitting key-code of hot key of keyboard
US20090265538A1 (en) * 2008-04-17 2009-10-22 Bing-Hang Wang Method and Related Control Interface for Switching an Operating State in a Portable Electronic Device
TW200945115A (en) * 2008-04-29 2009-11-01 Inventec Corp Method for switching function of key automatically

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517860A (en) * 2003-01-15 2004-08-04 英业达股份有限公司 System and method of self-defined keyboard functional key execuable by computer
CN2676282Y (en) * 2003-08-29 2005-02-02 纬创资通股份有限公司 Notebook computer
CN201673498U (en) * 2010-03-03 2010-12-15 神讯电脑(昆山)有限公司 Keyboard test system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200601144A (en) * 2004-06-25 2006-01-01 Compal Electronics Inc A fn-key control system and method
TW200917097A (en) * 2007-10-01 2009-04-16 Ortek Technology Inc Method for transmitting key-code of hot key of keyboard
US20090265538A1 (en) * 2008-04-17 2009-10-22 Bing-Hang Wang Method and Related Control Interface for Switching an Operating State in a Portable Electronic Device
TW200945115A (en) * 2008-04-29 2009-11-01 Inventec Corp Method for switching function of key automatically

Also Published As

Publication number Publication date
CN102650907B (en) 2014-11-05
TW201235887A (en) 2012-09-01
CN102650907A (en) 2012-08-29

Similar Documents

Publication Publication Date Title
JP2016500175A (en) Method and apparatus for realizing floating object
TWI470480B (en) Method and appratus for executing device functions by using combination key to replace fn key
CN104808909B (en) A kind of information processing method and electronic equipment
TWI479319B (en) Operating method of dual operation system as well as touch-responsive electronic device and computer readable medium with dual operation system
CN102253690B (en) Computer integration device, system and method
CN106354273B (en) A kind of method and smart machine manipulating smart machine
CN103677373B (en) Touch control display method and its electronic device
JP2018060421A (en) Information generation system, device, method, and program
CN102339221B (en) Method for processing application program interface based on Windows CE platform
TWI573465B (en) Computing systems, peripheral devices and methods for controlling a peripheral device
CN104965660B (en) A kind of method that tri-state key is realized on tablet
CN105320400B (en) Manage the method and device thereof of electronic device fictitious control interface
CN102193644A (en) Computer system and method for simulating input of keyboard
KR20100129443A (en) Pc integrated tv having virtual input device and its operating method
JP3162820U (en) Input device for computer equipment
TWI611335B (en) Input control system
TWI760006B (en) Electronic device, control method, and computer program product thereof
US20240143082A1 (en) Vibratoin signal testing method, vibratoin signal testing device, storage medium, electronic device
US20130207774A1 (en) Method And Apparatus For Converting Wirelessly Received Relative Coordinates Into Input Value Of Application Program
CN109189254B (en) Input device based on touch screen drive, operation method, system and storage medium
CN101782929A (en) Packaging model converting method
CN109086144A (en) Communication means and device between a kind of process
JP2010251948A (en) Signal converter, signal converting method, and signal converting program
US20120162519A1 (en) Method for operating kvm switch with independent on-screen display and control channels
TW202316236A (en) Method and computer device for customizing hotkey settings