EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

OT: Forcing keyboard state

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Electronics Design - OT: Forcing keyboard state

Goto page 1, 2, 3, 4, 5, 6  Next

Robert Baer
Guest

Thu Feb 02, 2012 8:25 am   



I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

Dennis
Guest

Thu Feb 02, 2012 9:45 am   



"Robert Baer" <robertbaer_at_localnet.com> wrote in message
news:pOCdnVaKFa4cp7fSnZ2dnUVZ_rSdnZ2d_at_posted.localnet...
Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?




https://www.google.com/search?q=DOS+batch+file+that+turns+NumLock


numlock=on ?

Dennis
Guest

Thu Feb 02, 2012 9:48 am   



"Robert Baer" <robertbaer_at_localnet.com> wrote in message
news:pOCdnVaKFa4cp7fSnZ2dnUVZ_rSdnZ2d_at_posted.localnet...
Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?




http://www.easydos.com/numlock.html

Mycelium
Guest

Thu Feb 02, 2012 1:58 pm   



On Wed, 01 Feb 2012 23:25:30 -0800, Robert Baer <robertbaer_at_localnet.com>
wrote:

Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

Assembler.

Or within a Windows "command prompt", you may be able to pass the
windows virtual key code. Which is VK_NUMLOCK



I found this, which does declare the hex value.

http://delphi.about.com/od/objectpascalide/l/blvkc.htm

It is 90

Though keyed toward Delphi, the code value is correct, so there info to
gather there. There are also hints as to how to pass the key to the
system in code.

Mycelium
Guest

Thu Feb 02, 2012 2:01 pm   



On Thu, 2 Feb 2012 16:45:31 +0800, "Dennis" <jon.dough_at_ithemorgue.com>
wrote:

Quote:

"Robert Baer" <robertbaer_at_localnet.com> wrote in message
news:pOCdnVaKFa4cp7fSnZ2dnUVZ_rSdnZ2d_at_posted.localnet...
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?




https://www.google.com/search?q=DOS+batch+file+that+turns+NumLock


numlock=on ?


C:\Users\***>numlock=off
'numlock' is not recognized as an internal or external command,
operable program or batch file.

You know how to google, but do you actually know what a batch command
is, or a batch file, for that matter?

I have doubts, as your reply is invalid, and you *should* already know
that.

Martin Brown
Guest

Thu Feb 02, 2012 2:28 pm   



On 02/02/2012 07:25, Robert Baer wrote:
Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

Since no-one has made any sensible answers so far try

http://support.microsoft.com/kb/71511
or
http://support.microsoft.com/kb/151715

Odd that both articles are all perms of 1,5,7
CAVEAT EMPTOR, but they look about right

You might find a DOS utility on Simtel eg

http://www.simtel.net/free/System-Utilities-Keyboard-utilities/toggle-zip/47269.html

--
Regards,
Martin Brown

Mycelium
Guest

Thu Feb 02, 2012 3:01 pm   



On Thu, 02 Feb 2012 13:28:09 +0000, Martin Brown
<|||newspam|||@nezumi.demon.co.uk> wrote:

Quote:
Since no-one has made any sensible answers so far try

You're a fucking retard.

Spehro Pefhany
Guest

Thu Feb 02, 2012 3:03 pm   



On Thu, 2 Feb 2012 16:45:31 +0800, the renowned "Dennis"
<jon.dough_at_ithemorgue.com> wrote:

Quote:

"Robert Baer" <robertbaer_at_localnet.com> wrote in message
news:pOCdnVaKFa4cp7fSnZ2dnUVZ_rSdnZ2d_at_posted.localnet...
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?




https://www.google.com/search?q=DOS+batch+file+that+turns+NumLock


numlock=on ?


Unrelated, but I did this little hack recently to create a
right-windows key in place of the app key on the microsoft Natural
keyboards.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode
Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,5c,e0,5d,e0,00,00,00,00

Save as something.reg, right click, select "Merge" and reboot.


Among other things, it lets you lock the computer easily with one hand
anytime you walk away from it.


Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff_at_interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com

Spehro Pefhany
Guest

Thu Feb 02, 2012 3:06 pm   



On Thu, 02 Feb 2012 13:28:09 +0000, the renowned Martin Brown
<|||newspam|||@nezumi.demon.co.uk> wrote:

Quote:
On 02/02/2012 07:25, Robert Baer wrote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

Since no-one has made any sensible answers so far try

http://support.microsoft.com/kb/71511
or
http://support.microsoft.com/kb/151715

Odd that both articles are all perms of 1,5,7
CAVEAT EMPTOR, but they look about right

You might find a DOS utility on Simtel eg

http://www.simtel.net/free/System-Utilities-Keyboard-utilities/toggle-zip/47269.html


Many BIOS setup programs have an option for setting the power-up
numlock state.


Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff_at_interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com

Mycelium
Guest

Thu Feb 02, 2012 3:45 pm   



On Thu, 02 Feb 2012 09:06:02 -0500, Spehro Pefhany
<speffSNIP_at_interlogDOTyou.knowwhat> wrote:

Quote:
On Thu, 02 Feb 2012 13:28:09 +0000, the renowned Martin Brown
|||newspam|||@nezumi.demon.co.uk> wrote:

On 02/02/2012 07:25, Robert Baer wrote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

Since no-one has made any sensible answers so far try

http://support.microsoft.com/kb/71511
or
http://support.microsoft.com/kb/151715

Odd that both articles are all perms of 1,5,7
CAVEAT EMPTOR, but they look about right

You might find a DOS utility on Simtel eg

http://www.simtel.net/free/System-Utilities-Keyboard-utilities/toggle-zip/47269.html


Many BIOS setup programs have an option for setting the power-up
numlock state.


Best regards,
Spehro Pefhany

Are you sure that is what he is after?

Also, if he is on some old legacy box, it may not be on that list,
though it has been for quite a long time, and likely would be.

One would think that the batch file call would be a toggle, and simply
calling it again would toggle back.

A file I would create to call from a batch file would be a toggle not
an explicit on or off. But that's me.

Fred Abse
Guest

Thu Feb 02, 2012 7:17 pm   



On Wed, 01 Feb 2012 23:25:30 -0800, Robert Baer wrote:

Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

I've always wanted caps lock *off*. The IBM-style caps lock is an
abortion, just reversing the shift action.

What would be nicer is something that makes caps lock behave like a
typewriter caps lock.

--
"For a successful technology, reality must take precedence
over public relations, for nature cannot be fooled."
(Richard Feynman)

Sjouke Burry
Guest

Thu Feb 02, 2012 7:28 pm   



Robert Baer <robertbaer_at_localnet.com> wrote in
news:pOCdnVaKFa4cp7fSnZ2dnUVZ_rSdnZ2d_at_posted.localnet:

Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?


Lockoff.
COMMAND SYNTAX:
==============

LockOff Turns off all locks
LockOff ? Displays command syntax
LockOff /ON Turns on all locks
LockOff /OFF Turns off all locks
LockOff /CAPS Turns on Caps lock
LockOff /CAPSOFF Turns off Caps lock
LockOff NUM Turns on Num lock
LockOff NUMOFF Turns off Num lock
LockOff SCROLL Turns on Scroll lock
LockOff SCROLLOFF Turns off Scroll lock
If you want it, I will put a zip on my site.

Robert Roland
Guest

Thu Feb 02, 2012 11:07 pm   



On Wed, 01 Feb 2012 23:25:30 -0800, Robert Baer
<robertbaer_at_localnet.com> wrote:

Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

If by DOS you mean a Windows Command Prompt, you can use AutoIt to do
it. AutoIt is a powerful scripting language. It can even package the
script into a standalone EXE file, so that you don't need to have the
interpreter installed on the machine(s) where the script is to be
used.

Your script would contain only two lines:

AutoItSetOption ( "SendCapslockMode", 0)
send("{CAPSLOCK on}")

You can find AutoIt here:

http://www.autoitscript.com

--
RoRo

Artemus
Guest

Fri Feb 03, 2012 12:44 am   



"Robert Baer" <robertbaer_at_localnet.com> wrote in message
news:pOCdnVaKFa4cp7fSnZ2dnUVZ_rSdnZ2d_at_posted.localnet...
Quote:
I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

Eons ago when I was running DOS I had a TSR which not only
initialized CapsLock to OFF and also turned it OFF any time the
shift key was hit. If anyone knows a way to do this in XP I'd love
to know how.
Art

Pueblo Dancer
Guest

Fri Feb 03, 2012 2:48 am   



On Thu, 02 Feb 2012 23:07:29 +0100, Robert Roland <fake_at_ddress.no> wrote:

Quote:
On Wed, 01 Feb 2012 23:25:30 -0800, Robert Baer
robertbaer_at_localnet.com> wrote:

I have a program, called in a DOS batch file that turns NumLock off.
How does one make a similar program to turn CapsLock on?

If by DOS you mean a Windows Command Prompt, you can use AutoIt to do
it. AutoIt is a powerful scripting language. It can even package the
script into a standalone EXE file, so that you don't need to have the
interpreter installed on the machine(s) where the script is to be
used.

Your script would contain only two lines:

AutoItSetOption ( "SendCapslockMode", 0)
send("{CAPSLOCK on}")

You can find AutoIt here:

http://www.autoitscript.com

Except that he is after the numlock key function, idiot.

Goto page 1, 2, 3, 4, 5, 6  Next

elektroda.net NewsGroups Forum Index - Electronics Design - OT: Forcing keyboard state

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony