Patent ID: 8209444

Claim:
A macro function setting method for a keyboard with macro functions, wherein the keyboard at least comprises a switch key, a set of macro keys, and a memory unit, wherein the memory unit stores a set of predefined macro definition data and macro index and each of the macro keys separately corresponds to a macro definition data in a plurality of predefined macro definition data, and wherein the macro definition data represents a sequences of operations, the method comprising: detecting that the switch key and a first macro key of the macro keys have been pressed, wherein the first macro key corresponds to a first macro definition data and corresponds to a macro index; calculating the number of times that the first macro key has been pressed when the switch key has not been released; and when the switch key is released, changing the macro index of the first macro key according to the number of times that the first macro key has been pressed such that the first macro key corresponds to a second macro definition data.