Search found 35 matches

by chihuahualand
Thu Jul 16, 2009 1:30 pm
Forum: Technical / Scripting
Topic: Run Program correlated to WaitWindowOpen
Replies: 10
Views: 9804

JRL; I agree, Gale's solution is robust and very easy to implement. no slight was intended... but unless I'm mistaken, the window can't be guaranteed to be that of the Run Program... It's an assumption, albeit a good one, it's still an assumption and on a slow or heavily loaded machine the issue can...
by chihuahualand
Thu Jul 16, 2009 12:00 am
Forum: Technical / Scripting
Topic: Run Program correlated to WaitWindowOpen
Replies: 10
Views: 9804

I was thinking that this might be complicated and reasonably un-bulletproof or perhaps just more cumbersome than practical.

thank you for your insight and direction.
by chihuahualand
Wed Jul 15, 2009 3:58 am
Forum: Technical / Scripting
Topic: Run Program correlated to WaitWindowOpen
Replies: 10
Views: 9804

Run Program correlated to WaitWindowOpen

Is there a way to correlate Run Program to WaitWindowOpen when you don't know what the caption will be?
by chihuahualand
Tue Jul 14, 2009 8:22 pm
Forum: Technical / Scripting
Topic: detect that an application created a child window?
Replies: 1
Views: 3007

detect that an application created a child window?

I'm writing a script to install "KB" (Knowledge Base) updates for MS Office All of the other details aside, is there a way to detect that an application created a child window? Generally, these install travel fluidly in a series of "YES", "NEXT" or "CONTINUE" buttons The exception is when the KB upd...
by chihuahualand
Wed Mar 25, 2009 10:42 pm
Forum: Technical / Scripting
Topic: Break apart the command line like a batch file.
Replies: 7
Views: 8094

as a macro: //BatchParams //This macro extracts command line parameters like a batch file. //Returns results joined by CRLF use "Separate>MACRO_RESULT,%CRLF%,arg" //Invoke: Macro>BatchParams /command_line=%command_line% Let>space={" "} Concat>command_line,%space% Position>%space%,%command_line%,2,fo...
by chihuahualand
Wed Mar 25, 2009 9:15 pm
Forum: Technical / Scripting
Topic: Break apart the command line like a batch file.
Replies: 7
Views: 8094

My Solution: Let>space={" "} Concat>command_line,%space% Position>%space%,%command_line%,2,found,False MidStr>%command_line%,1,1,result If>result<noQuote>",%command_line%,2,found,False Label>noQuote Add>found,1 Midstr>%command_line%,%found%,10000,args Let>arg_count=1 StringReplace>args,%space%,,resu...
by chihuahualand
Tue Mar 24, 2009 11:45 pm
Forum: Technical / Scripting
Topic: Break apart the command line like a batch file.
Replies: 7
Views: 8094

StringReplace, Separate, et al. don't work except under very simple cases. The problem with the RegEx solution is, once again, expecting well-formed data. Numerics, for instance, are "generally" not wrapped in quotes Just like trying to do CSV by hand (not using MS text driver, Excel, etc.), the sim...
by chihuahualand
Tue Mar 24, 2009 12:43 pm
Forum: Technical / Scripting
Topic: Break apart the command line like a batch file.
Replies: 7
Views: 8094

Break apart the command line like a batch file.

This is similar to the issues of a one-line CSV file, but now SPACE is a delimiter (I tested... commas separate fields for batch files too). Any body have any good ideas for this? I suppose the easiest if to create a batch file on the fly and pass the command line, then collect the answers. The goal...
by chihuahualand
Thu Mar 19, 2009 7:09 pm
Forum: Technical / Scripting
Topic: Determine CD from DVD and/or Burner
Replies: 0
Views: 2755

Determine CD from DVD and/or Burner

While this is probably a VBscript only, has anybody got a solution to determine what types of optical drives are in a computer? I haven't been able to identify an optical drive other than as a "CDROM" (That code is already on this forum). Which is to say, I really don't care about the media... I'm r...
by chihuahualand
Thu Mar 19, 2009 4:15 pm
Forum: Enhancement Suggestions
Topic: String Function: Quoted()
Replies: 0
Views: 5070

String Function: Quoted()

Specifically used for VBEVAL text parameters/

VBeval>MyVBfunction(quoted(%text%), %anumber%), result

Convert Quotes to Double quotes then wrap the whole thing in quotes.

Why? Because it should be done for almost every text parameter passed to vbscript... and it would make life a little easier.
by chihuahualand
Thu Mar 12, 2009 7:03 am
Forum: Technical / Scripting
Topic: Reading CSV files...
Replies: 5
Views: 6488

A revised version This version doesn't load the entire file into an array, rather, it returns the next record with the fields separated by linefeeds. The first record returned is either field names or the first line of data (depending on how your file is constructed). The Microsoft text driver assum...
by chihuahualand
Thu Mar 12, 2009 1:23 am
Forum: Technical / Scripting
Topic: Reading CSV files...
Replies: 5
Views: 6488

Reading CSV files...

I've seen topics suggesting "Separate"... this only works on the simplest of data. I've seen this http://www.mjtnet.com/forum/viewtopic.php?t=1467 (which is oddly incomplete) I started building the code in MS but without reasonable psuedocode. I keep think I'm worrying about embedded quotes and comm...
by chihuahualand
Wed Feb 25, 2009 2:09 pm
Forum: Technical / Scripting
Topic: Unterminated String Error 1033
Replies: 29
Views: 37662

worked
by chihuahualand
Wed Feb 25, 2009 2:02 pm
Forum: Technical / Scripting
Topic: Unterminated String Error 1033
Replies: 29
Views: 37662

in v7.4.009

I get "Error in SubString Command"
by chihuahualand
Wed Feb 25, 2009 1:42 pm
Forum: Technical / Scripting
Topic: Unterminated String Error 1033
Replies: 29
Views: 37662

wow. you are correct about Null. Most things in MS hate them: VBEval IF>{} LET>{} (complex) Some just ignore them: StringReplace But oddly, this works: Separate>%info_2%,%NullChar%,var (as suggested by JRL) and probably for most situations fulfills the task. This would likely only be used for someth...
cron
Sign up to our newsletter for free automation tips, tricks & discounts