Hi
How can i turn on or off Capslock or ScrollLock or Numlock from a button in livecode?
if i press a button in mine card i wont it to turn on capslock or scrolllock or numlock.and an other button for turning it off.
Is this possible.
Thanks
Capslock,ScrollLock,NumLock in a button?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Capslock,ScrollLock,NumLock in a button?
Hmmm.
I don't think you can "set" the state of those keys. You can, of course, use a native function to detect that state:
Is it that you want to force user input into all caps, say when typing into a field? That is better done with a "keyDown" or "rawKeyDown" handler, located in the right place.
Write back with your thoughts....
Craig Newman
I don't think you can "set" the state of those keys. You can, of course, use a native function to detect that state:
Code: Select all
answer the capsLockKey
Write back with your thoughts....
Craig Newman
Re: Capslock,ScrollLock,NumLock in a button?
Ok
I will try other way for what i need it. its how you say i have to change the state off the capslock from button in mine card.one button that says Capslock on and Capslock Off (or it can be numlock or scrollock to) reason is for using keyboard light from one those 3 key.
still of there's a solution for it i will be happy to here from some one.
Thanks
I will try other way for what i need it. its how you say i have to change the state off the capslock from button in mine card.one button that says Capslock on and Capslock Off (or it can be numlock or scrollock to) reason is for using keyboard light from one those 3 key.
still of there's a solution for it i will be happy to here from some one.
Thanks
Re: Capslock,ScrollLock,NumLock in a button?
I got this searching in google.just saving it in notepad with .vbs extencion every time open it it change the state
Is it possible to imple,emt it in livecode or an way i can put it to work?
Code: Select all
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"
Re: Capslock,ScrollLock,NumLock in a button?
Hi.
So what if you had a checkBox button that was labelled "All Caps"? And if the hilite of that button was "true", then the text that the user entered into one or more fields was automatically made all caps.
The checkBox need not be visible, or even be a button. It just has to be a property that can be interrogated as required.
Is that what you are needing? If so, write back, or better, give it a try yourself. The whole solution is only a handful of lines in a handler.
Craig
So what if you had a checkBox button that was labelled "All Caps"? And if the hilite of that button was "true", then the text that the user entered into one or more fields was automatically made all caps.
The checkBox need not be visible, or even be a button. It just has to be a property that can be interrogated as required.
Is that what you are needing? If so, write back, or better, give it a try yourself. The whole solution is only a handful of lines in a handler.
Craig