11-21-2006, 09:25 AM
Create function FF_UCase and paste this code:
Then go to FF_Ucase properties, click Function Properties tab, check "This function can be used as filter function", click OK.
Assign filter function FF_UCase to the macro. You can do it in macro Properties (click FF, Use, select from the dropdown list). Also, in macro Properties, Shift checkbox must be in third state.
You can assign this function to other macros too.
Example trigger-string (you can simply paste it in the toolbar, instead of using the Properties dialog):
Sm 0x3 //FF_UCase
;/
function# iid FILTER&f
;Allows the macro to run if Shift is pressed or CapsLock is toggled, but not both.
;That is, if an alpha key would type in upper case.
int shift capslock
ifk(S) shift=1
ifk(K 1) capslock=1
if(shift^capslock) ret iid
Then go to FF_Ucase properties, click Function Properties tab, check "This function can be used as filter function", click OK.
Assign filter function FF_UCase to the macro. You can do it in macro Properties (click FF, Use, select from the dropdown list). Also, in macro Properties, Shift checkbox must be in third state.
You can assign this function to other macros too.
Example trigger-string (you can simply paste it in the toolbar, instead of using the Properties dialog):
Sm 0x3 //FF_UCase