Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Case sensitive macro
#2
Create function FF_UCase and paste this code:

Code:
Copy      Help
;/
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)