0
2
With command prompt, can I turn my number lock on or off? I'm hoping to do it with just one line, but I'm assuming I can't as that would have shown up in google.
0
2
With command prompt, can I turn my number lock on or off? I'm hoping to do it with just one line, but I'm assuming I can't as that would have shown up in google.
-1
If you search google for "utility to turn off num lock", you will get a good answer.
It is a command line tool, just a simple little exe, 'numlock.exe off'
Alternatively, there are dozens of code examples if you want to build your own application, using any number of free development tools :)
I didnt take the risk of posting the rjl link :) – Michael – 2013-05-14T02:12:44.953
2It look like a reasonably legit site - there's even an address and phone number. Of course, as with any downloaded software, caveat emptor! – hdhondt – 2013-05-14T02:15:54.600
And thats my latin lesson for the day – Michael – 2013-05-14T02:19:00.623
I should have said so in the original post, but I'd like to do it with just regular command prompt. Sorry. – Jon – 2013-05-14T03:57:18.027
I don't understand. Hack the low level hardware with a one line command prompt? Without custom/3rd party tools? – Michael – 2013-05-14T04:27:53.460
2
Google gave a few quick answers when I tried it, for example NUMLOCK.EXE and CAPSLOCK.EXE from this site:
http://www.rjlsoftware.com/software/utility/default.cfm
Once installed, the relevant commands are:
NUMLOCK ON/OFF
CAPSLOCK ON/OFF
BTW, I searched for "num lock command prompt" – hdhondt – 2013-05-14T02:17:24.373
I should have said so in the original post, but I'd like to do it with just regular command prompt. Sorry. – Jon – 2013-05-14T03:56:44.023
There is no way to do it with standard Windows commands. With Win 95(?) you could use Windows to create an assembler file that would do the job, but I doubt very much that will work with current versions of Windows. See http://support.microsoft.com/kb/151715
– hdhondt – 2013-05-15T11:12:30.4601
For UNIX there is NumLockX to enable and disable numlock from the console.
0
POWERSHELL [CONSOLE]::NumberLock | FIND /I "FALSE">NUL&&POWERSHELL ($WSH = New-Object -ComObject WScript.Shell)-AND($WSH.SendKeys('{NUMLOCK}'))>NUL
Here is a good mash up for command prompt. Checks if the numlock is off, and if so turns it on. If you want it the other way around, Change FALSE to TRUE in "FIND /I "FALSE">NUL"
4Please remember to include the OS you are using in your question. [tag:command-line] can apply to Windows, Linux, Unix, OSX, BSD, BeOS, Dos, etc etc. – terdon – 2013-05-14T10:38:55.123