Xpounded Automate AnaStereo
3d Image Scripting Stereo to Anaglyph Automation
This code is copyright Robert Spoons 2006
Want to use it - great, give credit.
Want to expand upon it - great, give credit.
Want to talk about it - great, give credit.
Not really asking for much- great, give credit.
Thanks.
This is the Book automation monitor script modified to automate AnaStereo
Even more fun with automation!
With this script you select a folder to watch and every file sent to that folder is given to the AnaStereo script as
an argument.
What this script does and how to use it...
You use the script by double clicking on it to start the monitoring process.
Then, any stereo images (24-bit bmp) you drop into the folder will be fed to the AnaStereo script where it is processed.
First make a folder to monitor and modify the monitor script making sure the variable monitoredFolder is set its path
Second, modify the monitor script making sure the variable scriptApplication points to the AnaStereo script.
Third, double click the monitor script to run it.
It will wait for a file to dropped into the monitored folder (so make sure you only drop 24-bit stereo bmp's), and
when a file is dropped the monitor script will automatically start the AnaStereo script with the dropped file as its argument.
The AnaStereo script will do its thing (see AnaStereo for details) and a new anaglyph will be
created in a subfolder of the folder holding the AnaStereo script.
Last, the monitor will return resume monitoring the folder until you manually stop it.
Stop the monitor: Open the task manager (right-click on task bar, or ALT+CTRL+DEL) and
End the Process for the wscript.exe process under your username
There is a modified AnaStereo script below called AutoAnaStereo.vbs that is setup for the monitor.
compare it to the normal AnaStereo.vbs to learn how to set up a script for automation.
One last point. You can comment out the popups in AutoAnaStereo.vbs to make it run sillent (best for autamtion).
Requirements: Windows 98+, WSH 5.6+ (VBS), Stereograph Image File in 24-bit BMP format.
Tested on XP Home edition SP2, IE6 installed. (Not tested with IE7 installed)
Save this file to your system as MonitorAutoAnaStereo.vbs
 Select All
No HTML to View
Save this file to your system as AutoAnaStereo.vbs
 Select All
No HTML to View
|