Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to make colors flash in a batch file?

Featured Replies

Hi guys. Was wondering if I can get it to put text up with a color, then sleep for .5 seconds or 1 second, then switch colors...over and over. Any help? thanks! I want my batch file to look really great. Thanks!


hi..

download sleep.exe (search 4 it) & in your batch file use COLOR

Copy the code below in a file called SLEEP.VBS and it will take milliseconds. Look at the other code to see how to write your batch with it. It's strange what you wanna do but this is a solution.

SLEEP.VBS

If WScript.Arguments.Count = 1 Then
    WScript.Sleep WScript.Arguments(0)
End If

BATCH FILE

COLOR 07
SLEEP.VBS 500
COLOR 70
SLEEP.VBS 500
COLOR 07
SLEEP.VBS 500
COLOR 70
SLEEP.VBS 500
COLOR 07

You need to call the VBS with "wscript" or "cscript" to be sure it will run.

And that will take up more time than just the 0.5 seconds you want it to. Just sticking to what's scriptable right within the batch-files sounds better.

One option is to ping 127.0.0.1 for as many times (or milli-secs) as needed to wait. That way, no sleep.exe or VBS is needed. Of course, the COLOR command is simple enough, use it after the inter-mittent pings.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.