201011628 九、發明說明: • 【發明所屬之技術領域】 .及方=明涉及-種在手機主菜單介面上進行計算的系统 【先前技術】 •由於現在手機錢日漸增強,除了可以用來撥打電每 可用來做運算。但目前市面上的手機大多都需進入主 ❸面後’選擇彳目應的功能選項進人運算介面才能進行 4, ’而不此直接在手機的主菜單介面上直接輸入相應的 數字進行計算得到計算結果。如此一來,給用戶帶來使用 上的不便。 【發明内容】 馨於以上内容,有必要提供一種在手機主菜單介面上 進行計算的系統及方法’其解決了用戶無法在傳統手機的 主菜單介面上直接輸入數位及運算符號進行計算的問題。 ❹ 一種在手機主菜單介面上進行計算的系統,所述系統 包括: 設置模組,用於設置手機的部分按鍵在撥號模式與運 算模式下對應的功能或運算符號,並設置撥號模式及運算 模式的區別標準,所述運算符號包括、 CC===59 . 判斷模組,依據上述區別標準判斷用戶當前輸入的字 付串是處於撥號模式還是運算模式; 撥號模組,用於在輸入的字符串處於撥號模式時進^亍 6 201011628 撥號;及 計算 包括 計算模組,用於在輸入的字符串處於運算模式時、_ 〇 一種在手機主菜單介面上進行計算的方法,所述方法 設置手機的部分按鍵在撥號模式及運算模式下對應 功能或運算符號,並設置撥號模式及運算模式的區 '的 準,所述運算符號包括‘‘+,,、“-,,、“*,,、“/,,、“=,,. 標 , 依據上述區別標準判斷用戶當前輸入的字符争β處於 撥號模式還是運算模式;及 尺來 若輸入的字符串處於撥號模式則進行撥號, 入的字符串處於運算模式則進行計算。 t Μ 相較於習知技術,本發明可讓用戶除了可在手機主y 單介面上直接進行撥號外還可直接在主菜單介面上輪人采 位及運算符號進行計算以得到一個計算結果,而不^ 一層層去選擇功能選項以最終實現計算的功能,從而 機用戶帶來便利。 0 【實施方式】 如圖1所示,係本發明的在手機主菜單介面上進行 算的系統的功能模組圖。所述在手機主菜單介面上進二β 算的系統(以下簡稱“運算系統1G”)運行在—= 中。所述手機1包括-塊主菜單介面12,在該主 12上用戶可以選擇相應的功能選項,輸入相應的電話號: 進行撥號及輸入相應的數字與運算符號進行計算。 7 201011628 所述手機1還包括一個記憶體14。所述記憶體14儲 存有各類資料’包括作業系統、各種應用程式、及利用所 述運算系統10過程中所設置及生成的資料,如圖3所示的 部分按鍵在撥號模式或運算模式下對應的功能或運算符 號。 所述記憶體14可以是該手機1的記憶體,還可以是外部 儲存卡,如SM卡(Smart Media Card,智慧媒體卡)、SD 卡(Secure Digital Card,安全數位卡)、CF卡(Compact Flash Card,標準快閃記憶體卡)、MMC卡(Multi Media Card, 多媒體卡)、MS卡(Memory Stick’ 記憶棒)、XD卡(Extreme Digital Card,極限數字卡)、TF卡(Trans Flash Card )等。 所述運算系統10是運行在手機.1上的一段程式,通過 執行該程式段可以讓用戶除了可在主菜單介面上直接撥號 外,還可直接在手機1的主菜單介面12上輸入運算式進行 計算以得到一個計算結果,從而提高手機的人性化程度。 所述運算系統10主要包括設置模組110,判斷模組 120、撥號模組130及計算模組140。 所述設置模組110,用於設置手機的部分按鍵(如撥 號鍵/4認鍵、向上鍵、向下鍵、向左鍵、向右鍵、左軟鍵 及右軟鍵等)在撥號模式及運算模式下對應的功能或運算 符號、撥號模式及運算模式的區別標準等。所述部分按鍵 對應的功能或運算符號設置可參照如圖3所系。 例如,“撥號鍵及確認鍵,,在撥號模式時是用來進行撥 號的;而在運算模式時用來表示運算符號“=”。其他按鍵也 8 201011628 有相應的功能或運算符號。 • 此外,撥號模式及運算模式的區別標準是:如果用戶 • 在手機主菜單介面12輸入的字符串中不含符號 “*”、‘7”)或者僅僅在輸入字符串的開頭位置處含符號“+” (表示國際代碼)符號則判斷該模式是撥號模式,否則判 斷該模式是運算模式。例如,字符串“+886920123456”及 “12345664556”表示該輸入的字符串處於撥號模式;而 “122-453”及“-15455+25/36”表示輸入的字符串處於運算模 ® 式。 所述判斷模組120,用於依據預先設置的撥號模式及 運算模式區別標準判斷用戶直接在主菜單介面12上輸入 的字符串是處於撥號模式還是運算模式。 所述撥號模組130,用於當用戶在主菜單介面12上輸 入的字符串是處於撥號模式時,即輸入的字符串中不含運 算符號或者僅僅在輸入的字符串的開頭位置處含符號“+” # 則在接收到用戶按下撥號鍵或者確認鍵的信號時進行撥 號。 所述計算模組140,用於判斷用戶輸入的字符串是處 理運算模式時,在接收到用戶按下的撥號鍵或確認鍵的信 號時進行計算以得到一個計算結果。 所述計算模組140還用於當該輸入的字符串處於運算 模式時,判斷該運算式是否合法,當不合法時提示該運算 式不合法且返回主菜單介面,當合法時則進行計算。例如 “*-1245/252”不合法,而“125-89/7*3”則合法。 9 201011628 圖2係本發明在手機主菜單介面上進行計算的方法的 流程圖。 步驟S201,設置手機的部分按鍵(如撥號鍵/確認鍵、 向上鍵、向下鍵、向左鍵、向右鍵、左軟鍵及右軟鍵等) 在撥號模式或運算模式下對應的功能或運算符號、撥號模 式及運算模式的區別標準等。所述部分按鍵對應的功能或 運算符號設置如圖3所示。 步驟S202,用戶在進入主菜單介面12後輸入字符串 並接收用戶按下撥號鍵或確認鍵的信號。所述字符串可包 括數位、及運算符號(“+”等。 步驟S203,依據預先設置的撥號模式及運算模式的區 別標準判斷當前用戶輸入的字符串是處於撥號模式還是運 算模式。當處於撥號模式時,執行步驟S207進行撥號。 相反,若處於運算模式時,則執行步驟S204。 步驟S204,判斷所輸入的字符串是否合法。 當不合法時,執行步驟S206以提示該運算式不合法 且返回主菜單介面;及當合法時則執行步驟S205進行計 算以得到一個計算結果。 圖3所示係本發明對手機上的部分按鍵分別在撥號模 式或運算模式對應的功能或者運算符號。其中“撥號鍵及確 認鍵”在撥號模式時是用來進行撥號的;而在運算模式時用 來表示運算符號“=”。向上鍵、向下鍵、向左鍵及向右鍵在 運算模式時表示運算符號“+”等。其他按鍵 也有相應的功能或運算符號。 、 主菜單介®切行計算的系統的201011628 IX. Description of the invention: • [Technical field to which the invention belongs] . and == related to the system for calculating on the main menu interface of the mobile phone [Prior Art] • Since the mobile phone money is increasing day by day, in addition to being able to make calls Everything can be used to do the calculations. However, most of the mobile phones currently on the market need to enter the main page, and then select the function option of the user to enter the computing interface to perform 4, ' instead of directly inputting the corresponding number directly on the main menu interface of the mobile phone. Calculation results. As a result, the user is inconvenienced in use. SUMMARY OF THE INVENTION In order to provide a system and method for calculating on the main menu interface of a mobile phone, it is necessary to solve the problem that the user cannot directly input digital digits and arithmetic symbols on the main menu interface of the conventional mobile phone.系统 A system for calculating on the main menu interface of the mobile phone, the system comprising: a setting module, configured to set a function or an operation symbol corresponding to a part of the button of the mobile phone in a dialing mode and an operation mode, and setting a dialing mode and an operation mode The difference standard, the operation symbol includes, CC===59. The judging module judges whether the currently input word string of the user is in the dialing mode or the operation mode according to the above difference criterion; the dialing module is used for the input character When the string is in the dialing mode, it enters 6亍 201011628 dialing; and the calculation includes a calculation module for when the input string is in the operation mode, _ 〇 a method for calculating on the main menu interface of the mobile phone, the method setting Some of the buttons of the mobile phone correspond to functions or arithmetic symbols in the dialing mode and the operation mode, and set the dialing mode and the area of the operation mode, and the arithmetic symbols include ''+,,,,,,,,,,,*,, , "/,,," =,,. mark, according to the above difference criteria to determine whether the user currently entered the character contention in the dialing mode or operation Mode; and ruler. If the input string is in dialing mode, dialing is performed, and the entered string is in the calculation mode. t Μ Compared with the prior art, the present invention allows the user to perform direct calculation on the main menu interface in addition to dialing directly on the main interface of the mobile phone to obtain a calculation result. Instead of layering layers to select functional options to ultimately implement the computational functionality, the user is more convenient. [Embodiment] As shown in Fig. 1, it is a functional module diagram of a system for calculating on the main menu interface of the mobile phone of the present invention. The system that enters the second beta calculation on the main menu interface of the mobile phone (hereinafter referred to as "computing system 1G") operates in -=. The mobile phone 1 includes a -block main menu interface 12 on which the user can select a corresponding function option and input a corresponding telephone number: dialing and inputting corresponding numbers and arithmetic symbols for calculation. 7 201011628 The mobile phone 1 further includes a memory 14. The memory 14 stores various types of data 'including an operating system, various application programs, and materials set and generated during the operation of the computing system 10, and some of the buttons shown in FIG. 3 are in a dialing mode or an operation mode. Corresponding function or arithmetic symbol. The memory 14 may be the memory of the mobile phone 1, or may be an external storage card, such as a SIM card (Smart Media Card), an SD card (Secure Digital Card), a CF card (Compact). Flash Card, standard flash memory card), MMC card (Multi Media Card), MS card (Memory Stick'), XD card (Extreme Digital Card), TF card (Trans Flash Card) )Wait. The computing system 10 is a program running on the mobile phone 1. By executing the program segment, the user can directly input the arithmetic expression on the main menu interface 12 of the mobile phone 1 in addition to directly dialing on the main menu interface. Calculate to get a calculation result, so as to improve the humanization of the mobile phone. The computing system 10 mainly includes a setting module 110, a determining module 120, a dialing module 130, and a computing module 140. The setting module 110 is configured to set some buttons of the mobile phone (such as a dialing button/4 button, an up button, a down button, a left button, a right button, a left soft button, a right soft button, etc.) in a dialing mode and The difference between the corresponding function or arithmetic symbol, the dialing mode, and the operation mode in the operation mode. The function or arithmetic symbol corresponding to the partial button can be referred to as shown in FIG. For example, “Dial button and confirmation button are used to dial in dialing mode; in operation mode, it is used to indicate the arithmetic symbol “=”. Other buttons are also available. 201011628 has corresponding function or arithmetic symbol. The difference between dialing mode and operation mode is: if the user • does not include the symbol “*”, '7” in the character string entered in the mobile phone main menu interface 12 or only the symbol “+” at the beginning of the input string. The symbol (indicating the international code) judges that the mode is the dialing mode, otherwise it is judged that the mode is the operation mode. For example, the strings "+886920123456" and "12345664556" indicate that the input string is in dialing mode; and "122-453" and "-15455+25/36" indicate that the input string is in the analog mode. The determining module 120 is configured to determine, according to a preset dialing mode and a computing mode difference criterion, whether the character string input by the user directly on the main menu interface 12 is in a dialing mode or an operation mode. The dialing module 130 is configured to: when the character string input by the user on the main menu interface 12 is in the dialing mode, the input string does not contain an operation symbol or only has a symbol at the beginning of the input string. “+” # is dialed when receiving a signal from the user pressing the dial button or the confirmation button. The calculation module 140 is configured to determine that the character string input by the user is in the processing operation mode, and performs calculation when receiving the signal of the dial key or the confirmation key pressed by the user to obtain a calculation result. The calculation module 140 is further configured to: when the input character string is in the operation mode, determine whether the operation formula is legal. When it is illegal, the operation formula is invalid and the main menu interface is returned, and when it is legal, the calculation is performed. For example, "*-1245/252" is illegal, and "125-89/7*3" is legal. 9 201011628 Figure 2 is a flow chart of a method for performing calculations on the main menu interface of a mobile phone of the present invention. Step S201, setting some buttons of the mobile phone (such as a dialing button/confirm button, an up button, a down button, a left button, a right button, a left soft button, a right soft button, etc.), or a corresponding function in the dial mode or the operation mode or The difference between the arithmetic symbol, the dialing mode, and the operation mode. The function or arithmetic symbol corresponding to the partial button is as shown in FIG. 3. In step S202, after entering the main menu interface 12, the user inputs a character string and receives a signal that the user presses the dial key or the confirmation key. The character string may include a digit, and an operation symbol ("+", etc. Step S203, determining whether the character string input by the current user is in the dialing mode or the operation mode according to the difference standard of the dialing mode and the operation mode set in advance. In the mode, step S207 is performed to perform dialing. Conversely, if it is in the operation mode, step S204 is performed. Step S204, it is determined whether the input character string is legal. When it is not legal, step S206 is performed to indicate that the expression is illegal and Returning to the main menu interface; and when it is legal, performing step S205 for calculation to obtain a calculation result. Fig. 3 is a function or operation symbol corresponding to the partial button on the mobile phone in the dialing mode or the operation mode, respectively. The dialing button and the confirmation button are used to dial in the dialing mode; in the calculation mode, the operator symbol "=" is used. The up button, down button, left button and right button are used to indicate the operation mode. The symbol "+", etc. Other buttons also have corresponding functions or arithmetic symbols. systematic
201011628 利申請。1切2合發料财件’纽法提出專 明之範圍並不Μ述實\ =本發明之較佳實施例,本發 士援依本發明之精神所凡熟悉本案技藝之人 以下申請專利範_。 細4或變化’皆應涵蓋於 【圖式簡單說明】 圖1係本發明在手機 功能模組圖。 圖2係本發明在手機主 人 工作流程圖。 ;1 進行計算的方法的 s圈圖3是設置手機的各按鍵對應的雜或運算符號的示 【主要元件符號說明】 手機 運算系統 1 設置模組 10 判斷模組 110 撥號模組 120 計算模組 130 主菜單介面 140 處理器 12 14201011628 Interest application. 1 cut 2 joint issue financial item 'New method to propose a specific scope is not to describe the actual \ \ The preferred embodiment of the present invention, the present in accordance with the spirit of the present invention, those who are familiar with the skill of the present invention, the following patent application _. The details of the thin 4 or the change should be covered in the following. Figure 2 is a flow chart of the operation of the mobile phone owner of the present invention. ;1 The s circle of the method for calculating Fig. 3 is the display of the miscellaneous or arithmetic symbols corresponding to the buttons of the mobile phone. [Main component symbol description] Mobile computing system 1 Setting module 10 Judging module 110 Dialing module 120 Computing module 130 Main Menu Interface 140 Processor 12 14