Jump to content

Recommended Posts

Posted (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 :huh:

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 by HØLLØW

Posted

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

Posted

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#PWS

Tweaking 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

Posted

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

I 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.

  • 2 years later...
Posted

easy

you can change blue text.

title HAXCOM

:ST4RT

color a

@echo off

title HAXCOM

cls

echo Your Text Here

goto ST4RT

and special animation

title HAXCOM

color a

@echo off

title HAXCOM

cls

ping localhost -n 2 >nul

echo Your Text Here

ping localhost -n 2 >nul

echo second text here

pause

Posted

easy

you can change blue text.

Perfect. :thumbup

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

  • 2 weeks later...
Posted

and it's an old thread as well, I know everybody can get caught :rolleyes: but DataCracker is like looking for them. :D

  • 1 month later...
Posted

That is very easy here is the code

title G7 NanoHax

color a

@echo off

title G7 NanoHax

cls

:123

cls

echo YOUR TEXT HERE

goto 123

then 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 malicious

Blinkin\' Text.zip

Posted

easy

you can change blue text.

Perfect. :thumbup

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

No you cant have cls command on one line sorry.

Posted

That is very easy here is the code

Interesting 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. :realmad:

jaclaz

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...