Can't get to first base with 'do as VBScript'

2010-08-17 Thread Mark E. Powell
I am on Windows, Rev 2.9, and trying to use VBScript to do some Outlook stuff.  
I know almost no Visual Basic and have never invoked VBScript from Rev, so 
please consider me a simpleton.  

I've put sample code into a field and used the basic call

  get fld "Statements"
  replace CR with (quote & " & vbCrLf & " & quote) in it
  do it as VBScript

In all the samples I have tried I get the result "execution error".

Question 1:  can anyone tell what I might be doing wrong, based on what I have 
described?

Question 2:  Is there is an extremely elementary "Hello World" type validation 
code snippet that I could use to test basic execution?

By the way, the alternateLanguages returns this:
XML
VBScript
VBScript.Encode
JScript
JScript.Encode
"SignedJavaScript"
"SignedVBScript"

Thanks!

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch URL not working with a # character in the URL string

2010-04-29 Thread Mark E. Powell
Here is a literal example.  Can anyone paste this into msg and see if it 
resolves without escaping the # character.  Thanks.

launch URL "http://www.wordscapes.com/aTest.html#foo";


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch URL not working with a # character in the URL string

2010-04-29 Thread Mark E. Powell
Sorry...reposting.  My real URL is an internal one and in making it a generic 
example, I left out the page part of the URL.  There is, of course, a page and 
it has an anchor statement.  But the problem is that the hash symbol gets 
escaped to a %23.  So, I still have the problem.  Here is my revised pseudo 
example:

The call

launch URL "http://www.example.com/blah.html#foo";

brings up a browser window, but with the URL

http://www.example.com/blah.html%23foo

which yields a File Not Found error. How do I force Rev not to URLEncode the 
URL< It does seem to escape question marks or other delimiters, but does with 
the hash mark.

Or in fact is this a browser issue solely?

Thanks in advance

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


launch URL not working with a # character in the URL string

2010-04-29 Thread Mark E. Powell
The call

launch URL "http://www.example.com#foo";

brings up a browser window, but with the URL

http://www.example.com%23foo

which yields a File Not Found error.  How do I force Rev not to URLEncode the 
URL?  It does seem to escape question marks or other delimiters, but does with 
the hash mark.  

Or in fact is this a browser issue solely?

Thanks in advance

Mark




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Cannot close process after calling 'launch' to browser path

2009-01-20 Thread Mark E. Powell
I am using 'launch' to open HTML reports from my standalone:

put word 1 of 
queryRegistry("HKEY_LOCAL_MACHINE\Software\Classes\http\shell\open\command\") 
into tBrowserPath
launch vLongFileName  with tBrowserPath

This works for the first report of a standalone session.  It works if the 
browser window for report 1 is closed before doing subsequent reports.  
However, it returns 'process is already open' in all other cases.

I have explicitly tried closing the tBrowserPath process, and have tried 
closing all open processes, but it does not prevent the return of 'process 
already open'.

What am I missing?

Thanks

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How do I maximize script editor window in 3.0

2008-12-08 Thread Mark E. Powell
Just upgraded to 3.0 on XP.  The script editor winodw won't resize to screen 
size, either on my large second monitor or on the 1280x768 startup monitor.  
The maximize button wont show more than 35 lines, and nothing is resizable.  Am 
I missing something obvious?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


pinging Intranet using Active Directory credentials

2008-12-04 Thread Mark E. Powell
I can see the corporate intranet through browsers and other tools.  However, 
when I use 'load URL' type calls within Rev to the intranet location I get HTTP 
Error 401.1

Unauthorized: Access is denied due to invalid credentials.

I am sure this is because the corporate image is set up to read Active 
Directory credentials transparently.  

How do I do the same from a Rev standalone?  Is there standard syntax for 
passing these parameters?  

TIA for any life raft you have to spare.

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch URL with mailto yields inconsistent 'can't open file' error

2008-12-03 Thread Mark E. Powell
Should also say that exactly the same thing happens with revMail.  Once total 
character count gets upward of 1700, it returns the error 'can't open file'


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: launch URL with mailto yields inconsistent 'can't open file' error

2008-12-03 Thread Mark E. Powell
Nope.  I did testing by writing letter A's multiple times, with same result.

Mark


>Hi Mark,
>
>Is it possible that your text contains diacritics? I have posted a bug  
>about it to the QCC, but this concerns Mac OS X.
>
>
>Best regards,
>
>Mark Schonewille



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


launch URL with mailto yields inconsistent 'can't open file' error

2008-12-03 Thread Mark E. Powell
Could use some wisdom and a Scotch on this one.

I am having problems with launch URL failing as the content string gets long.  
In my tests, when the total mailto argument resolves to between 1645 and 1980 
characters, the launch fails with 'can't open file'.  The character count 
varies, and no discernible pattern to anything that I can see.  Any ideas?  Is 
it an OS thing?

I am on Windows XP, Rev 2.9.0.

Mark



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Microsoft Outlook web mail not recognizing mailto calls

2008-11-13 Thread Mark E. Powell
The following returns a system error for a person here who is using Microsoft 
Outlook web mail.  This particular user also gets errors when clicking mailto 
HREFs in a web page.

  put "mailto:[EMAIL PROTECTED]" into tMessage
  revGoURL tMessage
  if the result is not empty then

  end if

My error checking never kicks in, so the result is empty.  Any ideas on how to 
determine in advance if a mailto is going to work for a given user? 

Thanks

Mark 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bug 6394...Cannot handle some non-ASCII characters in file names

2008-08-28 Thread Mark E. Powell
Did you write an external in C to do this?

>-Original Message-
>From: Mark Schonewille
>I made a libary to solve this, but I'm not sure yet whether and how  
>to distribute that.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Bug 6394...Cannot handle some non-ASCII characters in file names

2008-08-27 Thread Mark E. Powell
Popping back in to see if anyone running beta 3 can tell me if bug 6394 has 
been fixed there.   This is the bug where certain non-ASCII characters in files 
cannot be read, e.g.

answer file foo
answer (there is a file it)

returns false is foo contains a character such as Č (C with caron) or ů (u with 
ring above) appears in the file name.

Any help or leads are greatly appreciated.  I am off Rev until this can get 
fixed.

Mark




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More on 'there is a file it' returning false for files w/ non-Western European chars

2008-04-15 Thread Mark E. Powell
Sarah Reichelt wrote

> If I look at the file name returned by the answer command, I get
> "/Users/sarah/Desktop/cˇu˚.txt"
> so the dual keystroke characters are effectively being split 
> into their constituents.

That is interesting.  On Windows XP when I look at the file name returned by 
the answer command, I get

C:/Documents and Settings/mark/Desktop/cu.txt

The keystrokes are *not* being split as on Mac, but *are* being 'flattened' to 
low-ASCII.  But with same end result.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More on 'there is a file it' returning false for files w/ non-Western European chars

2008-04-15 Thread Mark E. Powell
> What key sequences do you use to produce those characters?

I got several test files from a Czech beta tester, but you can use the Windows 
Character Map utility to grab others at will.  I used c caron and u with circle 
as examples, but the same issue arises with other high-ASCII characters (though 
not with all).  Here are some others that are known to be squashed by Rev



U+0141 Latin L with stroke
U+0158 Latin R with caron
U+011B Latin e with caron
U+0165 Latin t with caron


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: More on 'there is a file it' returning false for files w/ non-Western European chars

2008-04-15 Thread Mark E. Powell
Font encoding is a challenge everywhere, from email clients to web pages to 
OSes.  It can be unpredictable.  The problem with Rev is that we never even get 
a chance to predict!  As you say, the string is already wrecked after the get 
and there is nothing native in Rev that can do anything about it.


>You'll see that what is put is "ãÛ.txt". Stranger
>still, the text that is still showing in the
>message box entry field has now changed to match
>what it put.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


More on 'there is a file it' returning false for files w/ non-Western European chars

2008-04-15 Thread Mark E. Powell
I have not gotten any workarounds to my previously-posted file name bug, and 
wanted to let everyone know that I have entered it into the bug system as 
#6394.  As the candidates are saying in Pennsylvania USA: I would appreciate 
your vote.  This is an absolute deal-breaker for me.

SOAPBOX:  I cannot possibly believe that others on this list have not been 
stopped in their tracks by this apparent failure within the Rev engine.  What I 
am trying to do is not so far out of the mainstream, is it?  But my only 
solution while staying within the Revolution environment is to establish system 
requirements with customers that say, "All your files and folders must contain 
only low-ASCII characters". Fine for systems governed by Western European 
character sets, but a show stopper for Czech, Polish, and (it seems) many other 
charsets in the world.

Tell me it ain't so, Joe.

What a shame.

Here is the body of the report for additional detail.



How to Reproduce
===
Name a dummy file čů.txt  In case this does not render correctly in the QC 
Center system, those first two characters in the example name are
č : small c with caron
ů : small u with ring above

Then in Rev, use the answer file line below to point to this new file.

  answer file "The prompt..."
  answer (there is a file it)
  put it

The second will return false.  The 'put' will put cu.txt (unaccented c and u), 
which explains why line 2 returns false.  Rev flattens many high-ASCII 
characters to their unaccented equivalents.

in addition, the following

  answer file "The prompt..."
  answer the shortFilePath of it

returns empty.


Why This is a Blocker

I am writing a reporting application that hinges on Rev's ability to faithfully 
read file names.  This bug prevents me from even addressing such files, even if 
the 'offending' character occurs in the long path name.

It stops me cold.  I must hire a specialist to write an external in C or I must 
move to another SDE entirely.  Therefore, this is for me a blocker and I am 
rating it as such.

This is (I believe) similar to enhancement request 674.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 'answer (there is a file it)' returns false after selecting a file

2008-04-12 Thread Mark E. Powell
Hi Mark S.:

Also just discovered that I cannot even *address* the file with shortFilePath.

answer file "prompt"
answer the shortFilePath of it

returns empty if the file name has those high ASCII characters like the Czech 
soft R and the Polish bar L.

This is stopping me in my tracks and will probably have to hire someone to 
write this in another language.  Certainly, someone must have encountered this 
problem with non-Roman file systems?  Is Rev really so English-centric?

Mark P.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 'answer (there is a file it)' returns false after selecting a file

2008-04-11 Thread Mark E. Powell
Appreciate the response. How do I get the real file name using shortFilePath()? 
 I understand I can address the given file that way, but I need to report its 
actual file name.  

>
>This is no reason the give up on a project. You could use AppleScript  
>on Mac OS X and shortFilePath() on Windows. 
>


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


'answer (there is a file it)' returns false after selecting a file

2008-04-11 Thread Mark E. Powell
Had to give up a project a couple months ago that was being derailed by a Rev 
bug that had no workaround. Was wondering if anyone can tell me if this is 
fixed in 2.9.  In the message window, I type the following

answer file "The prompt..."
answer (there is a file it)

This returns false if the file name contains certain extended ASCII characters, 
such as the Czech Ř (R with caron) or Ů (U with ring above) or Polish Ł (L with 
stroke).

Can anyone confirm that this bug still exists in 2.9?  It is a deal-breaker.

Thanks.

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: First answer gets an Amazon gift certificate (seriously)

2008-01-24 Thread Mark E. Powell
Here is one example of a folder name

?tená?i_v??

Rev reduces this to 

ctenári_vuž/

I don't know if these chars are coming through in everyone's mail client, but 
it is from the Central European charset.  

c with caron becomes normal c 
t 
e 
n 
a acute is preserved
r with caron becomes normal r 
i

v
u with ring above becomes normal u
z with caron is preserved


The characters you gave are apparently supported, while these and others are 
not?

Mark

>
>Would love to help you but when I create a folder named,
>
>"lalala àÀáÁãà çÇ éÉêÊ ÍíóÓúÚüÜ lalala"
>
>Rev seems to handle it just fine ... What trouble are you experiencing?
>
>- Bill 
>



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


First answer gets an Amazon gift certificate (seriously)

2008-01-24 Thread Mark E. Powell
Gotten no responses to my last couple of posts, so I am resorting to shameless 
bribery.  First one who can tell me how to get this to work without using 
anything external to Rev gets a $25 gift certificate to Amazon. In the event of 
no workable solution, I'll be using the gift certificate myself to purchase the 
new best-seller "Character Encoding and You" by Tomás de Torquemada...


Is there any way to get Rev to intelligently handle (i.e. respect and preserve) 
Windows file and folder names that have diacriticals, when using 'the files' 
and 'the folders' functions?


I am still on Rev 2.8.0 Windows.  Standalone should run on W2K and later.  This 
lack of diacritical support is a deal-breaker to me.

Mark




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


'the files' and 'the folders' and diacriticals

2008-01-23 Thread Mark E. Powell
Want to give this one last swag before throwing in the towel. If I want to use 
shell() to point a command line application to the folder below.

C:\říkáme\

How do I do it?

I am currently running 2.8.0.  Perhaps something has changed in later versions 
that improves Rev's ability to preserve diacriticals in file and folder names 
when using 'the files' and 'the folders'?

Thanks in advance.

Mark 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How do I express specialFolderPath(28)in DOS syntax

2008-01-22 Thread Mark E. Powell
For compatibility with non-English operating systems (who can have DOS-breaking 
diacriticals in path names), I need to write a BAT file that points to the 
equivalent of specialFolderPath(28).  For example, in the same way that

cd %TEMP%

changes to the temporary directory, I need a DOS command that points to what is 
typically

C:/Users/John/AppData/Local

I cannot write the literal "specialFolderPath(28)" to the BAT file, of course, 
and cannot find any documentation of how to write its DOS-variable in a command 
prompt. Ken Ray has it cross-referenced to the Microsoft constant 
CSIDL_LOCAL_APPDATA, but I cannot figure out the synatax of format.

Ideas?

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Using shell & BAT with /B, problems across volumes

2008-01-11 Thread Mark E. Powell
On XP, Rev. 2.8.0:

Am using shell to run the command line utility jhead, which extracts Exif data 
from JPEG files.  I am using a non-blocking BAT file approach, which works 
beautifully with JPEGs on the startup drive, but not on any other drive.  From 
Rev the call boils down to this:

 set the shellCommand to "cmd.exe"
 set the hideConsoleWindows to true
 get shell("C:/test.bat")


This BAT file works:
 cd "C:\jheadTEST"
 start /B jhead.exe
 jhead "C:\DSC_0008.JPG" > "C:\Test.txt"


This BAT file doesn't ("Windows can't find jhead" error):
 cd "C:\jheadTEST"
 start /B jhead.exe
 jhead "E:\DSC_0008.JPG" > "C:\Test.txt"

The only difference between the two examples is the first volume indicator on 
the third line.  Identical JPEGs exist at root of both drives.

Note:  Both BAT files work if the /B argument is excluded.  But if the /B 
argument is excluded, the console window flashes, despite having set the 
hideConsoleWindows to true (a bug in 2.8.0, maybe?).

Any ideas on how I make this work across volumes, but without the console 
window flashing?

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is there such thing as a univeral abort command

2007-11-17 Thread Mark E. Powell
Hi Mark:  The command-period would be sufficient, however it does not work in 
my standalones, and I have not set any cantAbort to true.  Are you saying that 
command-period works in yours?  

>
>Hi Mark,
>
>If you set the cantAbort to false (which it is by default) you can  
>press command-period to stop all runing handlers.
>
>
>> Maybe a very simpleton question:  Is there a universal abort  
>> command that will stop (in a standalone) any running handler?  Or  
>> must each handler that I want to be abortable have some polling?
>>
>> TIA
>>
>> Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Is there such thing as a univeral abort command

2007-11-16 Thread Mark E. Powell
Maybe a very simpleton question:  Is there a universal abort command that will 
stop (in a standalone) any running handler?  Or must each handler that I want 
to be abortable have some polling?

TIA

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


specialFolderPath rendered in HTML...localization and encoding problems

2007-10-23 Thread Mark E. Powell
I write gifs to specialFolderPath(26) and create HTML reports that use those 
gifs.  On English OS and browser, no problem: the HTML respects the path and 
shows the gifs.  However when testing on non-English systems (Czech for 
example), the pathing fails because part of the literal path written to HTML 
contains high-ASCII characters.

The HTML pages declares charset of UTF-8, but only when I manually choose a 
different encoding in the browser do the gifs show.

Has anyone encountered this?  There certainly has to be a straightforward 
solution to making literal file paths accurate across languages.  I am just not 
seeing it.

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: breakpoint is suddenly being ignored in IDE

2007-09-14 Thread Mark E. Powell
Follow-up:  After kicking the tires and performing rain dances, the problem 
cleared up, but without explanation.

By the way, I wasn't clear in my original post, but I *was* using the 
breakpoint command, as illustrated in the test button script below

on mouseup
  breakpoint
  answer "foo"
end mouseup

I would get the answer dialog without a break.

JOOTT (just one of those things)

>
>The subject line says it all:  breakpoint is failing to break script in the 
>IDE (2.8.0 Windows XP).   As clean test, I create a new button with breakpoint 
>followed by an answer dialog inside a mouseup handler.  The answer dialog 
>appears without interruption.
>
>Have rebooted.  Have searched docs for some mystery property that disables 
>breakpoint.  No luck.
>
>Any ideas?
>
>Mark
>
>


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


breakpoint is suddenly being ignored in IDE

2007-09-13 Thread Mark E. Powell
The subject line says it all:  breakpoint is failing to break script in the IDE 
(2.8.0 Windows XP).   As clean test, I create a new button with breakpoint 
followed by an answer dialog inside a mouseup handler.  The answer dialog 
appears without interruption.

Have rebooted.  Have searched docs for some mystery property that disables 
breakpoint.  No luck.

Any ideas?

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Shell commands on Windows XP Home Edition

2007-08-09 Thread Mark E. Powell
I just learned the hard way that there are many shell commands that run under 
XP Pro that don't exist in XP Home (systeminfo and tasklist are my failures du 
jour).  Three questions, please:

First, (systemVersion = "NT 5.1") tells me only XP.  Is there someway I can 
further distinguish Pro from Home?

Second, if anyone has dealt with this phenomenon before I would like to know 
how you succeeded in infusing an XP Home client with XP Pro command line 
capability.

Third, does a master cross-reference exist somewhere that enumerates what shell 
commands are compatible from Win 2000 through to Vista?

Your help is greatly appreciated.  Thanks.

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: mercy...Control-A and text selection revisited

2007-08-02 Thread Mark E. Powell
Hello Eric

It does not work for me.  For testing, I created a simple stack with one field 
and the script you suggested in the card script:

www.aboutmyfiles.com/controlKeyDownTest.rev

With the cursor in the field, control-A does nothing.  If I choose Select All 
from the Rev IDE Edit menu, same thing (i.e. nothing).  Does it work for you?

If yes, then it has to be an effect of the loss-of-focus bug that is in 2.8.0, 
which is what I am running.

Please let me know when you have a moment.

Thanks!

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


mercy...Control-A and text selection revisited

2007-08-01 Thread Mark E. Powell
Sorry, the archives are not solving this for me and I need to throw myself on 
the mercy of the list.

After a user enters cursor in a fld (its traversalOn property is true), I want 
control-A to select the text of that fld.  How do I do it?

The focusedObject is the fld, but the controlkeydown message is never received 
by the field.  Clicking outside the field makes the focusedObject the card, but 
when pressing control-A then the controlKeyDown message is not received by the 
card either.  A test button that says

  on mouseUp
select text of fld "dump"
  end mouseUp

does select the text of the field successfully.  All the foregoing in both IDE 
and standalone.  Rev 2.8 Build 360.

What am I doing wrong?

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Isolating a pixel pattern in an image

2007-07-31 Thread Mark E. Powell
I have a small handler I am trying to chart out and I am stumped as to even how 
to begin, or if it is even feasible in Rev.

In simplified terms:  suppose I have a gif, all black except for one or more 
plus symbols that are white. The plus symbol's horizontal stroke being three 
pixels wide by one high, and the vertical three pixels high by one wide.

How could I go about determining the x and y location of the plus symbols?

Mark



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Borders and Icons

2007-07-31 Thread Mark E. Powell
Hello Bridger:

If you must have the image encapsulated in a button as you have described, you 
can do something like the button script here:

http://www.aboutmyfiles.com/IconInit.txt

Essentially, it clones the master image, crops it, and sets the icon of the 
button to the new image.  The button "panorama" is the one showing the image 
(assuming borderwidth = 1), and the id is the hard coded id of your master 
image.  You might need more error checking and housekeeping depending on your 
situation.

Mark




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening an untitled and unsaved NotePad file via shell

2007-07-27 Thread Mark E. Powell
VBS is probably a no-go for this...I may just have to do faux NotePad substack 
and force the user to save or close.

Thank you once again all for your ideas.  

Mark P

>Is it possible to put data into a text file that is *not* 
>saved to disk and has no name?  i.e. as if Note Pad were 
>launched and text were pasted into the document?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Opening an untitled and unsaved NotePad file via shell

2007-07-27 Thread Mark E. Powell
I can put data into a text file and open it via shell, but this method tends to 
leave a flotsam of files on disk, unless I recycle the file name and overwrite 
(which I don't want to do).

Is it possible to put data into a text file that is *not* saved to disk and has 
no name?  i.e. as if Note Pad were launched and text were pasted into the 
document?

Thanks in advance

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [SPAM?]: How to extract non-stack files from a standalone

2007-07-24 Thread Mark E. Powell
The custom property approach worked.  I was trying to figure a way of manually 
installing revzip.dll before calling the Rev Zip library and this worked 
perfectly (in the standalone's startup handler, as suggested earlier by Jacque).

My own ignorance of Rev once again revealed.  Thanks for your help.

Mark


>-Original Message-
>From: Ian Wood
>
>On 24 Jul 2007, at 00:47, Mark E. Powell wrote:
>
>> If I copy non-stack files into the application prior to building
>> the standalone, how do I then extract the files from the
>> standalone?  I figure it would something similar to how "export"
>> works for images?
>
>How are you copying them in? If you put them in a custom prop you can
>write the contents of the custom prop back into a file (put the
>storedFile of this stack into URL "binfile:thefilename.xxx").
>
>If it's copied by adding the file in the standalone settings then
>it's sitting next to the application after building. Note that in the
>case of OS X it will be inside the application package.
>
>Ian
>___



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How to extract non-stack files from a standalone

2007-07-23 Thread Mark E. Powell
I am sure there is a simple answer, but I cannot find any documentation or 
mention of it in the archives.

If I copy non-stack files into the application prior to building the 
standalone, how do I then extract the files from the standalone?  I figure it 
would something similar to how "export" works for images?




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Firefox equivalents for specialfolderpath(6) et. al.

2007-07-23 Thread Mark E. Powell
Ken Ray has a dynamite resource that cross references Microsoft CSIDL constants 
to specialFolderPath equivalents.

http://www.sonsothunder.com/devres/revolution/tips/file010.htm

A few of these are folders where IE stores favorites, cookies, history, cached 
files, etc.  My question is, is there something analagous for the counterpart 
folders that Firefox creates?  For example, if I wanted to fetch Firefox 
bookmarks, is there a path statement that works across all localized Windows 
OS'es?

Thanks very much for your help

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Accessing IE history for 'Last Week'

2007-07-23 Thread Mark E. Powell
specialfolderpath(34) is the folder where Microsoft stores browser history.  
Going to that directory in Explorer, you can click through 'Last Week' and see 
the folder equivalents of what you see in the History pane in Internet Explorer.

My question is how can I set the defaultfolder to see inside this 'Last Week' 
entity, so that I can collect history data and do something with it.

Thanks in advance

Mark



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How to tell if out-of-memory condition is approaching

2007-07-22 Thread Mark E. Powell
I have an app that walks directories and stores data in variables.  For extreme 
trees, available memory can peter out and the app becomes unresponsive.

Firstly, how can I tell that such an out-of-memory condition is approaching?   
Secondly, can anyone point me to a white paper, documentation topic, or best 
practices document that talks generally about how to handle memory issues on 
Windows?

Many thanks in advance

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Auto-update architecture on Windows...dealing with bulk

2007-07-03 Thread Mark E. Powell
Hi Andre:

Good information.  Couple of more questions:

-1- On first use, do you require connectivity in order to cache the main stack? 
 I assume yes, right?
-2- In the BOM stack approach, how do you control versioning and dependency?  
(i.e. resource stack X must be downloaded with widget Y, otherwise the app 
doesn't operate).  Is there a best practice on how to avoid mismatches with 
'modularized' main stacks?

Thanks,

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Auto-update architecture on Windows...dealing with bulk

2007-07-03 Thread Mark E. Powell
On Windows, and am using the auto-update architecture, i.e. a compiled 
auto-loader app that pulls non-compiled main stack updates from the network.  I 
have two questions that I would like advice on.

-1-
How to optimize the bulk:  Given that the auto-loader should avoid having to 
update itself, and given then that the main stack constitutes the baggage that 
has to be schlepped around, does it not make sense to remove hefty and 
unlikely-to-change elements from the main stack and put them into the 
auto-loader?  For example, UI image elements that add a lot to the file size of 
the main stack could instead be anchored in the auto-loader.  In other words, 
what are the ramifications to me saying:

"If element X will not change, put it into the auto-loader half."

-2-
How do I distribute this architecture on CD, without requiring that the user be 
connected to the network.  In the non-CD delivery, I state that first use 
requires connectivity.  But I would like the ability to provide the entire 
thing on disk as well.  Do I need an installer that wraps everything?

Thanks.

Mark





___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Delimiting thousandths..converting 12345678 to 12, 345, 678 for example

2007-06-12 Thread Mark E. Powell
Thank you, Ken.  Works like a charm.
---
Here you go - this is based on a function that Mark Wieder created:

function formatThousands pNum,pSeparator
  repeat with x = length(pNum)-3 to 3 step -3
put pSeparator before char x+1 of pNum
  end repeat
  return pNum
end formatThousands

To call it:

  put formatThousands("1000",",")
  --> 10,000,000



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Delimiting thousandths..converting 12345678 to 12,345,678 for example

2007-06-12 Thread Mark E. Powell
If there a built-in "thousandths delimit" function that takes a number and 
inserts the appropriate delimiter (e.g. commas for USA).  Alternately, does 
someone have an idea for a really fast and efficient custom function that does 
it?  I have maybe a hundred thousand numbers at a time to convert and cannot 
think of how to do it reliably in less than a dozen lines of code.

Corollary to this question is, any way to read user's system preferences about 
which delimiter to use?

Thanks

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: special folders

2007-05-02 Thread Mark E. Powell
Two follow-ups...

-1-  Is it then an absolute that specialFolderPath(26) is writeable on Windows, 
regardless of personal vs. corporate configuration?  Even if the user has 'hide 
system folders' on?

-2-  Does the ability to download a file to a particular folder not also mean 
that that folder is writeable?  For example, in the two-part autoloader 
architecture, if the user places the loader is put into folder x, is it not 
guaranteed that I can write the operational stack to that same folder?

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Hidden 'Application Data' folder on XP

2007-05-02 Thread Mark E. Powell
Using the altsplash auto-load architecture, I have one user for whom the loader 
hangs.  His specialFolderPath(35) returns as

C:/Documents and Settings/All Users/Application Data

but he says he has no such folder, which leads me guess is that it is hidden 
and that its invisibility is preventing the write to or the read from the 
directory.

Is there something special I must do to make this directory usable if hidden?

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Metadata from Office documents

2007-04-07 Thread Mark E. Powell
Anyone have a tried and true method of extracting metadata from Microsoft 
Office documents (Windows).  Microsoft's site is a bit confusing in this area.

Thanks

Mark


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution