Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Case sensitive macro
#1
Is it possible to execute a macro (for example a sound) whenever I tipe M, but not m (indipendently from having typed M by keeping the shift key pressed or by having activated the caps lock key)?
#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
#3
Wonderful: now I can give up those programs that I used to solve the problem of pressing unintentionally the capslock key


Forum Jump:


Users browsing this thread: 1 Guest(s)