Electronic device, operation mode switching method, and recording medium
By designing multiple action mode keys and processor switching logic in the electronic device, the problem of poor multi-mode operability in the existing technology is solved, and simple mode switching and improved operability are achieved.
Patent Information
- Application Number
- CN202110305596.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-03-24
- Filing Date
- 2021-03-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-03-19
AI Technical Summary
Existing electronic devices have poor operability when using multiple mode designation keys, making it difficult to effectively switch and manage multiple action modes.
An electronic device is designed that has keys with multiple action modes. The processor can perform calculations based on the input values and associated calculation formulas. After detecting the mode being started, it maintains that mode and switches to another associated mode. .
It improves the operability of function keys, simplifies the process of switching multiple special computing modes, reduces dependence on key combinations, and enhances the operational convenience of the device.
Smart Images

Figure CN113448910B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an electronic device, an action mode switching method, and a recording medium. Background Art
[0002] There is known an electronic device having two modes: operating as a function calculator and editing and executing a program based on Basic or beginner's common symbolic instruction code (for example, see Japanese Patent Application Laid-Open No. 62-66317).
[0003] In this electronic device, only one mode is associated with each of a plurality of mode designation keys 21. Therefore, a method for improving operability when using a key associated with a plurality of modes is not disclosed. Summary of the invention
[0004] An electronic device involved in one embodiment of the present invention is characterized in that it comprises: a key, which is associated with multiple action modes; and a processor, which accepts the input of a numerical value in each of the multiple action modes, and uses the accepted input numerical value to obtain a calculation value according to a calculation expression associated with each action mode. In response to the operation of the key, if it is determined that one of the multiple action modes associated with the key is being activated and the numerical value has been input, the one of the action modes being activated is still maintained and the input of the numerical value is invalidated. In response to further continuing to operate the key, one of the action modes is terminated and another action mode of the multiple action modes associated with the key is activated. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 It is a plan view illustrating the external structure of a computer according to one embodiment.
[0006] Figure 2 This is a block diagram illustrating a hardware configuration of a computer according to an embodiment.
[0007] Figure 3 This is a diagram illustrating management information for managing the allocation of function keys.
[0008] Figure 4 This is a flowchart illustrating an example of initial processing performed by a computer.
[0009] Figure 5 This is a flowchart for explaining an example of arithmetic processing performed by a computer.
[0010] Figure 6 This is a flowchart for explaining an example of function key processing performed by a computer according to an embodiment.
[0011] Figure 7This is a diagram for explaining a first specific example of the operation in a computer according to one embodiment.
[0012] Figure 8 This is a diagram for explaining a second specific example of the operation in the computer according to one embodiment.
[0013] Fig. 9 It is a diagram for explaining a third specific example of the operation in the computer according to one embodiment. DETAILED DESCRIPTION
[0014] Hereinafter, with reference to the accompanying drawings, an embodiment of the electronic device involved in the present invention is described. In addition, in the following description, a computer is cited as an example of an electronic device. In addition, in the following description, a detailed description of the functions, structures, and operations of the computer involved in the embodiment that are the same as or similar to those of a conventional computer is omitted.
[0015] Figure 1 FIG. 1 is a plan view illustrating the appearance structure of a computer according to an embodiment of the present invention. Figure 1 , there are illustrated a plan view of the overall appearance structure of the computer according to the present embodiment and an enlarged plan view in which a portion of a region A1 in the plan view is enlarged.
[0016] Figure 1 The illustrated computer 1 is provided with a key area 3 in which a plurality of keys are arranged, and a display device 4 on the surface of a housing 2. In the key area 3, in addition to keys for inputting numerical values or keys for inputting operators, a clear all (AC) key 301 and a clear (C) key 302 are arranged. Some of the plurality of keys arranged in the key area 3 have a plurality of functions. For example, the clear all key 301 has a function of clearing (deleting) all input numerical values or operation results, etc. and setting the operation mode of the computer 1 to the normal operation mode, and a function of turning on the power supply. For example, the equal key 303 has a function of displaying the result of the operation performed based on the accepted input numerical values and operators, and a function of determining the accepted input numerical values in the special operation mode described later.
[0017] In addition, Figure 1In the key area 3 of the illustrated computer 1, four function keys 311 to 314 are arranged. Two special operation modes are assigned as operation modes (action modes) to each of the first function key 311, the second function key 312, the third function key 313, and the fourth function key 314. The special operation mode is a mode in which the value of the index can be obtained by a simple operation by performing operation according to the operation formula corresponding to various indices (BMI or titer, etc.) described later and pre-associated with each mode using the numerical value accepted for input in each mode. In this special operation mode, the input of the numerical value of each variable included in the operation formula corresponding to the pre-associated index is accepted.
[0018] The first function key 311 is assigned a special operation mode for calculating the BMI (Body Mass Index) recorded on the key top, and a special operation mode for performing operations related to "powder identification" recorded in the area 321 above the first function key 311 in the housing 2. For example, in the special operation mode for calculating BMI, "height" and "weight" are used as variables, and input of numerical values for each variable is accepted, and the operation is performed according to the operation formula "BMI = weight (kg) ÷ height (m) ÷ height (m)" to obtain the value of BMI.
[0019] A special operation mode for calculating the valence by the first operation formula and a special operation mode for calculating the valence by the second operation formula are allocated to the second function key 312. The "switch" written in the area 322 above the second function key 312 in the housing 2 means that the special operation mode for calculating the valence by the first operation formula and the special operation mode for calculating the valence by the second operation formula can be switched.
[0020] A special operation mode for calculating the body surface area by the first operation formula and a special operation mode for calculating the body surface area by the second operation formula are allocated to the third function key 313. The "switch" recorded in the area 323 above the third function key 313 in the housing 2 means that the special operation mode for calculating the body surface area by the first operation formula and the special operation mode for calculating the body surface area by the second operation formula can be switched.
[0021] Fourth function key 314 is assigned a special calculation mode for performing calculations related to renal function written on the key top and a special calculation mode for performing “day calculation” written in area 324 above fourth function key 314 in housing 2 .
[0022] In addition, Figure 1In the key area 3 of the illustrated computer 1, a division result display switching key 315 is arranged. The division result display switching key 315 has a function of switching the display setting of the result of division (division) between a setting of displaying only the quotient as a real number and a setting of displaying the quotient and the remainder as an integer. The "quotient / remainder" recorded in the area 325 above the division result display switching key 315 in the housing 2 means that each time the division result display switching key 315 is pressed, the setting of displaying only the quotient as a real number and displaying the quotient and the remainder as an integer can be switched.
[0023] The display device 4 of the computer 1 has a first display area 401 and a second display area 402. The first display area 401 is an area for displaying numerical values or calculation results inputted by the numerical keys arranged in the key area. The first display area 401 is configured to be capable of 7-segment display of 10 digits, for example. The second display area 402 is an area for displaying guidance when one of the first function key 311, the second function key 312, the third function key 313, and the fourth function key 314 is pressed, for example. The second display area 402 is a dot matrix display area capable of displaying character information corresponding to 12 characters in full-width form, for example.
[0024] Figure 2 This is a block diagram illustrating a hardware configuration of a computer according to an embodiment.
[0025] The computer 1 involved in this embodiment is as follows Figure 2 As shown in the example, the computer 1 includes a processor 11, a memory 12, an input device 13, a display control unit 14, and a display device 4. The processor 11, the memory 12, the input device 13, and the display control unit 14 in the computer 1 are connected to each other via a bus 15.
[0026] The processor 11 controls the overall operation of the computer 1 by executing a prescribed program including the function key processing described later. The processor 11 is, for example, a CPU (Central Processing Unit). The processor 11 accepts the input of a numerical value in each of the above-mentioned multiple action modes, and uses the numerical value accepted to obtain a calculation value according to the calculation formula associated with each action mode. The memory 12 stores the program executed by the processor 11, or the intermediate results of the calculation, etc. The memory 12 includes a RAM (Random Access Memory) and a ROM (Read Only Memory). The processor 11 and a part of the memory 12 may also be, for example, an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).
[0027] The input device 13 is a device for accepting input of numerical values or operators, selection (calling) of various special operation modes, etc., and includes, for example, Figure 1 A plurality of keys are arranged in the key area 3 shown as an example.
[0028] The display control unit 14 controls the display of the display device 4. The display device 4 has, for example, Figure 1 The illustrated liquid crystal display panels of the first display area 401 and the second display area 402 .
[0029] In addition, the computer 1 may also include Figure 2 Other hardware configurations not shown. For example, the computer 1 may include a power source such as a battery or a solar panel for supplying operating power to the processor 11, etc. In addition, the computer 1 may include, for example, a communication device for communicating with an external device.
[0030] In the memory 12 of the computer 1 of the present embodiment, information about the operation formula corresponding to the special operation mode assigned to each of the first function key 311, the second function key 312, the third function key 313, and the fourth function key 314, and information for guiding each of the special operation modes are stored. The information for guiding each of the special operation modes includes, for example, information for notifying a variable that accepts a numerical input or an attribute of a variable in order to obtain a value of an exponent pre-associated with each of the special operation modes through operation. In addition, in the memory 12, management information for managing the assignment of the special operation mode to each of the first function key 311, the second function key 312, the third function key 313, and the fourth function key 314 is stored.
[0031] Figure 3 This is a diagram illustrating management information for managing the allocation of function keys. Figure 3 The management information 20 shown as an example is an example of the operation mode specifying information stored in the memory 12 .
[0032] At once Figure 3 For the management information 20 shown in the example, a key ID for identifying a function key, two modes (mode 1 and mode 2) assigned to the function key, and a mode last activated (last activated) are associated with each function key. In the following description, the key ID of the first function key 311 is set to FN1, the key ID of the second function key 312 is set to FN2, the key ID of the third function key 313 is set to FN3, and the key ID of the fourth function key 314 is set to FN4.
[0033] exist Figure 3 In the management information 20 illustrated, "mode 1" is a mode that is activated when the function key is pressed once when the computer 1 is in an initialized state (first special operation mode), and "mode 2" is a mode that is activated when the function key is pressed twice in succession when the computer 1 is in an initialized state (second special operation mode). Figure 3 The last activated mode in the illustrated management information 20 indicates the mode that was last activated among the special operation modes activated by pressing the function key. For example, FN1 is assigned to the first function key 311 as the key ID. If the first function key 311 is pressed once when the computer 1 is in an initialized state, the computer 1 activates a special operation mode for executing the function of performing BMI operation. In addition, if the first function key 311 is pressed twice in succession when the computer 1 is in an initialized state, the computer 1 activates a special operation mode for performing operations related to powder identification. Furthermore, in a case where the last activated mode is a mode corresponding to BMI operation (mode 1), information indicating "mode 1" is corresponded as the last activated mode. In addition, Figure 3 The “-” shown in the management information 20 shown in the example indicates that the special operation mode assigned to the fourth function key 314 has not been activated even once after initialization.
[0034] When one of the first function key 311, the second function key 312, the third function key 313, and the fourth function key 314 is newly pressed once, the computer 1 of the present embodiment refers to the mode last activated in the management information 20 as described later, and determines the mode to be activated this time. Here, in this specification, when the mode assigned to a certain function key is not in operation, pressing the function key is referred to as newly pressing. For example, when the first function key 311 is pressed once in a state where the mode for performing BMI calculation (mode 1) and the mode for performing calculation related to powder identification (mode 2) are not activated, the first function key 311 is newly pressed. In this case, the computer 1 activates mode 1 or mode 2 based on the mode last activated corresponding to the key ID (FN1) of the first function key 311 in the management information 20. When the special calculation mode assigned to the first function key 311 has not been activated once after initialization, or the mode last activated is mode 1, the computer 1 activates mode 1. On the other hand, when the mode last activated is mode 2, the computer 1 activates mode 2.
[0035] Figure 4 The flowchart of an example of initial processing performed by a computer. When the computer 1 of the present embodiment performs a predetermined operation for initialization, for example, Figure 4 Initial processing illustrated.
[0036] In the initial processing, the computer 1 first initializes the information of the last startup of the function key to which the two special operation modes are assigned (step S1). In step S1, the processor 11 of the computer 1, for example, changes the information indicating the mode of the last startup in the management information 20 stored in the memory 12 to a value ("-") indicating that it has not been started once after the initialization. Thereafter, the computer 1 initializes other settings (step S2) and ends the initial processing. In step S2, the processor 11 of the computer 1 sets the operation mode to a normal operation mode for performing operations using the numeric keys and the operator keys. In addition, in step S2, the processor 11 of the computer 1 sets the display setting of the result of division (division) to display only the quotient in the form of real numbers. The normal operation mode is a mode for performing operations such as four arithmetic operations based on at least the numerical values and operators accepted when the normal operation mode is being started. In addition, in the normal operation mode, it can also be configured to be able to perform operations according to certain operation formulas pre-associated with the normal operation mode using the numerical values accepted for input.
[0037] Figure 5 1 is a flowchart for explaining an example of arithmetic processing performed by a computer. The computer 1 of this embodiment starts when, for example, the clear all key 301 is pressed and the power is turned on. Figure 5 The illustrated operation processing.
[0038] During the operation process, the computer 1 determines whether there is a key input (step S10), and repeats the determination of step S10 until a key input is made (step S10; NO). If there is a key input (step S10; YES), the computer 1 determines whether it is an input based on a function key assigned to two special operation modes (step S11). In the case where the input is not based on a function key assigned to two special operation modes (step S11; NO), the computer 1 turns off the immediately after startup state flag (step S12), performs processing corresponding to the input key (step S13), and returns to the determination of step S10. For example, in the case of input based on a numeric key or an operator key, the computer 1 displays the input value or operation result on the display device 4 as a process of step S13. The immediately after startup state flag will be described later.
[0039] On the other hand, in the case of input based on a function key (step S11; YES), the computer 1 performs function key processing: based on the operation mode of the computer 1 at the time of the input based on the function key, the special operation mode assigned to the function key, and the management information 20, the special operation mode to be implemented is controlled (step S14). As the function key processing of step S14, the computer 1 refers to, for example, Figure 6 When the function key processing is completed, the computer 1 returns to the determination of step S10.
[0040] The computer 1 that is performing arithmetic processing ends the arithmetic processing and turns off the power, for example, when there is no key input for a predetermined period of time or when a key for turning off the power is pressed.
[0041] Figure 6 1 is a flowchart for explaining an example of function key processing performed by a computer according to an embodiment of the present invention. As described above, when an input is made using a function key, the computer 1 starts to Figure 6 In addition, in Figure 6 And reference Figure 6 In the following description, when a “mode” is simply referred to as a “mode”, the mode means a “special operation mode”.
[0042] In the function key processing, the computer 1 first determines whether the current operation mode is the normal operation mode or the special operation mode (step S1401).
[0043] When the current operation mode is the normal operation mode (step S1401; normal operation mode), the computer 1 sets the special operation mode that was last activated by the function key on which the input operation was performed (step S1403). In step S1403, the computer 1 determines whether the special operation mode that was last activated by the function key on which the input operation was performed was mode 1 or mode 2 based on the management information 20 stored in the memory 12, and sets the determined mode. After step S1403, the computer 1 sets the immediately after startup state of the mode set in step S1403 (step S1408), turns on the immediately after startup state flag (step S1409), performs the startup processing of the mode (step S1410), and ends the function key processing. Here, the immediately after startup state is a state that is set as the initial state when the special operation mode assigned to the function key is implemented. Specifically, it is a state in which the numerical value of the first variable in the operation expression can be input and the numerical value is not input. When the immediately after startup state flag is turned on, the special operation mode is the immediately after startup state. In the activation process of the special operation mode in step S1410, the display of the display device 4 is switched to a display of a state immediately after activation described later.
[0044] In contrast, when the current operation mode is the special operation mode (step S1401; special operation mode), the computer 1 then determines whether the input is based on the function key assigned to the current special operation mode (step S1402). When the input is not based on the function key assigned to the current special operation mode (step S1402; NO), the computer 1 performs the above-mentioned steps S1403 and S1408 to S1410, and ends the function key processing.
[0045] In the case of input based on the function key to which the current special operation mode is assigned (step S1402; yes (YES)), the computer 1 then determines whether the startup state flag is on or off (step S1404). As described above, the startup state is a state set as the initial state when the special operation mode assigned to the function key is implemented, and the startup state flag is on in the case of the startup state. In the case where the startup state flag is on (step S1404; on), the computer 1 sets the mode opposite to the current mode among the two special operation modes assigned to the function key, and changes the last started mode in the management information 20 (step S1405). For example, when the current special operation mode is mode 1 among mode 1 and mode 2, and it is the startup state of mode 1, in step S1405, the computer 1 sets mode 2 and changes the last started mode in the management information 20 to mode 2. After the processing of step S1405, the computer 1 sets the immediately after-activation state of the mode set in step S1405 (step S1408), and then performs the processing of steps S1409 and S1410 described above, and ends the function key processing.
[0046] On the other hand, when the flag for the state immediately after startup is off, the special operation mode currently being started is a state different from the state immediately after startup (a numerical value is being input to one of the variables, the numerical value of one of the variables is determined, or the operation value is obtained based on the operation formula). When it is determined in step S1404 that the state immediately after startup is off (step S1404; off), the computer 1 then determines whether the input of the numerical value of the variable is being accepted (step S1406). When the input of the numerical value of the variable is being accepted (step S1406; yes (YES)), the computer 1 sets the state immediately after startup of the special operation mode being started (step S1408), and then performs the processing of the above-mentioned steps S1409 and S1410 to end the function key processing. At this time, the computer 1 returns to the state immediately after startup in the special operation mode when the function key processing starts, and ends the function key processing.
[0047] When it is determined in step S1406 that the input of the numerical value of the variable is not being accepted (step S1406; NO), the computer 1 then determines whether the calculation result in the current special calculation mode is being displayed (step S1407). When the calculation result is being displayed (step S1407; YES), the computer 1 sets the startup state of the mode being started (step S1408), and then performs the processing of the above-mentioned steps S1409 and S1410 to end the function key processing. At this time, the computer 1 returns to the startup state in the special calculation mode at the start of the function key processing, and ends the function key processing. On the other hand, when the calculation result is not being displayed (step S1407; NO), the computer 1 does nothing thereafter (NOP: No Operation. Step S1411), and ends the function key processing.
[0048] Thus, when the computer 1 of the present embodiment performs input based on the function key and activates one of the two special operation modes assigned to the function key, the activated special operation mode is maintained in the management information 20 in the memory 12 as the special operation mode activated last time. Therefore, when the special operation mode assigned to the function key is not activated (step S1401: normal operation mode, or step S1402: NO) when the input based on the function key is performed, the special operation mode activated last time can be activated. Therefore, in the computer 1 of the present embodiment, after the special operation mode activated by pressing the function key twice in succession in the initial setting of the two special operation modes assigned to one function key is activated and terminated, the special operation mode can be activated by pressing the function key once. Therefore, in the computer 1 of the present embodiment, for example, when the frequency of activating the special operation mode activated by pressing the function key twice in succession in the initial setting of the two special operation modes assigned to one function key is high, the special operation mode can be activated preferentially by pressing the function key once. That is, in the computer 1 of this embodiment, it is possible to switch between two special operation modes assigned to a function key and to preferentially activate the special operation mode by pressing the key once, without performing complex operations using keys other than function keys, for example, for setting changes.
[0049] Furthermore, when the computer 1 of the present embodiment performs an input based on a function key, the special operation mode assigned to the function key is started (step S1402; YES), and when it is in the immediately after-start state (step S1404; ON), the special operation mode opposite to the special operation mode started at that moment is started. Therefore, by pressing the same function key twice in succession, it is possible to start a special operation mode opposite to the special operation mode started when one of the two special operation modes assigned to the function key is pressed once. That is, in the computer 1 of the present embodiment, the start mode of two special operation modes assigned to one function key can be switched without performing an input operation of combining a function key that starts the desired special operation mode with a key different from the function key. Therefore, in the computer 1 of the present embodiment, it is not necessary to provide a key different from the function key for switching the start mode of two special operation modes assigned to the function key, and it is possible to suppress the start mode of the key area 3 (reference key). Figure 1 ) increases the number of keys configured in the computer 1. In addition, there is no need to input a function key and a key combination different from the function key, so the input operation of the function key becomes simple and the operability of the computer 1 improves.
[0050] Figure 7 This is a diagram for explaining a first specific example of the operation in a computer according to one embodiment. Figure 7 The FN1 key and the FN2 key in the figure are the first function key 311 and the second function key 312 respectively. Figure 7 In the following description, the value indicating the last activation mode of the management information 20 at the time of turning on the power is set to a value indicating that the management information 20 has not been activated once after initialization, or a value indicating mode 1.
[0051] exist Figure 7 In (a1), the display state of the display device 4 when the power of the computer 1 is off is schematically shown. In addition, the 10-digit 7-segment display indicated by the thin solid line in the first display area 401 is not displayed when the power is off. If the user of the computer 1 turns on the power, the computer 1 starts in the normal operation mode. Figure 7 As illustrated in (a2) of FIG. 4 , a numerical value “0” is displayed in the first display area 401 of the display device 4 .
[0052] After the power is turned on, if the user presses the first function key 311 (FN1 key), the computer 1 performs function key processing (step S14). At this moment, the operation mode is the normal operation mode (step S1401; normal operation mode), so the computer 1 sets mode 1 (BMI operation) of the two special operation modes assigned to the first function key 311, and after setting the immediate post-start state of mode 1 and setting the immediate post-start state flag to on, starts mode 1 (steps S1403, and S1408 to S1410). At this time, the computer 1 changes the special operation mode that was last started by the FN1 key in the management information 20 to a value indicating mode 1 (BMI operation). In addition, the display of the display device 4 becomes, for example, Figure 7 4. The display of the state immediately after the start of the special operation mode for performing BMI calculation illustrated in (a3) of FIG. 4. In the first display area 401 of the display device 4, "0" is displayed. In the second display area 402 of the display device 4, a guide indicating that the special operation mode for performing BMI calculation is started, the variable or its attribute that is initially accepted for input is height, and the unit of height to be input is cm is displayed.
[0053] Next, if the user presses a numeric key to input the height, the computer 1 performs processing corresponding to the input (step S13). Figure 7 As illustrated in (a4) of FIG. 4 , the input numerical value is displayed in the first display area 401 of the display device 4 .
[0054] Thereafter, if the user presses the second function key 312 (FN2 key) while the special operation mode of the BMI operation continues to be activated, the computer 1 performs function key processing. At this moment, the operation mode is the special operation mode (step S1401; special operation mode), but the activated special operation mode is a mode different from the special operation mode assigned to the second function key 312 (step S1402; No). Therefore, the computer 1 sets mode 1 (valence operation based on operation formula 1) among the two special operation modes assigned to the second function key 312, sets the immediate post-activation state of mode 1 and sets the immediate post-activation state flag to on, and then activates mode 1 (steps S1403, and S1408 to S1410). At this time, the computer 1 changes the last activated mode of the FN2 key in the management information 20 to a value indicating mode 1 (valence operation based on operation formula 1). In addition, the display of the display device 4 becomes, for example, Figure 71. The display of the state immediately after the start of the special operation mode for performing the valence operation based on the operation formula 1 as illustrated in (a5) of FIG. 1. In the first display area 401 of the display device 4, "0" is displayed. In the second display area 402 of the display device 4, a guide indicating that the special operation mode for performing the valence operation based on the operation formula 1 is started, the variable or its attribute accepted for input is the component amount, and the unit of the component amount to be input is mg is displayed.
[0055] Here, if the user presses the second function key 312 in succession, the computer 1 performs the function key processing again. At this moment, the operation mode is the special operation mode, and the activated special operation mode is the mode assigned to the second function key 312 (step S1402; yes (YES)). Furthermore, at this moment, the start-up state flag is on (step S1404; on). Therefore, the computer 1 sets the mode 2 (i.e., the valence operation based on the operation formula 2) opposite to the currently activated mode 1 among the two special operation modes assigned to the second function key 312, sets the start-up state of the mode 2 and sets the start-up state flag to on, and then starts mode 2 (steps S1405, and S1408 to S1410). At this time, the computer 1 changes the last activated mode of the FN2 key in the management information 20 to a value representing mode 2 (the valence operation based on the operation formula 2). In addition, the display of the display device 4 becomes, for example, Figure 7 The display of the state immediately after the start of the special operation mode for performing the valence operation based on the operation formula 2 as illustrated in (a6) of FIG. 4 is shown in the first display area 401 of the display device 4. In the second display area 402 of the display device 4, a guide indicating that the special operation mode for performing the valence operation based on the operation formula 2 is started, the variable or its attribute accepted for input is weighing, and the unit of the weight to be input is g is displayed.
[0056] Thereafter, for example, while the special operation mode for performing the valence operation based on the operation formula 2 is still activated, if the user presses the first function key 311, the computer 1 performs function key processing. At this moment, the operation mode is the special operation mode, but the activated special operation mode is a mode different from the special operation mode assigned to the first function key 311. Therefore, the computer 1 activates mode 1 (BMI operation) of the two special operation modes assigned to the first function key 311 based on the mode last activated by the FN1 key in the management information 20. At this time, the mode last activated by the FN1 key in the management information 20 is still a value indicating mode 1 (BMI operation). In addition, the display of the display device 4 becomes, for example, Figure 7 The display of the state immediately after the start-up in the special calculation mode for executing the BMI calculation as illustrated in (a7) of FIG. The display of the display device 4 at this time is the same as the display illustrated in (a3).
[0057] exist Figure 7 When the state in which the special operation mode for performing BMI calculation is activated as illustrated in (a7) continues, if the user presses the second function key 312, the computer 1 performs function key processing. At this moment, the operation mode is the special operation mode, but the activated special operation mode is a mode different from the special operation mode assigned to the second function key 312. Furthermore, the last activated mode of the FN2 key in the management information 20 at this moment is mode 2 (valence calculation based on calculation formula 2) as described above. Therefore, the computer 1 activates mode 2 (valence calculation based on calculation formula 2) of the two special operation modes assigned to the second function key 312. At this time, the display of the display device 4 becomes, for example, Figure 7 The display of the state immediately after activation in the special calculation mode for executing the valence calculation based on the calculation formula 2 as illustrated in (a8) of FIG. The display of the display device 4 at this time is the same as the display illustrated in (a6).
[0058] Thus, if a function key is pressed twice in succession to activate the corresponding special operation mode, and the special operation mode is stored in the management information 20 as the last activated mode, then in the computer 1 of the present embodiment, the function key is pressed once thereafter, so that the special operation mode corresponding to the pressing twice can be activated in the initial state. Therefore, for example, in the case of a user who frequently performs valence calculation based on the calculation formula 2 and does not perform valence calculation based on the calculation formula 1, the second function key 312 does not need to be pressed twice in succession each time, and the operability when performing valence calculation based on the calculation formula 2 is improved.
[0059] Figure 8 This is a diagram for explaining a second specific example of the operation in the computer according to one embodiment. Figure 8 The FN3 key in is the third function key 313. Figure 8 In the following description, the value indicating the mode of the last startup of the management information 20 at the time of turning on the power is set to a value indicating that the management information 20 has not been started once after initialization, or a value indicating mode 1. Figure 8 In the following description, of the two special operation modes assigned to the third function key 313, in mode 1, the operation formula 1 used for the operation of the body surface area is set to the DuBois formula, and in mode 2, the operation formula 2 used for the operation of the body surface area is set to the Fujimoto formula. When the user of the computer 1 turns on the power, the computer 1 starts in the normal operation mode. Figure 8 As illustrated in (b1) of FIG. 4 , a numerical value “0” is displayed in the first display area 401 of the display device 4 .
[0060] After the power of computer 1 is turned on, if the user presses the third function key 313 (FN3 key), computer 1 performs function key processing (step S14). At this moment, the operation mode is the normal operation mode (step S1401; normal operation mode), so computer 1 sets mode 1 (body surface area calculation based on calculation formula 1) of the two special operation modes assigned to the third function key 313, and after setting the immediate post-start state of mode 1 and setting the immediate post-start state flag to on, starts mode 1 (steps S1403, and S1408 to S1410). At this time, computer 1 changes the last started mode of the FN3 key in the management information 20 to a value indicating mode 1 (body surface area calculation based on calculation formula 1). In addition, the display of the display device 4 becomes, for example, Figure 8 1. The display of the state immediately after the start of the special operation mode for performing the body surface area calculation based on the operation formula 1 as illustrated in (b2) of FIG. 1. In the first display area 401 of the display device 4, "0" is displayed. In the second display area 402 of the display device 4, a guide indicating that the special operation mode for performing the body surface area calculation based on the operation formula 1 (DuBois formula) is started, the variable or its attribute to be inputted initially is the height, and the unit of the height to be inputted is cm is displayed.
[0061] Next, if the user presses the numeric key to input the height, the computer 1 sets the immediately after start state flag to off (step S12) and performs processing corresponding to the input (step S13). Figure 8 As shown in (b3) of FIG. 1 , the inputted numerical value is displayed in the first display area 401 of the display device 4. After inputting the height, if the user presses the equal key 303, the display of the display device 4 is as follows: Figure 8 In the second display area 402 of the display device 4, a message indicating that the special operation mode for performing the body surface area operation based on the operation formula 1 (DuBois formula) is started is displayed, and then the variable or its attribute to be input is weight, and the unit of weight to be input is kg is displayed. If the user presses the numeric key to input the weight, the computer 1 performs processing corresponding to the input, such as Figure 8 As illustrated in (b5) of FIG. 4 , the input numerical value is displayed in the first display area 401 of the display device 4 .
[0062] Here, if the user presses the third function key 313, the computer 1 performs function key processing. At this moment, the operation mode is the special operation mode, and the activated special operation mode is the special operation mode assigned to the third function key 313. However, at this moment, as described above, the startup state flag becomes off (step S1404; off), and the input of the numerical value of the variable is being accepted (step S1406; yes (YES)). Therefore, after setting the startup state of the special operation mode (body surface area calculation based on calculation formula 1) that is currently being activated and setting the startup state flag to on, the computer 1 returns to the startup state of the mode (steps S1408 to S1410). Therefore, the display of the display device 4 becomes, for example, Figure 8 The display of the state immediately after the start of the special calculation mode for executing the body surface area calculation based on the calculation formula 1 as illustrated in (b6) of FIG. 1 is the same as the display illustrated in (b2). That is, when the special calculation mode is started and a numerical value is input (the state immediately after the start flag is off), if the function key assigned to the special calculation mode being started is pressed, the state returns to the state immediately after the start of the special calculation mode being started.
[0063] After the computer 1 returns to the state immediately after the special operation mode for performing the body surface area operation based on the operation formula 1, if the user presses the third function key 313, the computer 1 performs the function key processing. Figure 7 In the above, a special operation mode opposite to the currently activated special operation mode (i.e., body surface area operation based on operation formula 2) is set, and a special operation mode (mode 2) for performing body surface area operation based on operation formula 2 is activated (steps S1405, and S1408 to S1410). Therefore, the display of the display device 4 becomes, for example, Figure 8 4. The display of the state immediately after the start of the special operation mode for performing the body surface area calculation based on the operation formula 2 (Fujimoto's formula) as illustrated in (b7) of FIG. 4. In the second display area 402 of the display device 4, it is displayed that the special operation mode for performing the body surface area calculation based on the operation formula 2 (Fujimoto's formula) is started, and the variable or its attribute to be input is height, and the unit of the height to be input is cm. In addition, at this time, the computer 1 changes the mode last started by the FN3 key in the management information 20 from mode 1 to mode 2.
[0064] Thus, in the computer 1 of the present embodiment, when a function key is operated and one of the multiple special operation modes assigned to the function key is activated and a numerical value is input, the activated special operation mode is still maintained, and the input of the numerical value is invalidated, and the numerical value being displayed can be deleted. In addition, after the input of the numerical value is invalidated, by further operating the same function key in succession, one of the special operation modes can be terminated and another special operation mode among the multiple special operation modes assigned to the function key can be activated. That is, by only operating one function key in succession, the numerical value being input in the special operation mode can be invalidated, and then, it is possible to switch to another special operation mode assigned to the function key.
[0065] Furthermore, in the computer 1 of the present embodiment, when one of the multiple special operation modes assigned to one function key is being started, and the special operation mode being started is in the state immediately after being started, the computer 1 switches to another special operation mode assigned to the function key. Furthermore, when the special operation mode being started is not in the state immediately after being started, the special operation mode being started is still maintained, and the computer can be set to the state immediately after being started in the special operation mode. In other words, the operation of one function key takes into account both the operation for returning to the state immediately after being started in the special operation mode and the operation for switching to another special operation mode.
[0066] Therefore, for example, when the numerical value input to the variable in the activated special operation mode is wrong or has the possibility of being wrong, the input can be re-performed by pressing a certain function key to which the special operation mode is assigned. In addition, for example, even when the user wants to switch to a special operation mode opposite to the activated special operation mode in the middle of inputting numerical values to the variable, the special operation mode can be switched by pressing the same function key. Thus, according to the computer 1 of this embodiment, the operability of the computer 1 having keys associated with a plurality of operation modes can be improved.
[0067] In addition, the operation for returning to the state immediately after the start-up when the input of the numerical value for the variable is being accepted is not limited to the function key assigned to the special operation mode being started, and may be, for example, the operation of pressing a key assigned to the function of deleting the input in the normal operation mode, such as the clear key 302. In such a case, the user can easily delete the numerical value from the first display area 401 of the display device 4 and temporarily delete the numerical value determined to be input for the variable from the memory 12 and re-enter it by intuitively associating and operating by pressing the clear key 302, so that the decrease in operability or convenience can be prevented.
[0068] In the above-mentioned embodiment, the state immediately after activation when the special operation mode is activated by pressing the function key once or twice in succession is set as follows: Figure 7 (a3) and (a5), and Figure 8 However, the immediate post-startup state in the computer 1 of this embodiment is not limited to this, and may also be a state in which a predetermined display different from the initial display is set based on the transition of the display in the special operation mode of startup.
[0069] Fig. 9 It is a diagram for explaining a third specific example of the operation in the computer according to one embodiment. Fig. 9 The FN3 key in is the third function key 313. Fig. 9 In the following description, reference to Figure 8 If the user of the computer 1 turns on the power, the computer 1 starts in the normal operation mode, such as Fig. 9 As illustrated in (c1) of FIG. 4 , a numerical value “0” is displayed in the first display area 401 of the display device 4 .
[0070] After the computer 1 is powered on, if the user presses the third function key 313 (FN3 key), the computer 1 performs function key processing. At this time, the computer 1 starts mode 1 (body surface area calculation based on calculation formula 1) of the two special calculation modes assigned to the third function key 313. Fig. 9 In the operation of the computer 1 described above, the initial display of the display device 4 in the startup mode 1 is, for example, Fig. 9 As illustrated in (c2) of FIG. 1 , the display in the second display area 402 becomes a display for confirming whether to start the special calculation mode for executing the body surface area calculation based on calculation formula 1 (DuBois formula).
[0071] When a predetermined key (e.g., equal key 303) is pressed while the initial display for mode 1 is being displayed on display device 4, computer 1 starts a special operation mode for performing body surface area calculation based on calculation formula 1, sets the immediately after start state of mode 1 and turns on the immediately after start state flag, and then enters a state of accepting input of the first variable. The display of display device 4 at this time becomes Fig. 9 The display shown in (c3) of FIG. Figure 8 The display is the same as that illustrated in (b2).
[0072] exist Fig. 9In the display of (c3), if the user presses the numeric key to input the height, the computer 1 sets the start-up flag to off and performs processing corresponding to the input, such as Fig. 9 As shown in (c4), the inputted numerical value is displayed in the first display area 401 of the display device 4. After inputting the height, if the user presses the equal key 303, the display of the display device 4 switches to Figure 8 The next variable (weight) is input as shown in (b4) of FIG. 1 . If the user presses a numeric key to input weight, the computer 1 performs processing corresponding to the input, such as Fig. 9 As illustrated in (c5) of FIG. 4 , the input numerical value is displayed in the first display area 401 of the display device 4 .
[0073] Here, if the user presses the clear key 302, for example, the computer 1 deletes the input for the currently activated special operation mode. Fig. 9 As shown in (c6), the computer 1 returns to the state immediately after the special operation mode currently started. The display of the display device 4 at this time is the same as the display shown in (c3). In addition, the action of the computer 1 is an action corresponding to the function of the clear key 302, and the computer 1 performs processing corresponding to the input (step S13) instead of function key processing (step S14).
[0074] exist Fig. 9 If the clear key 302 is pressed again in the display of (c6), the computer 1 Fig. 9 As shown in (c7), the immediately after start state of the currently started special operation mode is maintained. In addition, at this time, the other special operation mode assigned to the third function key 313 (FN3 key), that is, the special operation mode for performing the body surface area operation based on the operation formula 2 (Fujimoto formula) is not started. In other words, even if the clear key 302 is pressed, the special operation mode currently started will not be switched to another special operation mode. When the clear key 302 is pressed to return to the immediately after start state, the immediately after start state flag changes from off to on.
[0075] Thereafter, for example, if the user presses the third function key 313, the computer 1 ends the special operation mode for calculating the body surface area based on the operation formula 1 and starts the special operation mode for calculating the body surface area based on the operation formula 2. At this time, the display of the display device 4 is as follows: Fig. 9 As shown in (c8) of FIG. 1 , the display of the second display area 402 becomes a display for confirming whether to perform the calculation of the body surface area based on the calculation formula 2 (Fujimoto formula). In addition, in the state where the initial display for mode 1 is performed on the display device 4 ( Fig. 9 (c2)), when the third function key 313 (FN3 key) is pressed, the second display area 402 also becomes Fig. 9In this state, if the user presses a predetermined key (for example, the equal key 303), the computer 1 starts the calculation of the body surface area based on the calculation formula 2, and the input of the first variable becomes an inputtable state (immediately after startup state).
[0076] Thus, in the computer 1 of the present embodiment, when a function key is pressed, a screen for confirming whether to execute one of the special operation modes assigned to the function key can be displayed. In addition, in the computer 1 of the present embodiment, the state immediately after startup that is transferred when a function key is pressed is not limited to being set to a state in which the execution of one of the operation modes assigned to the function key has been determined and the input of a numerical value for the operation expression corresponding to the determined operation mode can be performed, and it can also be set to a state in which it is not determined whether to execute one of the operation modes assigned to the function key.
[0077] Furthermore, in the computer 1 of the present embodiment, similarly to the first and second specific examples, in the third specific example, the operation of one function key also takes into account both the operation for returning to the state immediately after the startup in the special operation mode being started and the operation for switching to another special operation mode. On the other hand, in the operation of the clear key 302 in the third specific example, although the state immediately after the startup in the special operation mode being started is returned, it is not switched to another special operation mode. Therefore, no matter how many times the clear key 302 is pressed, it will not accidentally switch to another special operation mode. In addition, no matter how many times a function key is pressed, only one of the multiple special operation modes assigned to the function key is activated.
[0078] Thus, when the user does not want to switch to another special operation mode, he can operate the clear key 302, and when he only wants to start one of the special operation modes assigned to one function key, he can operate the function key. In addition, in the computer 1 of the third specific example, as in the first and second specific examples, the state immediately after the start of the special operation mode assigned to the third function key 313 can also be set to such a state that the display guiding the input of the first variable (height) is performed (variable is not input).
[0079] In addition, in the above-mentioned embodiment, it is described that two special operation modes are assigned to each function key, but three or more special operation modes may be assigned. In this case, in step S1405, the computer 1 may also set another special operation mode different from the current special operation mode from among the three or more special operation modes assigned to the function key in a predetermined order, and change the special operation mode last started in the management information 20.
[0080] The above describes the embodiments of the present invention, but the above embodiments are specific examples for easy understanding of the invention, and the present invention is not limited to the above embodiments. The electronic device, the operation mode switching method, and the recording medium can be variously modified and changed within the scope of the claims.
[0081] For example, the electronic device involved in the present invention is not limited to Figure 1 The computer 1 shown in the example may also be a method in which a program including the above-mentioned processing is executed in a general-purpose information processing device such as a smart phone or a tablet computer. In addition, the program for causing the processor of the computer 1 or the general-purpose information processing device to execute the processing for switching the special operation mode included in the above-mentioned function key processing is not limited to the method of executing the program including the above-mentioned processing in a general-purpose information processing device such as a smart phone or a tablet computer. Figure 6 The procedures for executing the processing of the flowcharts described as examples can be changed as appropriate.
Claims
1. An electronic device, characterized in that: have: A key is associated with multiple action modes; and The processor receives input of a numerical value in each of the plurality of operation modes, and obtains a calculation value according to a calculation expression associated with each operation mode using the received input numerical value. The processor In response to the key being operated, if it is determined that one of the plurality of action modes associated with the key is being activated and the numerical value has been input, the one action mode being activated is maintained and the input of the numerical value is invalidated. In response to further continuing to operate the key, the one of the operation modes is ended, and another operation mode among the plurality of operation modes associated with the key is started.
2. The electronic device according to claim 1, wherein: The processor In response to the operation of a specific key different from the key, if it is determined that one of the action modes associated with the key is being activated and after the input of the numerical value is accepted, the input of the numerical value is invalidated, Even if the specific key is further operated, the other operation mode is not activated, and the one operation mode is maintained.
3. The electronic device according to claim 1 or 2, characterized in that: The processor The other motion mode is determined in a predetermined order from among the plurality of motion modes associated with the key, and the determined other motion mode is activated.
4. A method for switching an action mode, characterized in that: The processor of the electronic device includes a key associated with a plurality of operation modes, and a processor that accepts input of a numerical value in each of the plurality of operation modes and obtains a calculation value according to a calculation formula associated with each operation mode using the accepted input numerical value, and performs the following processing: In response to the key being operated, if it is determined that one of the plurality of action modes associated with the key is being activated and the numerical value has been input, the one action mode being activated is maintained and the input of the numerical value is invalidated, In response to further continuing to operate the key, the one of the operation modes is ended, and another operation mode among the plurality of operation modes associated with the key is started.
5. A recording medium, characterized in that A program is recorded for causing a processor of an electronic device having keys associated with a plurality of action modes and a processor for accepting input of numerical values in each of the plurality of action modes and obtaining a calculation value according to a calculation formula associated with each action mode using the numerical values accepted for input to execute the following processing: In response to the key being operated, if it is determined that one of the plurality of action modes associated with the key is being activated and the numerical value has been input, the one action mode being activated is maintained and the input of the numerical value is invalidated, In response to further continuing to operate the key, the one of the operation modes is ended, and another operation mode among the plurality of operation modes associated with the key is started.
