HØLLØW Posted February 14, 2010 Posted February 14, 2010 (edited) Hi guys out there,can anyone tell me if it's possible to make a text blinking in a batch-file?I read a few sites about that but I thinks it's very complex to do that?!Is there a 3rd-party tool to do this? I always usie "EchoX" to make colored text, but it has no functionality to make blinking text Is it also possible to clear just one line in a ECHO-command in batch?With CLS I always clear the whole screen...Thank you Edited February 14, 2010 by HØLLØW
Tripredacus Posted February 18, 2010 Posted February 18, 2010 I'm thinking maybe going back to BASIC... If you can get QBASIC from Windows 95 (or 98?) you build scripts to do things like this. I also remember making cmdline/DOS programs like this that was able to run programs, display different info, and make text blink. Unfortunately I lost my old DOS and QBASIC books in a flood I had about a year ago, so only the internet is left. Here is a site that talks about using flashing text in QBASIC:http://www.qbcafe.net/qbc/english/misc/tutorials/beginner/starting-qbasic-2.html
MDGx Posted February 18, 2010 Posted February 18, 2010 Depends what type of OS you're using.In MS-DOS 6/7/8 [6.22 is last stand-alone DOS based OS from MS; MS-DOS 7.00, 7.10 + 8.00 are part of Windows 95, 98 + ME, respectively] it is possible to have blinking text, using an ANSI device driver [pre-loaded in memory from CONFIG.SYS or AUTOEXEC.BAT], like ANSI.SYS included with all MS-DOS 6/7/8 [Win95/98/ME] releases, or 3rd party ANSI.COM [free].ANSI allows full spectrum of 16 VGA colors, blinking, layouts, custom prompts, etc... in real/native DOS mode [outside Windows GUI], but a lil more restricted (no blinking) under Win9x GUI DOS box/session/window.But if you're using any WinNTx based OSes [NT4, 2000, XP, 2003, Vista, 2008 or 7], you're out of luck, because the DOS console is merely a virtual machine, not the "real" DOS mode.And Microsoft disabled completely [mainly for security + compatibility reasons] the access to real mode hardware resources.Therefore in NTx OSes there is no text blinking in DOS [DOS is available only as a window/session/box/console = VM (Virtual Machine)], nor keyboard shortcuts for that matter. And the ANSI functions are implicitly disabled [although the obsolete file ansi.sys is still found in %windir%\system32], since there is no "real" DOS mode.EchoX uses same functions as DOS VM to display colors.There might be a tiny possibility...1. find a 3rd party NT-compatible DOS tool/device [?] which allows limited access to hardware resources in DOS VMs [console];2. try to learn how to tweak MS PowerShell [free add-on in XP/2003/Vista/2008 and native in Win7]:http://www.mdgx.com/xptoy.htm#PWSTweaking PowerShell to display blinking text is probably a long shot, but I have no experience using it.Good luck.BTW:Basic/Qbasic also uses ANSI functions to change colors and blink. Therefore most of those functions will be disabled in NTx OSes.Although I haven't tried runnig Qbasic programs from DOSBox [free GPL]: http://www.dosbox.com/HTH
jaclaz Posted February 19, 2010 Posted February 19, 2010 The blinking is supported in "pure" DOS and In "full screen" mode only with ANSI, AFAICR:http://www.robvanderwoude.com/ansi.phpAnother possibility may be using a bash cmdline shell for NT, original bash does have blinking text supported. Check this one:http://www.claus-juergen-claussen.de/htmls/xewc_e.htmlit may have a similar effect to what you are looking for.jaclaz
Tripredacus Posted February 19, 2010 Posted February 19, 2010 BTW:Basic/Qbasic also uses ANSI functions to change colors and blink. Therefore most of those functions will be disabled in NTx OSes.Although I haven't tried runnig Qbasic programs from DOSBox [free GPL]: http://www.dosbox.com/HTHI still have some old software that was written in Q/BASIC or one of its derivatives. I have found that these old programs only run in Dosbox. For example, one of them I know is written in BASIC (based on the file headers of the EXEs) if ran in XP from double-click or command prompt will spike the CPU to 100% and not open. In DOSbox, it uses maybe 2% of CPU. It may have something to do with your other comments. I need to figure out myself how DOSBox works better, because this specific app I am using (which has blinking text btw) is abandonware and I wanted to update it. Only way I can find is a hex editor, unless you know of any BASIC decompilers. I can provide specific BASIC compiler info if needed.
DataCracker7899 Posted January 2, 2013 Posted January 2, 2013 easy you can change blue text.title HAXCOM:ST4RTcolor a@echo offtitle HAXCOMclsecho Your Text Heregoto ST4RTand special animationtitle HAXCOMcolor a@echo offtitle HAXCOMclsping localhost -n 2 >nulecho Your Text Hereping localhost -n 2 >nulecho second text herepause
jaclaz Posted January 2, 2013 Posted January 2, 2013 easy you can change blue text.Perfect. OP:Is it also possible to clear just one line in a ECHO-command in batch?With CLS I always clear the whole screen...What you are suggesting is NOT about having blinking text, but rather about cyclically clear and re-display the whole console text area.jaclaz
Ponch Posted January 15, 2013 Posted January 15, 2013 and it's an old thread as well, I know everybody can get caught but DataCracker is like looking for them.
Yzöwl Posted January 15, 2013 Posted January 15, 2013 Now it's been reborn, I thought the attatchment may be interesting.Blink.zip
DataCracker7899 Posted February 17, 2013 Posted February 17, 2013 That is very easy here is the codetitle G7 NanoHaxcolor a@echo offtitle G7 NanoHaxcls:123clsecho YOUR TEXT HEREgoto 123then save as NameMe.bat and as 'All Files'you can download a example i made down there called 'Blinkin' Text.zip' it's in zip cause it didn't allow .bat there is .exe version too. there is no malware virus spyware adware rootkits or anything maliciousBlinkin\' Text.zip
DataCracker7899 Posted February 17, 2013 Posted February 17, 2013 easy you can change blue text.Perfect. OP:Is it also possible to clear just one line in a ECHO-command in batch?With CLS I always clear the whole screen...What you are suggesting is NOT about having blinking text, but rather about cyclically clear and re-display the whole console text area.jaclazNo you cant have cls command on one line sorry.
DataCracker7899 Posted February 17, 2013 Posted February 17, 2013 and it's an old thread as well, I know everybody can get caught but DataCracker is like looking for them. What do you mean what is DataCracker7899 looking for?
jaclaz Posted February 17, 2013 Posted February 17, 2013 That is very easy here is the codeInteresting you managed to worsen your own code, posted only a couple posts before:by removing the ping loop.And AGAIN that has NOTHING to do with "blinking" text, it is all about endless looping the CLS and ECHO commands. jaclaz
DataCracker7899 Posted February 18, 2013 Posted February 18, 2013 yeah but the text will blink so so what jaclaz
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now