Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to program "stop slouching !" message

07 Oct 2010   #11

Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx

Hi pacman10

I couldn't find any program that did what you wanted, so I wrote a simple script to read a simple text file and display a random line from that file.

<job id="vbs">
    <script language="VBScript">
        Set objFSO=CreateObject("Scripting.FileSystemObject")
        Set objReadFile=objFSO.OpenTextFile("Quotes.txt", 1)
        Do Until objReadFile.AtEndOfStream
           Redim Preserve arrData(I)
           arrData(I)=Replace(objReadFile.ReadLine, "vbCrLf", (CHR(13) & CHR(10)))

        'WScript.Echo MyNumber

        'WScript.Echo strContents
        MsgBox strContents, 0, "Quotes"
You can save this to a file with the extension .wsf and create a shortcut with WScript "Path to the wsf file" anywhere. The data file 'Quotes.txt' must be in the same folder as the .wsf file.
If you check the data file I've attached you'll find a few lines with vbCrLf. Wherever you add vbCrLf to a line, a line feed [ENTER] will be added.

You can then use Task Scheduler to run the shortcut repetitively.
Task Scheduler - Create New Task

How to program &quot;stop slouching !&quot; message-quote.png

I've attached the files also with this post.

Attached Files
File Type: zip (1.1 KB, 3 views)
My System SpecsSystem Spec
08 Oct 2010   #12

Windows 7 64-bit

Hi Gladson1976,

Thanks very much indeed for taking the trouble to write this script. Very neat !

I'm still trying to work out how to fire it up with Task Scheduler at, say, 6 hourly intervals. Task Scheduler only offers Daily, Weekly, etc. as options.

You really ought to publish this script under a snappy name. I'm sure lots of people would use it. It could also be used to throw up aphorisms and jokes. Attached is a list of sayings that some people might like if it's their kind of style. Unfortunately I can't remember where this list came from. I don't like stealing things and would like to have been able to attribute it to its author or compiler.

Anyway, back to finding out how Task Scheduler works !

Thanks again.

Attached Files
File Type: txt Sayings.txt (22.9 KB, 6 views)
My System SpecsSystem Spec
09 Oct 2010   #13

Microsoft Windows 7 Home Premium 64-bit 7600

well done gladson, some thing that occured to me when reading another thread about vocal messages on startup was that you could possibly have a recorded message and set it as a system sound , perhaps when closing a programme to say your message . not sure exactly how you would go about it but its a thought and if anyone knows how perhaps it could work, you could find a text to speach site where you can type your message then have sound effects and different voices (from anna)
My System SpecsSystem Spec


 How to program "stop slouching !" message

Thread Tools

Similar help and support threads
Thread Forum
"Your Windows isn't Genuine" how can I make this message stop showing?
I'm sorry if this is on the wrong forum section. Some weeks ago I activated my Windows 7 Ultimate 64b and it worked perfectly. But now my computer is nagging about my copy of windows not being genuine. This message keeps popping constantly since yesterday. How can I make it disappear and...
Windows Updates & Activation
Can't copy or move files - error message "open in other program"
When moving or renaming files I frequently get an error messages informing me that "The action can't be completed because the folder or a file in it is open in another program". This typically happens with the second or third folder I try to rename or move. Navigating away to another folder and...
General Discussion
Error message: "A problem caused the program to stop working..."
Hello All, I am experiencing a very debilitating issue with my laptop. The error indicated on the title of this thread appears every time I try to open multiple programs on my machine; the error is present in at least the following applications: Windows explorer, HP SimplePass, HP CSI Shell, HP...
General Discussion
BSOD every few hours: mostly "STOP: 0x00000F4", "c00021a" & "c0000135"
Hi everyone! Yesterday my HP laptop (Windows 7) started getting BSOD with various types of errors (mostly "STOP: 0x00000F4", "STOP: 0x0000007A", "c00021a" and one "missing %hs, c0000135"). Most of the time it restarts without any issues and works fine right after the BSOD and then an hour or two...
BSOD Help and Support
How To Solve the "the program cannot access the file..." message
Recently, for the umpteenth time, I tried the Windows DVD Maker and it actually worked! However, on the next attempt I get: "The program cannot access the file because it is being used by another program" I am burning a dvd-rw with several files, but I am not told which one is being...
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:09.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App