Hack Forums
[Shell] Flashing Lights - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Flashing Lights (/showthread.php?tid=4037875)



Flashing Lights - Jack_Soff - Feb 2, 2014

Can someone tell me the keyboard commands for the FN key and the Esc key

I'm trying to make a bat file that makes my keyboard flash colors and the way you change the colors is the Fn keu and the Esc key. I know how to do it I just need the key codes

Thanks 👍


* - Nakamoto. - Feb 2, 2014

There are no key codes for any keys in batch, although this could be done with numbers letters or symbols using the choice command.


* - Jack_Soff - Feb 2, 2014

(Feb 2, 2014 09:15 PM)RenRioku™ Wrote:  There are no key codes for any keys in batch, although this could be done with numbers letters or symbols using the choice command.
I thought you can do it this way

WshShell.SendKeys "{ENTER}"


* - Nakamoto. - Feb 2, 2014

(Feb 2, 2014 09:16 PM)Jack_Soff Wrote:  I thought you can do it this way

WshShell.SendKeys "{ENTER}"

That is not batch though, not sure what that is. VBS maybe?


* - Jack_Soff - Feb 2, 2014

(Feb 2, 2014 09:18 PM)RenRioku™ Wrote:  That is not batch though, not sure what that is. VBS maybe?
Oh damn you're right, well do you know any ways to do this?


* - Nakamoto. - Feb 2, 2014

(Feb 2, 2014 09:20 PM)Jack_Soff Wrote:  Oh damn you're right, well do you know any ways to do this?

Depends, are you wanting it in only batch and if so can you use other keys besides the two you listed?


* - Jack_Soff - Feb 2, 2014

(Feb 2, 2014 09:21 PM)RenRioku™ Wrote:  Depends, are you wanting it in only batch and if so can you use other keys besides the two you listed?
No it can be in any language I just thought it would be the easiest in batch


* - Nakamoto. - Feb 2, 2014

(Feb 2, 2014 09:24 PM)Jack_Soff Wrote:  No it can be in any language I just thought it would be the easiest in batch

Well with batch you could do
Code
@echo off&title Colorful
:loop
choice /c 12 >nul
if %errorlevel%==1 color a0
if %errorlevel%==2 color d0
goto loop



* - Jack_Soff - Feb 2, 2014

(Feb 2, 2014 09:40 PM)RenRioku™ Wrote:  Well with batch you could do
Code
@echo off&title Colorful
:loop
choice /c 12 >nul
if %errorlevel%==1 color a0
if %errorlevel%==2 color d0
goto loop
I don't know why but it didn't work


* - ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ - Feb 2, 2014

(Feb 2, 2014 09:45 PM)Jack_Soff Wrote:  I don't know why but it didn't work

How does it not work? Lol. Save as .bat. Open. Press 1 or 2. Easy.


* - Slapyournet - Feb 2, 2014

I think what he means is for his keyboard to flash colors not the batch file itself. -> "makes my keyboard flash colors"


* - ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ - Feb 2, 2014

(Feb 2, 2014 10:33 PM)Gone1900 Wrote:  I think what he means is for his keyboard to flash colors not the batch file itself. -> "makes my keyboard flash colors"

That sounds more like a hardware issue than a software issue. He'd have to have colored LEDs built into his keyboard, rendering this thread beyond useless.