Re: Creative ways to time scripts?



"Anthony Jones" <Ant yadayadayada.com> wrote:

"John Doe" <jdoe usenetlove.invalid> wrote in message
news:Xns97C0880B085F0123456789 207.115.17.102...
What I mean by "creative" is to avoid using Wait/Pause/Whatever
commands, but commands that also don't do anything. The command
would try to get the system to tell when the current program is
ready for input and the next script line should be executed. I
realize that is a difficult task, and that timing oftentimes
depends on the circumstance. Any guesses would be appreciated.


It's not clear what you want to acheive and/or why.

I wonder the same about Visual Basic Scripting programmers/users.


The command is part of the current program or a shelled program?

The script could be for either.


Perhaps if you outlined a scenario it would be clearer.

I'm talking about running a script that manipulates data and/or
Windows. Either in a single program or systemwide (in Windows of
course). Running a script without manually entered timing is often
impossible, the program/system cannot keep up. I have been writing
macros/scripts since Windows 3.1's Macro Recorder. Systemwide
macroing/scripting has been so much fun, I wrote my own macro
recorder in C++. Before switching to Windows XP, I nearly perfected
playback so that manually entered timing was not necessary.
Something went wrong when I switched to Visual C++2003 in Windows
XP, it might have been a simple programming mistake on my part. But
at the same time I switched to Dragon NaturallySpeaking Professional
and voice activated scripting. The benefit of voice activation is
extreme in that you have practically unlimited two syllable
activators as opposed to a very limited number of keyboard shortcut
activators, so I have mostly forgotten about my program. Apparently
the commands available in DNS are similar to Visual Basic Scripting.

When you write a script, do you use timing commands? Wouldn't you
rather have the script execute as fast as possible without having to
guess at how much time the program/system needs?












From: "Anthony Jones" <Ant yadayadayada.com>
References: <Xns97C0880B085F0123456789 207.115.17.102>
Subject: Re: Creative ways to time scripts?
Date: Fri, 12 May 2006 13:23:07 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
Message-ID: <e8vkU7bdGHA.1656 TK2MSFTNGP02.phx.gbl>
Newsgroups: microsoft.public.scripting.vbscript
NNTP-Posting-Host: 82-37-90-4.cable.ubr04.dudl.blueyonder.co.uk 82.37.90.4
Path: newssvr14.news.prodigy.com!newsdbm05.news.prodigy.com!newsmst01b.news.prodigy.com!prodigy.com!newscon06.news.prodigy.com!prodigy.net!newshub.sdsu.edu!msrtrans!TK2MSFTFEEDS01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP02.phx.gbl
Xref: prodigy.net microsoft.public.scripting.vbscript:184522




.



Relevant Pages

  • Re: Creative ways to time scripts?
    ... commands, but commands that also don't do anything. ... Using a generic timing method for playback, ... My best effort, before moving to Windows XP, would properly time ... The playback timing is dynamic so that many script operations within ...
    (microsoft.public.scripting.vbscript)
  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)
  • Net::Telnet and SMTP
    ... I'm trying to send a sequence of commands and then log both the ... I've included the script and a sample text file (that feeds the scripts ... sub processfile { ... #Try a short delay between sending command and reading output ...
    (comp.lang.perl.misc)
  • Re: Executing Informix dbaccess in a Windows background environment
    ... There is an example of equivalent UNIX and Windows dbaccess scripts here: http://www-03.ibm.com/developerworks/blogs/page/gbowerman?entry=scripting_dbaccess ... I don't understand why you need to call a dbaccess script from a stored procedure and not execute the SQL commands from SPL - but maybe there are additional OS commands you need to execute in the script. ... This should be done in a Windows environment. ...
    (comp.databases.informix)