Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to evaluate if CAPSLOCK is on or off
#1
I have tried the small anticaps macro and it works.
However it still does not solve my problem.

I need a way of evaluating if CAPSLOCK is on or off before running a password macro to type in a password. If one of my students machines has CAPSLOCK on then the password is not accepted and the macro stops.

Any help much appreciated.
#2
Alternatively it would be sufficient to have a way to force CAPSLOCK off.
#3
Use ifk(K 1) ...

Code:
Copy      Help
ifk(K 1) key K
#4
Fantastic Gintaras

Works perfectly

I'm sorry you had to tell me about something that was already in the help pages. I did do a search for "capslock" but didn't find the command under "ifk". I don't understand how I missed it. I had already experimented with "key K 0" or "key K 1", so I was close.

I hope I don't need to bother you again.

Alistair
#5
Gintaras Wrote:Use ifk(K 1) ...

Code:
Copy      Help
ifk(K 1) key K

You could also assign a Hot Key, (K) to a function. Then put this code inside the function.
Code:
Copy      Help
0.3    
ifk(K 1) key K

This way anytime the (Caps Lock) key is pressed it will be automatically switched off. It's a good thing for me because I really don't use (Capital) letters to often. I usually just hold down shift. Just shareing an idea. Hope it helps in some way.  :)


Forum Jump:


Users browsing this thread: 2 Guest(s)