Re: Stackrunner

2010-11-17 Thread Ken Ray
 The IDE and the standalones it builds know about the image library, but
 StackRunner does not.

That's right - the list of things that are built in to StackRunner are
listed under the Using StackRunner section of the web page:

 http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm

Although a lot of libraries and externals are provided with SR, images are
not.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: DOWNLOADING REV 4.0.0

2010-11-16 Thread Ken Ray

 Frankly, distributing a stack with a stackrunner as a commercial
 package doesn't look that good;
 especially as anybody who can get their paws (sweaty or otherwise)
 on a copy of RR/LC can merrily
 start mucking around with your stack.
 
 Agree with that.  That's one of the reasons I've never liked using a
 secondary stack file as a solution to the problem of not being able to
 store data in a standalone.

You *can* of course password protect your stack, and on OS X you can put the
stack inside the StackRunner bundle. And of course you can change the name
of the StackRunner app and even modify its info.plist file on OS X to
customize it even more - the only thing you can't do is eliminate the Get
Info information since that's embedded in the resources of the executable.

Just my 2 cents,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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 it possible to access or set individual pixels of an image?

2010-11-16 Thread Ken Ray
 Is it possible to read and set the color of individual pixels in an
 image?  ImageData is a little incomprehensible.

Maybe this will clear things up a bit:

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

It's dated, but still applicable...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Indenting Challenge

2010-11-09 Thread Ken Ray

 And the thing that really makes this difficult is the fact that the text
 needs to be directly editable by users (cannot be in a locked field).
 
 Any suggestions on how I might tackle this?

Can it be restricted to only editing one bullet at a time, or does the user
need the ability to click in one bullet's text and drag up or down and
select the text from other bullets as well?

The reason I ask is that you might be able to get away with a highly
customized datagrid - since each row is its own field, you could apply the
margins/indents you want - plus you could have the expand/collapse toggle
available as well. I haven't done this myself, but maybe it's a possible
direction to try.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Paging Shao Sean

2010-11-07 Thread Ken Ray

 I'm looking for the latest version of your libSMTP library. Could you
 post it somewhere for us? Uploading to (the new) RevOnline would be a
 community service and even better if you're willing.
 
 BTW, your stuff is so useful, I wish you had links on your web site. Ken
 Ray has a link to a newish 2.5.something libSMTP on his site but the URL
 doesn't resolve. :(

I have a copy of 1.20 I can send you if Sean doesn't have a newer one...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: delete chunk.

2010-11-03 Thread Ken Ray
 Just tossing this out there, but I *love* this behavior. I'm sure there are
 situations where it's undesirable, but are easily compensated for by just
 adding another delimiter.
 
 Begin able to do the following is very handy and makes the code clean:
 
 put foo  cr after fld x
 put bar  cr after fld x
 put the number of lines of fld x
 
 Having that return 2 is extremely convenient.

Agreed, but sometimes it's not convenient when you want to get the last
item of a line; for example, if you have a container that holds columns for
First Name (tab) Last Name (tab) Notes, and some lines have a note and some
don't, you can't just set the itemDelimiter to tab and run through the
container and get the last item or item -1 of the line to check if the
person entered a note; if they didn't provide one, then check the last
item will give you their Last Name instead.

It would be great if there was a global setting that you could toggle it on
in these circumstances, something like:

put item -1 of Ken,Ray,
== returns Ray

set the dontIgnoreTrailingDelimiter to true
put item -1 of Ken,Ray,
== returns 

:-)

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: delete chunk.

2010-11-03 Thread Ken Ray
 I agree it would be great to be able to say
 set the payAttentionToTrailingDelimiters to true
 
 But in the meantime you can use the fact that doubling a trailing
 delimiter will be ignored.
 repeat for each line L in tData
 if the last item of (L  the itemDel) is empty then
-- deal with an empty one
 else
-- use the last item of L which is not empty
 end if 

Thanks, Alex... that's something I do when I need to, but it seems like more
of a workaround to me, which is why I'd rather have some kind of global
setting I could turn on when I needed it.

In some ways it's like like the wholematches... I don't believe we had
that in HyperCard, so if you were trying to see if a whole something
matched, you had to do slap the delimiters in front of and after everything,
like:

  -- imagine field 1 has a CR-delimited list of different kinds of fruit
  if offset((cr  pears  cr),(cr  tFruit  cr))  0 then...

It's so much easier to say:

  set the wholeMatches to true
  if lineOffset(pear,tFruit)  0 then...

Maybe we should call it the wholeChunks ?

  set the wholeChunks to true
  put item -1 of Ken,Ray,
  == returns 

??

:-)

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Complex menu shortcut

2010-11-02 Thread Ken Ray


 I run Revolution 2.7.2. I just see Command+... in the menu builder.
 
 New/Nalways give New Cmd+N
 
 I have lostt something ?

No, but you're running a really old version of Revolution. The latest is 4.5
(now called LiveCode); the additional options to menu shortcuts were added
in 3.5 (I believe). So you'd have to upgrade to take advantage of them.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Building array from list

2010-11-01 Thread Ken Ray
If you want to factor the code out so it's more reusable but a bit more
code, you could do this:

repeat for each line tLine in fld 1
  appendArray tDataA,(item 2 of tLine),(item 1 of tLine)
end repeat

command appendArray @pArray,pKey,pValue
  if pArray[pKey] is empty then
put pValue into pArray[pKey]
  else
put ,  pValue after pArray[pKey]
  end if
end appendArray


If you *really* wanted to genericize 'appendArray', you could pass in an
optional delimiter:

command appendArray @pArray,pKey,pValue,pOpt_Delim
  if pOpt_Delim is empty then put , into tDelim
  else put pOpt_Delim into tDelim
  if pArray[pKey] is empty then
put pValue into pArray[pKey]
  else
put tDelim  pValue after pArray[pKey]
  end if
end appendArray

Hope this helps,

Ken


On 11/1/10 7:55 AM, Mike Bonner bonnm...@gmail.com wrote:

 Can also do it as follows:
 
repeat for each line tLine in field 1
   put the number of items in tdataA[(item 2 of tLine)] + 1 into tItemNum
   put item 1 of tLine into item tItemNum of tDataA[(item 2 of tLine)]
end repeat
 
 Can most likely combine the 2 lines of the repeat into a 1 liner, but
 this way works fine.
 
 On 11/1/10, Gregory Lypny gregory.ly...@videotron.ca wrote:
 Hello William,
 
 This will give you an array with four keys corresponding to [1] fruit, [2]
 dances, [3] colours, and [4] animals.
 
 repeat for each line thisLine in theList
 put the first item of thisLine  comma after myArray[the second item of
 thisLine]
 end repeat
 
 The contents of each has a trailing comma, which can be removed by following
 with
 
 repeat for each key thisKey in myArray
 if the last character of myArray[thisKey] is comma \
 then delete the last character of myArray[thisKey]
 end repeat
 
 
 Regards,
 
 Gregory
 
 
 On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-requ...@lists.runrev.com
 wrote:
 
 I was wondering. If you have a list:
 
 apple,1
 orange,1
 grapefruit,1
 tango,2
 blue,3
 green,3
 yellow,3
 zebra,9
 
 And you want to convert it into an array:
 
 (apple,orange,grapefruit[1])
 (tango[2])
 (blue,green,yellow[3])
 (zebra,[9])
 
 What would be the easiest way. I'm always a little confused by arrays but
 it
 seems to me this should be a very simple and fast conversion. The array is
 intentionally a string apple,orange,grapefruit that results from key [1]
 
 ___
 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
 
 ___
 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

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Underscore in script for windows?

2010-11-01 Thread Ken Ray

 I am using the following script to open a text file for both windows and
 Macintosh. My question is do I need two separate scripts one for the Mac and
 one for for Windows (XP, Vista, Windows 7) with a space instead of an
 underscore?  For example /S504_Student for /S504 Student for Windows.
 
 if the_selection is 1
then
   answer file Open Student file: with specialFolderPath(documents) 
 /S504 Student

No, that should work on all platforms you mentioned.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Best practice for creating a custom control

2010-11-01 Thread Ken Ray


 I'm looking for a kind of best practice for creating custom controls. For
 example, how to access the data of the custom control ? Do we have to use
 custom properties or a setProp or getProp handlers  or both ? Is it preferable
 to use a prefix for naming a command ? And for custom properties, do we have
 to use a set of properties ? With a standard name ? Etc.

You might want to take a look at the budding standards document that is in
development over at the revInterop user group:

 http://tech.groups.yahoo.com/group/revInterop/

There's a bunch of info there about naming conventions, etc.

As far as accessing the data is concerned, there isn't really a best
practice yet; getprop/setprop works well in *some* instances, but not in
others, as does actually using custom properties. For example, I tend to use
custom properties to store data relative to custom controls I've created,
and only use getProp/setProp when I want to trigger some kind of visual
feedback.

For example, I have a custom control which is a prompt field (it's a field
that shows a custom text string in gray; when the field gets the focus, the
text goes away so the user can type what they want, and when the field loses
the focus if there's no text in the field it shows the prompt again). To
specify what text should be shown as the prompt text, I set the
uSTSPromptText of the field to a value. If the field is currently showing a
text prompt, I'd like to change that to the value I'm setting for
uSTSPromptText, so I have a getProp handler that is triggered to make that
happen. 

Hope this helps,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: OT: SheepSaver

2010-10-26 Thread Ken Ray
I have some personal experience setting up SheepShaver and documented it
here with a set of instructions:

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

Granted it was several years ago, but SheepShaver hasn't had a recent
upgrade AFAIK...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: fun with elevated processes

2010-10-14 Thread Ken Ray
   I can now easily restart Apache from a LC handler:
 
 on mouseUp
 constant kRestartApache = apachectl -k graceful
 open elevated process kRestartApache for neither
 if the result  empty then
answer Could not restart server.
close process kRestartApache
 end if
 -- process will normally close itself when finished
 end mouseUp

That's cool, Phil! What did you have to do before 'open elevated process'?
Does this take the place of trying to pass an admin password on the command
line?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: determining if user has shell access

2010-10-14 Thread Ken Ray
You might be able to use the environment variable $ComSpec ... I see it here
on my Win7 machine, and If you can, it returns (for me):

   c:\Windows\system32\cmd.exe

Of course there's the shellcommand, but that just returns command.com or
cmd.exe depending on your flavor of Windows.

 The correct way to determine if you have permissions to execute shell
 scripts then is probably to find out if you have execute access to
 %WINDIR%\system32\cmd.exe.

Unfortunately without access to the *shell*, we can't use attrib the
equivalent, so that leaves launching apps or using a custom-built DLL (or
maybe executing VBScript).

Monte, if the user doesn't have shell access do you think they also wouldn't
be able to execute a VBScript? Because if they *can* do VBScript, I'm sure
there's a VBS way to find out shell access permissons.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Unable to open file using shell or process

2010-10-14 Thread Ken Ray
 on mouseUp
 put /home/Bill/Desktop/report/nr.php -f tt.conf  into promysql
open process promysql for update
read from process promysql for 500
put it into fld tout
write quit to process promysql
close process promysql
 end mouseUp
 
 Error: Unable to open tt.conf

Glen,

Not that it should make a difference, but it appears there's a space after
your command. I haven't used 'open process' to run a php script, so I may
just be shooting blanks here, but just thought I'd pass that along.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Constant command

2010-10-14 Thread Ken Ray

 In the case of scripts, local variables have to be set at some point
 before they will have a value, so I use those for things that are
 specific to the user setup (file paths I'll need repeatedly, for
 example.) Constant values are permanent until you change the script, so
 they're good for things that rarely change, like version numbers, lists
 of related objects you need to loop through often, and other
 script-related uses.
 
 I almost never use constants inside a handler, but that's just personal
 style.

On other difference - constants can't be changed (an error is produced), so
it kind of acts like a protected script local.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: determining if user has shell access

2010-10-14 Thread Ken Ray
 You can use the entire line that you would use in the appropriate
 command window, even changing the command process if need be, even
 changing priority.  You can also elevate the process with 'open
 process elevated' which might get past the blocks (presumably asking
 for a password if needed).  The latter might be good in that the
 solution is not so much to find if it works but to make it work.
 Well, if that works.  I haven't tried it, but I assume you can do the
 command line string and elevated process at the same time.

Right, Phil Davis posted an example of this today:

on mouseUp
  constant kRestartApache = apachectl -k graceful
  open elevated process kRestartApache for neither
  If the result empty then
  answer Could not restart server.
  close process kRestartApache
  end if
  -- process will normally close itself when finished
end mouseUp


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Constant command

2010-10-14 Thread Ken Ray

 Just noticed, in reading the dictionary on constant --
 
 CR = return = LF = linefeed = numtochar(10)
 but
 CRLF is listed as Equivalent to a carriage return (ASCII 13,
 Control-M) followed by a line feed (ASCII 10, Control-J), implying
 that carriage return = numtochar(13)  linefeed. Apparently,
 carriage return  CR ... WTF?

I know it's a bit confusing, but CR is ASCII 10 (same as LF) *inside*
LiveCode; when you create a text file on disk, LiveCode will convert the
line endings *inside* LiveCode to the appropriate line endings for the
platform you're on.

The difference for the dictionary entry is that CRLF actually *is* ASCII 13
+ ASCII 10, whereas CR = ASCII 10 and LF = ASCII 10.

Try:

  answer charToNum(CR)  /  charToNum(LF)
  answer charToNum(char 1 of CRLF)  /  charToNum(char 2 of CRLF)

You should see 10/10 in the first dialog, and 13/10 in the second.

Hope this helps,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: selectedChunk always empty?

2010-10-10 Thread Ken Ray
 
 Whatever I do, tSelectedChunk is empty. Is there any reason, Am I doing
 something wrong?

Turn off the 'traversalOn' property for the button. When you click it it's
getting the focus and removing it from the field before you can get the
selectedChunk.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: LiveCode Cocoa via Applescriptobjc

2010-10-08 Thread Ken Ray

 Bonjour,
 LiveCode can understand AppleScript via the command do.
 Applescriptobjc can use Cocoa methods (?)
 Is it possible to use Cocoa methods with Applescriptobjc inside LiveCode via
 the command do ?
 If yes, how ?

I don't think so... it appears to me that ApplescriptObjC allows you to use
AppleScript (mostly) within Xcode to create applications instead of using
Objective C through the use of a custom application framework. It doesn't
appear that executing special applescript from LiveCode is going to be able
to make use of that framework - at best you'd still be trying to
control/communicate with another app - just one build with AppleScript
instead of Objective C.

But that's just my initial take on it...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: RevBrowser bug

2010-10-07 Thread Ken Ray

 I'm just curious, I guess... is it only during dev in the IDE that you are
 toggling the resizable of a stack? Or if you do it at runtime, I'd be
 curious to find how you're applying this functionality...
 
 In my current project I need to toggle this according to some META TAGs
 inside of the html source.

That's what I was looking for... thanks!
 
 Ken, I was not born yesterday (LiveCode-wise) :-D

Don't I know it! ;-)


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: RevBrowser bug

2010-10-06 Thread Ken Ray
On 10/6/10 9:58 AM, Klaus on-rev kl...@major.on-rev.com wrote:

 Hi Andre,
 
 can someone confirm this is a regression?
 Did it happen in 4.0 or 3.x ?
 
 I also tested this on Rev 3.4 and 4.0, same problem.

But isn't this just when you turn the resizable of a stack on and off? I
mean if the stack is meant to be resizable, wouldn't you just leave it
resizable? I have several resizable revBrowser stacks with no problems (at
least, not as far as resizing goes :-)...

I'm just curious, I guess... is it only during dev in the IDE that you are
toggling the resizable of a stack? Or if you do it at runtime, I'd be
curious to find how you're applying this functionality...



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: HTML Text and Images

2010-10-06 Thread Ken Ray
 On Tue, Oct 5, 2010 at 7:32 PM, Ray Horsley r...@linkit.com wrote:
 
  If
 worse comes to worse I can always just keep the image I create to get the
 dimensions, resize it and use it instead.
 
 
 I think this is the only way.
 
 If you'd go with RevBrowser you could set image attribute such as height and
 width in the img tag but HTMLText does not work like that. Heck, I wish it
 was not called HTMLText but SGMLText or something like FancyTaggedText

Actually you can do it this way:

1) Retrieve the image from the web into an image object.
2) Change the size of the image object itself, making sure to keep the
dimensions consistent so you don't get stretching/skewing.
3) Lock the image object (set the lockLoc of image to true)
4) In your field, instead of setting the htmlText to the image with the ID
of the image object in img src.

Here's a simple example (I had to add a couple of returns before the text so
you could see the bird - watch linewraps):

on mouseUp
  set the lockLoc of img testImage to false
  set the filename of img testImage to 
  set the filename of image testImage to
http://linkit.com/Schools/ETS%20Items/ETS%20Item%20Bank/ETS10Q1/01%20Full%2
0Bank/04%20ELA%20QTI%20with%20GUIDs/Grade%20KLanguage%20Arts-95/images/38228
.jpg
  set the width of img testimage to (the width of img testimage/4)
  set the height of img testimage to (the height of img testimage/4)
  set the lockLoc of img testImage to true
  set the htmlText of fld 1 to (PPPHere's the bird img src=  quote
 (the id of img testImage)  quote  )
end mouseUp

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: adding new object to background group

2010-10-03 Thread Ken Ray

Mark,

 I'd like to add a button to an existing background group, but RR/LC is
 telling me if I do that I am going to loose the background with that group
 on it from all previous cards. And it does.

I think you're confusing ungrouping with editing a group. You get this
warning if you try to ungroup a group that is shared among multiple cards,
but you can do what you want by:

1) Select the group you want to add the button to with the pointer tool.

2) Click Edit Group on the toolbar (NOT Ungroup). This will go into
the group, and anything outside of that group will be temporarily hidden.

3) Add your button to the card like normal.

4) Click the Edit Group button again on the toolbar to get out of the
group. You'll see the rest of the card objects show up at that time.


This will add the button to any cards that have the group you edited on it
(i.e. all the previous cards).

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Storing an Array as a Custom Property

2010-10-01 Thread Ken Ray

 Instead the simplest I've found is this:
 
on mouseUp
  put gaskin into tPropSet
  put richard into tProp
  set the customPropertySet of me to tPropSet
  set the tProp of me to Howdy!
end mouseUp
 
 Is there a way to make that a one-liner using array notation?

The only way I can see to do it is with do; and maybe use merge to make it
a bit cleaner:

on mouseUp
  put gaskin into tPropSet
  put richard into tProp
  put Howdy! into tVal
  do merge(set the [[tPropSet]][ [[tProp]] ] of me to tVal)
end mouseUp

Note that you need to have a spaces around [[tProp]] otherwise you get an
error...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Online Snippets library

2010-09-22 Thread Ken Ray
 
 Thanks Thomas,
 
 Well what can I say. I've just downloaded the trial version and well...job
 done!
 
 The last update to the app was June 24 2010 so far from dead.
 
 Very impressive product, made with Rev. We should all be supporting this
 great product. I will be!

Also Scripter's Scrapbook has an online sharing component that's part of the
package that lets users post snippets for others to use that they can then
download into their own copy of Scripter's Scrapbook.

It doesn't get a lot of activity, but that's probably because most people
just don't know about it...

I use it for all of my code snippets, info on programming, and even to store
links to various resources. It's a great product!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Mac OS X - how to darken screen?

2010-09-18 Thread Ken Ray
 if you are using the external ssMacWindows you can use the command
 ssDisplayFadeOut to let the system handle fading the screen to black..

I totally forgot about that! Thanks for the reminder!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [OT] The lessons of Ion

2010-09-18 Thread Ken Ray
On 9/17/10 5:17 PM, Peter Alcibiades palcibiades-fi...@yahoo.co.uk
wrote:

 I have to tell you, this is an experience to make you think and scratch
 your head and think some more.  If Apple were right, it should not work.
 If Gnome were right, it should not work.  And on day 1 it does not.  But on
 day n, it not only works, it feels just perfectly right and automatic, your
 fingers just do things, and you forget you are using Ion, its just how
 things are done here.
 
 Try it.  You will never feel the same about HIGs and that guy and his silly
 law again.  Fitts he might have been.  And you will never again confuse
 being easy to use on day 1 for the ignorant with being easy to use  when
 you know it well and are experienced.  No, they are completely different
 things.

Thanks for the insight, Peter... sometimes turning the UI inside out is just
what's needed to work with it more efficiently. It reminds me of the
once-useful and now-not-so-much-so utility for Mac OS X called
Quicksilver... it allowed you to do much of the same kind of thing - hit a
keystroke, type a few characters, hit Enter, and you're there - having
launched an app, or invoked a process, or even run a service like web
searches or text parsing.

Sometimes less really IS more...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Mac OS X - how to darken screen?

2010-09-17 Thread Ken Ray
   I want to darken my Mac screen (not just a stack window) the way a slide
 presentation would do it at its beginning, and then bring it up again to
 reveal 
 what has been changed. Does anyone have an AppleScript or a shell() command
 for 
 this that can be run from Rev?
 

There are a couple of AppleScripts to do this, but both of these are
messy:

http://www.mactipper.com/2008/03/change-monitor-brightness-using.html

http://macosx.com/forums/unix-x11/293662-screen-brightness-through-terminal.
html


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Slow launch times on Windows 7

2010-09-17 Thread Ken Ray
 I am going to throw out one more time that I thought someone relatively
 recently had said on one of the runrev lists that they had an app that was
 taking a long time to launch and by updating the graphics driver the problem
 vanished.   It seemed relatively unusual to me at the time that that could
 make a difference.  I kind of expected that whoever it was might chime in by
 now.  I tried finding this reference using the google but no luck there.
 I thought it might be one of the Mark's or Malte but I guess not, and
 perhaps I dreamed the whole thing.

Nope! It's right there in the Rev Forums:

http://forums.runrev.com/phpBB2/viewtopic.php?f=9t=5654p=25597hilit=video
+driver#p25597

You weren't dreaming...

:-)

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: News on Rev/Linux

2010-07-27 Thread Ken Ray
Those look great, Richard! I'm glad this is getting attention...

Ken


On 7/26/10 10:39 AM, Richard Gaskin ambassa...@fourthworld.com wrote:

 I've been corresponding with Kevin on some Linux issues, and he just
 sent me these two screen shots with permission to share them with the
 Linux fans here:
 
 http://fourthworldlabs.com/rev/prelinuxlove_day1.PNG
 http://fourthworldlabs.com/rev/postlinuxloveday_1.PNG
 
 The first is from prior to a recent round of bug fixes, the second from
 after.
 
 Note that in addition to the improved appearance of the default button
 as I'd noted here earlier, the team has also cleaned up field border
 rendering.
 
 While modest enhancements, they go a long way to make our stuff look
 good on Linux, and demonstrate some of the effort the team is putting in
 on that goal.
 
 Kevin tells me he still doesn't have a definitive word on the
 printPaperOrientation issue in Linux, and given that this has also been
 cited as an issue with other dev tools I can't predict how it'll go in
 Rev 4.5, but I'll report back here as I learn more.
 
 In the meantime at least there's some healthy progress being made there,
 and in conjunction with the diagnostic work we're doing on this list the
 Rev/Linux situation is looking better every week.
 
 --
   Richard Gaskin
   Fourth World
   Rev training and consulting: http://www.fourthworld.com
   Webzine for Rev developers: http://www.revjournal.com
   revJournal blog: http://revjournal.com/blog.irv
 ___
 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

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: File lists

2010-07-17 Thread Ken Ray

 -- get a list of all OS X files in a folder
 
 function getFiles pFolder
put revMacFromUnixPath(pFolder) into pFolder
put tell application  quote  Finder  quote  cr  files of
 folder \
 quote  pFolder  quote  cr  end tell into tScript
do tScript as applescript
put the result into tFiles
replace comma with cr in tFiles
repeat for each line l in tFiles
  get the number of words in char 1 to offset(quote,l) of l
  put word it of l  cr after tList
end repeat
replace quote with empty in tList
return tList
 end getFiles

The only suggestion I have is to be careful of the replace comma with cr in
tFiles line - if there's a comma in the file name you'll get a wrong
result. Also you get a bunch of extra crap when you have the full paths to
the files when using files of folder folder.

Try this instead (watch the line wraps):

 function getFiles pFolder
put revMacFromUnixPath(pFolder) into pFolder
put replaceText(tell app `Finder`  cr  \
  the name of every file of folder `  pFolder  `  cr  \
  end tell,`,quote) into tScript
  do tScript as AppleScript
  put replaceText(char 3 to -3 of the result,(quote  ,   quote),CR) into
tList
  return tList
end getFiles


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [ANN] ssImageThingy

2010-07-01 Thread Ken Ray
Looks interesting, but how do you get it set up? (I DL'ed It and everything
looks blank ATM.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



On 6/30/10 1:32 AM, Shao Sean shaos...@wehostmacs.com wrote:

 Give your Rev-based applications an iPhoto-like live resizing image
 thumbnail viewer..  This is being released free (Public Domain) and
 unlocked so if you feel like having features added you can (or send
 them back to share them with everyone else)..
 
 
 What  : live resizing image thumbnail viewer
 Where : http://shaosean.tk/
 When  : now :-)
 Who   : thanks to Simon Lord for the fun; mad props to Malte Pfaff-
 Brill for assistance
 
 
 Set the margins on the group to control the internal padding of the
 main group..
 Set the text font/size/etc on the main group to change the label
 appearance..
 
 Speed is okay on my G4 and smooth on Intel-based Macs, but live
 resizing lots of images can slow it right down..
 
 This is implemented as a behavior..
 ___
 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


___
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: Getting ALL screen resolutions from 1 screen

2010-06-29 Thread Ken Ray
Mark,

You can do this with VBScript - here's a script that gets all possible video
controller resolutions:

' List All Possible Video Controller Resolutions


On Error Resume Next

strComputer = .
Set objWMIService = GetObject(winmgmts: _
 {impersonationLevel=impersonate}!\\  strComputer  \root\cimv2)

Set colItems = objWMIService.ExecQuery _
(Select * from CIM_VideoControllerResolution)

For Each objItem in colItems
Wscript.Echo Horizontal Resolution:   objItem.HorizontalResolution
Wscript.Echo Number Of Colors:   objItem.NumberOfColors
Wscript.Echo Refresh Rate:   objItem.RefreshRate
Wscript.Echo Scan Mode:   objItem.ScanMode
Wscript.Echo Setting ID:   objItem.SettingID
Wscript.Echo Vertical Resolution:   objItem.VerticalResolution
Wscript.Echo
Next


Have fun!


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/

On 6/29/10 10:36 AM, Mark Stuart mstu...@adaptcrm.com wrote:

 Hi all,
 
 Platform: WinXP
 Rev: revStudio 4.0
 
 I'm wanting to get all possible screen resolutions from a Windows
 computer.
 I know the screenRects gets the current resolution from all attached
 screens, but I want to get all possible screen resolution range settings
 from only 1 of the screens.
 
 Eg: on my computer screen, the range goes from 800x600 all the way to
 1280x1024.
 I want to get each of the settings in this range.
 
 Anyone know if revStudio has this function or do I have to get it with a
 VBScript, or something?
 
 Regards,
 Mark Stuart
 ___
 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


___
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: Need Help with Geometry

2010-06-28 Thread Ken Ray

 Not quite sure how to set the Geometry manager to get the results I want.  I
 have two fields that are the exactly same size with one siting above the other
 and their left edges aligned.  I'd like them to scale proportionately both
 width-wise and length-wise to the lower right, keeping the vertical distance
 between them constant.  In other words, I want the two fields to get bigger or
 smaller together and keep the same distance apart.  Thought it would be easy,
 but I've tried many different combinations of settings in the Geometry manager
 with no luck.  Any advice would be most appreciated.

So should the topLeft of the topmost field stay in the same place as you
resize? Just trying to understand...

For example, if you start with two fields that are 100 pixels wide by 50
pixels tall with 10 pixels between them, and 10 pixels from the right edge
of the fields to the right side of the card, and 10 pixels from the bottom
edge of the bottom field to the bottom of the card, and the starting height
of the card is 500, and the starting width of the card was 400, that means
that the topleft of the topmost field would be at
(400-110),(500-(50+50+10+10)) or 290,380 and the topleft of the bottom field
would be at (400-110),(500-(50+10)) or 290,440.

If you then resize the stack to make it 100 pixels wider and 100 pixels
taller, then that would leave the top field's topleft at 290,390, both
fields would be 50 pixels taller (splitting the difference between the two
of them and maintaining the 10 pixel gap), so the bottom field's topleft
would be 290,(600-(100+10)) or 290,490... is that right?

Just checking...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



___
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: Call to all you one-liners !

2010-06-27 Thread Ken Ray
 Actually that doesn't solve the original issue - you can set the color to
 numbers that are greater than 256 and it will still work (try it with
 1000,1000,1000 and you'll see what I mean).
 
 I don't see that as a problem. The numbers are modded down to 255
 and setting the color of the button does exactly what I'd expect it to
 in that case.

Well that's where you and I differ - if I accidentally passed 2555 instead
of 255 for one of the integers in a color value, I'd want to be told that
that's an error. This is especially true when the docs for all the color
tokens state The RGBColor consists of three comma-separated integers
between zero and 255... So if it's either not an integer or outside that
range, I'd assume I'd receive an error.

So in my eyes, this is a bug in the is a color function. BTW: This is
along with the already existing bug with the function that returns true if
you just pass a zero to it. And similarly, you can set the backcolor (or any
other color property) of an object to 0 and not get an error...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Sorting lines by variable directions and types

2010-06-27 Thread Ken Ray

 Is there some slight of hand I can perform on the variables tDirection
 and tType to make my one-liner functional, i.e.
 
  sort lines of  tList   MagicOperator(tDirection)
 MagicOperator(tType) by word 1 of each

You should be able to use do for this:

  do sort lines of tList  tDirection  tType  by word 1 of each


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Call to all you one-liners !

2010-06-27 Thread Ken Ray

 Depends on your objective. If the aim of the isAColor function is to
 determine whether the passed parameter can be used as a parameter in
 setting one of the color properties, then I think the function
 performs as designed.

My issue isn't with *your* isAColor function - it's with the built-in is
a color function (or is it statement?)... I meant that this:

  put 1000,1000,1000 is a color

should return false instead of true.


 Well, I beg to differ on describing this as a bug. Many things are colors in
 rev, not only RGB values.
 Any color name is, HTML Color definitions are and also revs own
 representations (effective backpixel is a single number for example) are.
 Is a color needs to be able to parse all of those.

Oh, I agree with you Malte - my only focus at the moment is on the RGB form
of a color. 

IMHO either the docs need to be amended to say that the RGB values that can
be used for *setting* a color can be any three integers (and values over 255
will be modded) or can be just the single integer zero, but that if you
*get* the color you will always get three comma delimited integers from
0-255... OR it should be treated as a bug and only accept a 0-255 integer
triplet for the RGB form of color values.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Call to all you one-liners !

2010-06-26 Thread Ken Ray
FYI: ugly though it is, here's the regex (it's long, so I broke it up into
multiple statements):

function isAColor pRGB
  put ^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),  \
  ([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),  \
  ([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$ into tRegEx
  return matchText(pRGB,tRegEx)
end isAColor


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


On 6/26/10 2:10 PM, Jim Ault jimaultw...@yahoo.com wrote:

 The sum() function error could do this,
 but it will also work with real numbers, not just integers.
 
 On Jun 26, 2010, at 10:36 AM, J. Landman Gay wrote:
 
 J. Landman Gay wrote:
 Mark Schonewille wrote:
 Hi Francis,
 
 put (fld 1 is a color and the number of items of fld 1 is 3) into
 myIsRGB
 As mentioned, this is okay for a quick check but isn't very
 reliable in general. Is a color seems to return true for any
 comma-delimited list of integers, regardless of whether the numbers
 are within a valid color range.
 
 I meant to add: it could be a quick way to check for any valid list
 of item-delimited integers though. It's sort of a non-intuitive
 approach, but faster than iterating through the list looking for non-
 integer entries.
 
 
 Jim Ault
 Las Vegas
 
 
 
 ___
 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


___
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: Call to all you one-liners !

2010-06-26 Thread Ken Ray

 FYI: ugly though it is, here's the regex (it's long, so I broke it up into
 multiple statements):
 
 That's a lot of work. I go for the easy way:
 
 function isAColor pColor
   local tIsColor
   put true into tIsColor
   create invisible button
   try
 set the backcolor of the last button to pColor
   catch e
 put false into tIsColor
   end try
   delete the last button
   return tIsColor
 end isAColor

Actually that doesn't solve the original issue - you can set the color to
numbers that are greater than 256 and it will still work (try it with
1000,1000,1000 and you'll see what I mean).


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Help with drill-down script

2010-06-23 Thread Ken Ray
 Anyway, there's one feature: the first card is an
 index of all the cards in the stack. In HC, all
 you need to do is start typing and as you add
 letters, the selected line changes to reflect
 what you've typed. When you get to what you want,
 you hit return and that takes you to the
 respective card.
 
 Anyway, it's not working in Rev.

One thing to remember when coming from HC is that in Rev you have true list
fields, so you don't need to fake it with selecting a chunk of text in a
locked field.

As Jacque posted, all you need to do is (1) make your index field into a
list field by setting its listBehavior to true, (2) make sure the
'traversalOn' of the list field is true (otherwise you can't get the
keystroke), and (3) use a script like Jacque provided to grab the user's
keystroke with the 'keydown  handler.

To activate what is currently highlighted, you can trap for the
returnInField and  enterInField messages, grab the currently highlited
line and then do what you want:

on returnInField
  put the hilitedText of me into tItemSelected
  -- Now do something with it (tItemSelected will
  -- contain the text of the line that has the highlight)
end returnInField


 Thanks for reading this far. And since you did, I
 can't resist mentioning some of the features of
 this stack:
 1) Smart synchronization: if the copy at the
 office gets a new email address and the same
 person at home gets a new cell phone number, both
 are kept and the card is flagged and put in a
 list. You can deal with it later, like when you
 next go to that card which shows the dates of
 both new entries, or go through the list if you
 want
 2) Parsing of clipboard data, from v-cards, email
 signatures and the like, when making new entries.
 3) A Business checkbox which then alphabetizes
 business names phone-book style, ignoring and
 initial The etc.
 4) Auto-capitalization; you don't have to hit the
 shift key when entering names. It's smart, knows
 about de and von etc.
 5) One-click or keystroke phone dialing, via a
 modem, Skype out, or Skype-to-Skype (if there's a
 Skype name in the Notes field).
 6) Envelope printing of 4 different  custom styles (size, return address)
 7) Sifting to create subsets (Christmas card
 lists, European contacts, email addresses, etc.)
 for export in CSV or tab-delimited format
 8) Smart printing of Filofax-style pages (no
 entry broken over a page; print one side, turn
 the stack over and print again, all comes out in
 proper order)
 9) Ability to change the spelling or
 capitalization of a name, then automatically
 moved to where it belongs as needed, and have the
 corresponding Yellow or White pages version
 auto-updated.
 10) Hidden Filed as field to override the
 default alphabetization, useful for names like
 van Beethoven - filed under v or b?
 11) URL launching (grabs the first or selected
 email or web address) and file/app launching such
 as Word templates,  with the appropriate info
 (name and address) in the clipboard
 12) Unlimited delete and restore of cards (until you quit).
 13) Name conflict resolution: If you have a John
 Smith entry, and make a new John Smith card, you
 get an alert that he's there already. You can
 delete the new one, the old one, or keep both
 14) A database of national and international area
 codes so if you have an unknown phone number you
 can see where it's probably located
 15) And of course it relies on HC/Rev's brilliant
 Find so you can for example type a first name
 and a state abbreviation or city name to find
 someone whose last name you don't remember, but
 you know where they live
 16) Customizable abbreviations expanded on
 address data entry: ny expands to New York, NY
 and de expands to Germany, but only if followed
 by a space (or nothing) and must be the first
 characters of the last line in the address field.
 17) Phone numbers corrected to be in a standard
 form (dots  parentheses replaced by dashes). US
 numbers get 1- in front, other countries get
 their country code - you can use the
 abbreviations used in the Address field such as
 de for Germany to enter the proper country code
 so you don't have to remember it.
 There's more but I'll stop now...

Sounds great!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



___
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: Shell command return 255

2010-06-23 Thread Ken Ray


 How to know from where the command is executed. In terminal put which
 command, and we get the entire path to the command.
 To test from the shell /bin/sh into the Terminal. Put /bin/sh and press
 enter. Now we are in the same shell that is called from shell and from Rev.
 Test your command here, if here is ok, copy the commandline and exec from
 Rev. Put exit to return to your normal shell into the Terminal.

That's great to know, Josep... thanks!


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: rev media and the player, question

2010-06-23 Thread Ken Ray
 Does rev Player play stacks written in Media?  Or if you want to run them,
 do you have to have media installed on any machine you want to run them on?
 
 I know Stackrunner won't play media generated stacks.  Pity.

Well, StackRunner *may* play Media-generated stacks... I've gotten a couple
of reports from people that it worked, but I haven't tried it myself.
Originally I know that SR didn't run them, but there have been several
versions of Rev since then, so give it a shot!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Listing available MYSQL databases

2010-05-29 Thread Ken Ray
Actually, it's even easier than that:

put /usr/local/mysql/bin/mysql -u username -p password --execute='show
databases' into tCmd
put shell(tCmd)

The only minor downside is to get the TRUE list, you need to clean up the
result a bit (the first line just says Database and the last line is
empty). So you can simply do this in one statement (indented here for
clarity):

put line 2 to -1 of shell(/usr/local/mysql/bin/mysql -u username -p
  password --execute='show databases') into tDBList


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



On 5/25/10 10:42 PM, Bob Cole bobc...@earthlink.net wrote:

 If you put SHOW DATABASES; in a text file on the target
 machine then you can execute the following statements
 (watch for line breaks):
  put /usr/local/mysql/bin/mysql -u username -ppassword 
 '/usr/local/ShowDatabases.txt' into myCommand
  put shell(myCommand) into message box
 That works for me on my Mac with OS X 10.6.3
 Bob
 
 
 Tue, 25 May 2010 11:41:21 -0700, Glen Bojsza gboj...@gmail.com wrote:
 HI Joe,
 You are correct and this has help solve my problem.
 regards,
 Glen
 
 On Tue, May 25, 2010 at 10:32 AM, Joe F. jo...@mac.com wrote:
 This script would make promysql evaluate to mysqlshow - u  nrl -pnrl1
 On May 23, 2010, at 3:36 PM, Glen Bojsza wrote:
 
 Hello,
 Has anyone successfully used either open process or get shell() to list
 the databases available on a machine.
 [...snip...]
 ___
 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


___
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: Windows 7 question

2010-05-29 Thread Ken Ray
 Mark Schonewille (off forum) came up with the best answer (I think),
 not requiring a shell command.
 
put item 1 of specialfolderpath(system) into x
 
 and strip off the /WINDOWS text !
 
 And this works for all Windows systems that I know.

Sorry for coming late to the party here, but there's a gotcha you need to
know about:

Although the specialFolderPath() approach will give you a path, you can't
count on /WINDOWS being in the path - you can give the main Windows
directory any name you like during the install of ANY version of Windows (so
far). However since most people don't install Windows but just get it
preloaded on PCs they purchase, it is almost always WINDOWS.

For example, I used to have a PC which dual-booted Windows ME or Windows XP
(yes, this was a long time ago), and I had one directory named WINDOWS and
the other WINXP, and based on the boot choice it would pick the proper
folder. So if I booted in XP and got the specialFolderPath(system), it
returned C:/WINXP.

So to truly make it work, you need to not assume anything other than the
specialFolderPath will give you a path that you can delete the last
/-delimited item from to get what *should* be (until Microsoft changes it)
the system volume:

set the itemDel to /
put item 1 to -2 of specialFolderPath(system) into tSysDrive

Just my 2 cents,


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/
 


___
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


ANN: RevZilla 2.2

2010-04-11 Thread Ken Ray
Hey everyone... I was forced to move away from my previous ISP, and in doing
so the CGIs I was using to post bugs for RevZilla were replaced with .irev
files. 

This means that any version of RevZilla prior to this one will fail when
attempting to send in RevZilla feedback, bug reports, or even checking for a
new version of RevZilla (since there are no CGIs to process the requests
anymore).

It is strongly recommended that if you're a RevZilla user that you upgrade
to the new build. You can find it here:

http://www.sonsothunder.com/devres/revolution/downloads/RevZilla2.htm

Thanks!

Ken Ray
Sons of Thunder Software


___
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: Regular expression

2010-03-12 Thread Ken Ray
 on mouseUp
local mySource,myStart,myEnd,TESTO,myStart2,myEnd2
put xx src='HTTPWEB' width='3845' height='334' src='HTTPWEB' x
 into TESTO
put empty into mySource
put empty into myStart
put empty into myEnd
put matchChunk(TESTO,src='([^']*)',myStart,myEnd,myStart2,myEnd2)
put myStart  comma  myEnd  comma   myStart2  comma  myEnd2
 end mouseUp
 
 This script returns 13,19,, .
  I exprected something like 13,19,57,63 , because now I have two strings
 matching src='([^']*)' .

Sorry, Paolo, that's not how matchChunk works. You only get a single match
on a given capture region (what's inside the parentheses). Normally this
match is greedy - that is, it will give you the *largest* match it can in
the string you're evaluating. You can modify that by providing the ? and
turn it non-greedy, which will give you the *shortest* match.

So with a string of:

The hot dog in the hotel was hotter than usual.

get matchText(tString,(h.*t),tMatch)
put tMatch
-- he hot dog in the hotel was hotter t

get matchText(tString,(h.*?t),tMatch)
put tMatch
-- he hot

get matchChunk(tString,(hot),tStart,tEnd)
put tStart,tEnd
-- 5,7

Of course, you can provide multiple capture regions if you know how many
regions there will be in the string, but note that the greediness applies
here too, so watch when you use ? and when you don't:

get matchChunk(tString,(hot).*(hot),tStart,tEnd,tStart2,tEnd2)
put tStart,tEnd,tStart2,tEnd2
-- 5,7,30,32  -- matched first hot, and hot in hotter

get matchChunk(tString,(hot).*?(hot),tStart,tEnd,tStart2,tEnd2)
put tStart,tEnd,tStart2,tEnd2
-- 5,7,20,22  -- matched first hot, and hot in hotel

If you don't know the number of possible capture regions, you'll have to use
a repeat loop and limit the string by deleting up to what has matched the
last time for each iteration:

on mouseUp
  put The hot dog in the hotel was hotter than usual. into tString
  put  into tMatches
  put 0 into tAdder
  repeat
if matchChunk(tString,(hot),tStart,tEnd) then
  put (tStart + tAdder)  ,  (tEnd + tAdder)  cr after tMatches
  add tEnd to tAdder
  delete char 1 to tEnd of tString
else
  exit repeat
end if
  end repeat
  put tMatches
end mouseUp

-- 5,7
  20,22
  30,32

Anyway, you get the idea...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Keyboard Menu Control Blocked?

2010-03-12 Thread Ken Ray

 Any thoughts on how I can track down what is preventing my menu buttons
 from firing when triggered from the keyboard?

One thing that Richard told me that I didn't know was that the
defaultMenuBar actually works on Windows... not the same as on Mac, but it
solved a similar problem I had: my app had a toplevel stack and a palette -
the user would click on the palette to change a property and then the next
time they hit a keystroke to trigger a menu in the menubar on my toplevel
stack, it didn't trigger.

As it turns out, if you set the defaultMenuBar to the menubar of your
topStack, it will be the recipient of all menu key accelerators, regardless
of whether someone clicks on a non-toplevel stack or not.

So my suggestion would be to check if the defaultMenubar is being set, and
if not, to try setting it...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Regular expression

2010-03-10 Thread Ken Ray
Actually, Paolo, you *almost* had it right... if you change .* to .*?
you are telling the regEx to limit it to the first match. So this would
work:

if matchText(tString,src='(.*?)',tVal) then
  put tVal -- puts HTTPWEB
end if

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



On 3/10/10 9:09 AM, Jeffrey Massung mass...@gmail.com wrote:

 regex should be 
 
 if matchText(tInputString, src='([^']*)', tSourceMatched) is true then
 put tSourceMatched
 end if
 
 Of course, many of the other suggestions posed by others w/o using regex are
 fine, too. Just letting you know how to do this with regex as well.
 
 Jeff M.
 
 
 On Mar 10, 2010, at 5:30 AM, paolo mazza wrote:
 
 To me regular expressions are tricky!
 
 I need to extract the string HTTPWEB from the string xx src='HTTPWEB'
 width='3845' height='334' x
 
 If I use the regular expression (src='.*') and the matchChunk command,
 
 I get this string :   src='HTTPWEB' width='3845' height='334'(see the
 following RevTalk script)
 
 
 Which is the regular expression to get just  the argument of the src
 variable ( HTTPWEB in this example)?
 
 Thanks a lot
 
 Paolo Mazza
 
 SAMPLE CODE
 
 on mouseUp
   local TESTO,STRINGA,VAR1,VAR2
 
   put xx src='HTTPWEB' width='3845' height='334' x into TESTO
 
   put (src='.*') into STRINGA
 
   put matchText(TESTO,STRINGA)  return  into message
 
   if matchChunk(TESTO,STRINGA,VAR1,VAR2) then
  PUT char VAR1 to  VAR2 of TESTO into message
   else
  put not found! into message
   end if
 
 end mouseUp
 ___
 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
 
 ___
 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




___
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: reading and converting web page HTML text

2010-03-07 Thread Ken Ray

 Apparently numbers less than 8 are interpreted as HTML relative size
 and larger numbers specify point size.
 
 Could this have something to do with the recently mentioned problems
 with font sizes on Unix platforms? If somehow the rev unix engine is
 mixing these up, then something intended to be size 14 could display
 at size 4.  But I know very little about this stuff, it's just a
 thought.

Actually it's the way web browsers handled it a long time ago when real
font sizes were introduced; they had to remain backwards compatible with the
previous method but also adopt the new one.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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


FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Ken Ray
I have some large files (100MB +) that I need to FTP to a customer's server.
I have tried to use libURL to do the uploading, but I get odd results/random
timeouts/errant status messages when the file I'm uploading is over 40MB.
I've tried many different workarounds to this, but none have been
consistent/acceptable so for this project I'm seeing if I can use curl.

The pain is that there doesn't seem to be a way to retrieve the progress of
an FTP upload so I can display a custom upload box. If I redirect it to
dev/null, I get control back after the upload starts, but I can't get any
progress data:

   curl -T filePath -u user:pass serverAdress  /dev/null 21 

If I redirect to stdin, it's blocking and I only get anything when the
upload is complete:

   curl -T filePath -u user:pass serverAdress  stdin

I've also tried:

   curl -T filePath -u user:pass serverAdress  stdin 
   curl -T filePath -u user:pass serverAdress  stdin 21 

Is there any way to make a non-blocking call to curl, but then to get back
the progress text that would normally be displayed in the Terminal?

Any help would be appreciated...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: popup command cross-platform

2010-03-04 Thread Ken Ray



On 3/4/10 4:59 PM, Jeff Massung mass...@gmail.com wrote:

 So, I'm seeing different functionality w/ the popup command on OS X and
 Win32, wondering if I should mark this as a bug, and also wondering if
 anyone has a work-around?
 
 -- in a field's script
 on mouseUp
set the backgroundColor of me to black
popup btn some menu
set the backgroundColor of me to white
 end mouseUp
 
 On Mac OS X this will set the backgruond color black, popup the menu, and
 wait for me to cancel the popup or click a menu item in it, and then set
 the background color back to white. On Win32 the field goes black - white
 instantly and the popup is still there.
 
 I much prefer the OS X implementation (given this single context and what I
 want to have happen), but I understand the advantages of the Win32
 implementation. So if it's a bug, I could care less which version was
 considered correct by RunRev, but them being different I consider
 incorrect behavior.

Well, I don't know if it's a *bug*, but it is certainly inconsistent. Oh,
and you should do this on mouseDown instead of mouseUp.
 
 That said, anyone have a workaround for me?

All I can suggest is what I ended up having to do... make sure that the
popup command was the last thing encountered in the mouseDown handler, and
then have the menuPick of the btn being popped handle what happens when they
release the mouse button. If you need to pass data between the button
calling the popup command and the button being popped, you can use custom
properties or globals, etc.

Example:

-- Main button
on mouseDown
  set the backgroundColor of me to black
  set the uCaller of btn some menu to (the long id of me)
  popup btn some menu
end mouseDown

-- btn some menu
on menuPick pItem
  -- do whatever you want to do
  set the backgroundColor of (the uCaller of me) to white
end menuPick

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Ken Ray

Thanks, Phil! Josh sent me his code as well so having both will let me get
this done!

Thanks again...

Ken

On 3/4/10 2:16 PM, Phil Davis rev...@pdslabs.net wrote:

 Hi Ken,
 
 If you open curl as a process, you can then read the status info one
 line at a time. Would that work?
 
 Here's one way (courtesy of Josh Mellicker, with some mods):
 
 -- a button script --
 
 local vCurlProcess
 
 
 on mouseUp
 put empty into fld output
 put formattedForCurl(fld filename) into tFiles
 
 put (curl -T  tFiles  fld server  -C -) into vCurlProcess
 open process vCurlProcess for read
 get the result
 if it = empty
 then send getCurlReport to me in 12 ticks
 else answer it
 end mouseUp
 
 
 on getCurlReport
 read from process vCurlProcess for 1 line
 put it after fld output
 if it = empty
 then closeCurl
 else send getCurlReport to me in 12 ticks
 end getCurlReport
 
 
 on closeCurl
 close process vCurlProcess
 answer Done.
 end closeCurl
 
 
 function formattedForCurl pFileList
 -- handle single file selection
 if the number of lines in pFileList = 1 then return quote 
 pFileList  quote
 
 -- handle multi file selections
 replace CR with , in pFileList
 put quote  {  pFileList  }  quote into tList
 return tList
 end formattedForCurl
 
 
 There you have it!
 Phil
 
 
 
 On 3/4/10 10:28 AM, Ken Ray wrote:
 I have some large files (100MB +) that I need to FTP to a customer's server.
 I have tried to use libURL to do the uploading, but I get odd results/random
 timeouts/errant status messages when the file I'm uploading is over 40MB.
 I've tried many different workarounds to this, but none have been
 consistent/acceptable so for this project I'm seeing if I can use curl.
 
 The pain is that there doesn't seem to be a way to retrieve the progress of
 an FTP upload so I can display a custom upload box. If I redirect it to
 dev/null, I get control back after the upload starts, but I can't get any
 progress data:
 
 curl -T filePath -u user:pass serverAdress  /dev/null 21
 
 If I redirect to stdin, it's blocking and I only get anything when the
 upload is complete:
 
 curl -T filePath -u user:pass serverAdress  stdin
 
 I've also tried:
 
 curl -T filePath -u user:pass serverAdress  stdin
 curl -T filePath -u user:pass serverAdress  stdin 21
 
 Is there any way to make a non-blocking call to curl, but then to get back
 the progress text that would normally be displayed in the Terminal?
 
 Any help would be appreciated...
 
 Ken Ray
 Sons of Thunder Software, Inc.
 Email: k...@sonsothunder.com
 Web Site: http://www.sonsothunder.com/
 
 
 ___
 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
 


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Custom tab controls

2010-03-04 Thread Ken Ray



On 3/2/10 3:38 PM, Bob Sneidar b...@twft.com wrote:

 How odd. This showed up with a .mc extension, and opened in something called
 TestAETE, and worked! When I changed the extension to .rev, it opened in
 Revolution and worked there too!
 
 What in the world is TestAETE? It was in my Revcon Downloads folder.

TestAETE was an app distributed after my talk at RevCon about creating your
own custom AppleScript dictionary for Rev apps.  The TestAETE application
had a couple of examples in it.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: ANN: Newsfeeder - an RSS reader

2010-02-16 Thread Ken Ray
 Well, this is really a half announcement. I've been working on this in my
 spare time now for about a month, and have it somewhere - I'd guess - around
 80% ready for release. I'm posting a couple screenshots here, telling you
 about a few of the features, and (for have those of you who use RSS readers)
 hoping you'll give me what your general impressions, etc.

Looks really good and clean, Jeff... congrats!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: ANN: StackRunner 2.0 Now Available

2010-02-16 Thread Ken Ray



On 2/16/10 8:13 AM, Andre Garzia an...@andregarzia.com wrote:

 Ken,
 
 
 Congrats! Thanks for doing this!
 
 Can I include StackRunner in that Linux distribution that I am building?

Absolutely! I'd be honored...



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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


ANN: StackRunner 2.0 Now Available

2010-02-15 Thread Ken Ray
After a LOOONNG time, I finally was able to update StackRunner
to use the 4.0 engine. It includes the Data Grid library by default, and the
StackRunner app now sports a new icon! :-)

For those of you who came to Rev after the last version of SR came out (over
1.5 years ago!) and don't know what it is, StackRunner is a simple way to
deploy your Rev stacks without having to build standalones; it's a Player
app that will run your stacks simply and easily and without any interface to
get in your way!

To find out more, see the download page at:

http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm

Enjoy!
 
Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: ANN: StackRunner 2.0 Now Available

2010-02-15 Thread Ken Ray

 Now, i could test the engine 4.0 in
 different Linux distributions without
 installing RevMedia.

Why do you need to install RevMedia? StackRunner works on Linux as well (or
at least it *should*... :-)

 Keep up this useful application!

Thanks!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: revXML... issue

2010-02-14 Thread Ken Ray
 For example:
 
 ?xml version=1.0?
 testThis is #1039; a test/test
 
 The above tree - upon being parsed - will convert #1039; into 2 bytes instead
 of leaving it encoded. The result is a blob of text that's composed of both
 single-byte characters and double-byte characters. This is no good.
 
 So, is there a way to get the XML parser in Rev to not touch the data in the
 tags and let me do it? Or better yet, how about making revXML adhere to the
 useUnicode global, so either all the returned data is single-byte or it's all
 double-byte?

Another alternative would be to use my XML Library - it's all Rev code and
it doesn't mess with your data. It's great for small-to-medium sized XML
docs (if it's big it can really slow down though).

If you're interested, take a look:

http://www.sonsothunder.com/products/xmllib/xmllib.htm


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: making a thumbnail from a snapshot

2010-02-14 Thread Ken Ray


 What I get is not a properly sized thumbnail -- I get an image that
 looks the size of the whole new (cloned) group, and it's not a
 miniature of the big image, it's a crop of the big image. I can't
 remember how to miniaturize an imported snapshot down to thumbnail
 size. I know this has been discussed before but can't find it in the
 gmane archives. Any help appreciated.

Here's a simple example of taking an existing image and making a 1/4 sized
thumbnail:

  export snapshot from img 1 to tPictData as PNG
  create image
  put it into tImg
  set the text of tImg to tPictData
  set the width of tImg to (the width of tImg/4)
  set the height of tImg to (the height of tImg/4)
  set the lockLoc of tImg to true
  set the imageData of tImg to the imageData of tImg

Hope this puts you on the right track...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [ANN] Data Tree 0.9.9 RC beta

2009-11-19 Thread Ken Ray

 Just a quick post to let everybody know that I've just uploaded a new
 beta of my tree library to my site.
 
 There's a blog post on my site that goes into detail about what's new
 or been fixed but in short, the big news is that this version adds
 support for tabbing to and from a tree.
 
 Thanks to everybody who has provided feedback, both to me directly and
 on the mailing list.
 
 You can obtain the beta download from my site, www.theworcestersource.com

Very nice, Steve! I really like the platform-specific accuracy you went to
the trouble of duplicating.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: How to get a return value from a vbs file?

2009-09-25 Thread Ken Ray


 Where I now stuck is, that I don't know how to get back any return value
 from the vbs script file back into my rev, e.g the result of calling icacls.
 I can't just say return in vbs.

You use Wscript.Echo stuffYouWantToReturn at the end of the VBS file.
When you run the script file with the shell command, whatever is in
stuffYouWantToReturn is returned from the shell() call.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [ANN] Multi-platform tree control library (in beta)

2009-09-25 Thread Ken Ray
 
 Over the past couple of months, I've been working on a tree control
 for RunRev that produces great looking controls that look like they
 belong on the platform that you're running.
 
 For example:
 
 Tree in Mac OSX mode
 http://theworcestersource.com/Portals/0/Blog%20Images/tease%20macosx.png
 
 Same tree in Windows mode
 http://theworcestersource.com/Portals/0/Blog%20Images/tease%20winxp.png

Sweet! That's great, Steve, I'm really looking forward to it!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [ANN] MacWindows external 1.0.0 (005)

2009-09-23 Thread Ken Ray


 MacWindows 1.0.0 (005)
 External to give Revolution applications a more Mac-like experience.
 The name comes from the Carbon header file that the majority of the
 features are called from.

Sweet! Thanks, Sean... I'll be sending you a donation ASAP...

:-D

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [ANN] Sona Vocabulary Assistant 1.0

2009-08-07 Thread Ken Ray
 I'm pleased to announce the release of Sona Vocabulary Assistant, an
 internet-aware, media-friendly product for language students. There
 are lots of vocabulary apps out there but none with the features I
 wanted, so I made one myself.  : )

Very nice! Congratulations on the product launch... it looks great!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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


Detecting UTF-8 Encoded Files

2009-08-07 Thread Ken Ray
I recently had a need to be able to detect whether a vCard was UTF-8 encoded
or not so that I could run the proper decoding on it... after a healthy web
search, I found an article on Instructables for how to walk through the text
of a file and be able to determine this:

http://www.instructables.com/id/SYGL47RFDYPTCVC/

I wrote a function based on it and so far it's worked for me, but if anyone
sees any problems with it, let me know:


function GetFileData
answer file Select a file:
put it into tFile
if tFile is not  then
if isUTF8Encoded(tFile) then
put url (file:  tFile) into tData
return unidecode(uniencode(tData,utf8))
else
return tdata
end if
end if
end GetFileData

function isUTF8Encoded pPath
  put url (file:  pPath) into tData
  
  -- Look for patterns of:
  -- 110x, 10yy (2 bytes)
  -- 1110, 10yy, 10zz (3 bytes)
  -- 0xxx,10yy, 10zz, 10ww (4 bytes)
  put  into tMatchHolder
  repeat for each char tChar in tData
put format(%08d,baseConvert(charToNum(tChar),10,2)) into tVal
if tMatchHolder =  then
  switch
  case (char 1 to 3 of tVal = 110)
put 20 into tMatchHolder
break
  case (char 1 to 4 of tVal = 1110)
put 30 into tMatchHolder
break
  case (char 1 to 5 of tVal = 0)
put 40 into tMatchHolder
break
  default
next repeat
  end switch
else
  if (char 1 to 2 of tVal = 10) then
if char 2 of tMatchHolder = (char 1 of tMatchHolder - 2) then
  return true
else
  add 1 to char 2 of tMatchHolder
end if
  else
put  into tMatchHolder
next repeat
  end if
end if
  end repeat
  return false
end isUTF8Encoded

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Rending HTML Entities in HTMLtext in fields

2009-08-07 Thread Ken Ray

 On Sun, Jul 26, 2009 at 7:18 AM, Sivakatirswamika...@hindu.org wrote:
 Is there a way to get htmlEntities
 
 #8220;Kanwar#8221;
 
 The rest of their lifestyle #8212; names, marriage rituals, dressing styles
 #8212; continued to be the same
 
 to appear correctly in a field where such enties are  part of the html used
 to set the htmltext of a field?
 
 
 I had to wrestle with this recently and after numerous attempts with
 uniencode, unidecode, macToISO etc., I ended up writing my own
 function to do it:

That's awesome, Sarah! I've been needing something like this...

Thanks!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: OT: Any VBS, VBA, Excel specialist out there who might help?

2009-08-07 Thread Ken Ray
 as i already said, i am not very familiar with vbs. My script is from
 a book.
 
 So i am not sure, how and where in the script i should pass this
 parameter.
 
 Regards
 
 Matthias

Oh geez, Matthias I haven't had a chance to read the list for a while
and just caught this, so I hope I can still help after all this time has
passed.

Anyway, here's what you need to do:

Instead of this line of code that you have right now:

.Workbooks.OpenText sInPath, , , ,xlTextQualifierNone,,,True
,Array(Array(1, 2), Array(2,2), Array(3,2), Array(4,2), Array(5,2),
Array(6,1), Array(7,1), Array(8,1), Array(9,1), Array(10,1),
Array(11,1), Array(12,2))

pass this one instead (watch the line breaks):

.Workbooks.OpenText sInPath, , , xlDelimited,xlTextQualifierNone,,,
True,Array(Array(1, 2), Array(2,2), Array(3,2), Array(4,2), Array(5,2),
Array(6,1), Array(7,1), Array(8,1), Array(9,1), Array(10,1),
Array(11,1), Array(12,2))

Let me know if this works for you,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: OT: Any VBS, VBA, Excel specialist out there who might help?

2009-07-23 Thread Ken Ray

 My csv file is structured like this:
 
 ArtNr;ShortDescription;LongDescription;ManufactureNo;EAN;Manufacturer;Stock
 010002;Epson LQ300; Epson LQ 300 Matrixdrucker;C11C63800;8715946316949;Epson;2

It looks to me like the problem may be in the Workbooks.OpenText call.
Here's the params according to Microsoft:

Workbooks.OpenText(Filename, Origin, StartRow, DataType, TextQualifier,
ConsecutiveDelimiter, Tab, Semicolon, Comma, Space, Other, OtherChar,
FieldInfo, TextVisualLayout, DecimalSeparator, ThousandsSeparator,
TrailingMinusNumbers, Local)

Here's how your current parameters map to this:

   FileName  -- sInPath
   Origin  -- (empty)
   StartRow  -- (empty)
   DataType  -- (empty)
   TextQualifier -- xlTextQualifierNone
   ConsecutiiveDelimiter  -- (empty)
   Tab  -- (empty)
   Semicolon  -- True
   Comma  -- (empty)
   Space  -- (empty)
   Other  -- (empty)
   OtherChar  -- (empty)
   FieldInfo -- Array(Array(1, 2), Array(2,2), Array(3,2), Array(4,2),
  Array(5,2),Array(6,1), Array(7,1), Array(8,1),
  Array(9,1), Array(10,1), Array(11,1), Array(12,2))
   TextVisualLayout  -- (empty)
   DecimalSeparator  -- (empty)
   ThousandsSeparator  -- (empty)
   TrailingMinusNumber  -- (empty)
   Local  -- (empty)

Notice that the DataType parameter is empty. If you do it this way, Excel
is left to try and figure out the column format (and it ignores your True
in Semicolon, but apparently up until now was able to figure things out
properly). 

Try passing xlDelimited in the DataType parameter, which will tell Excel
that the data is definitely delimited, and force it to look at the
Semicolon parameter to tell it that it's semicolon-delimited.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Getting a Rev App to have an icon on the Apple Menu bar

2009-07-20 Thread Ken Ray

 How does one get and icon for one's application to appear on the Menu
 Bar of OS X?

Actually, I wrote a little how to guide on this... they're called
StatusItem Menus BTW:

http://www.sonsothunder.com/devres/revolution/tutorials/StatusMenu.html

It describes how to use Xcode to create one, and how to have the item you
select call AppleScript that can either communicate with your Rev app
directly, or you could use AppleScript to write out data to file(s) that
your app polls for.

Either way, hope this helps...



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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


Escaping slashes in Windows for menus?

2009-07-05 Thread Ken Ray
Up until 3.5 (I think), if you had a popup menu or option menu and you
wanted to display a / in it, you had to escape it with a preceding \,
but only on Macs. This was (I assume) to differentiate it from a / that
preceded an accelerator key.

So for example, I have a status popup that lists IN, IN/LW, OUT, OUT/LW,
etc., and to make it appear properly on Macs, I had to do IN, IN\/LW, OUT,
OUT\LW, etc. but I didn't have to do it on Windows.

Now I'm seeing this same need on Windows, but only while running the 3.5
engine... is this intentional (in which case I'll change the underlying
code) or a bug?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Hiding an app under Windows

2009-07-04 Thread Ken Ray
 On Wed, Jul 1, 2009 at 12:48 PM, Ken Rayk...@sonsothunder.com wrote:
 On the Mac, I use AppleScript to hide an application when I need to.
 Is there a way to do this under Windows.
 
 Is this a Rev app you're trying to hide, or someone else's 3rd party app?
 
 It's actually iTunes. I have written a music recognition quiz app for
 my son that uses iTunes. His friends want it on Windows, but iTunes
 has to be hidden or they can see what music is playing and cheat, so I
 have to be able to make it disappear.

OK, so it sounds like you could have it minimized instead of hidden and that
would work, right? If so, this VB Script will work (although since it uses
Wscript.Shell, you can't run it with do as VBScript, but instead need to
write it to a .vbs file and execute the file):

' Assumes iTunes is already open
Set Shell = CreateObject(Wscript.Shell)
Shell.AppActivate iTunes
Shell.SendKeys % n

(BTW: that's a space between the '%' and the 'n')

HTH,


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Hiding an app under Windows

2009-06-30 Thread Ken Ray
 On the Mac, I use AppleScript to hide an application when I need to.
 Is there a way to do this under Windows.

Is this a Rev app you're trying to hide, or someone else's 3rd party app?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: 4.0 Webinar Invite - Its Today!

2009-06-23 Thread Ken Ray
I'm connected, but Bill's voice sounds like Alvin and the Chipmunks!

:-(



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: 4.0 Webinar Invite - Its Today!

2009-06-23 Thread Ken Ray


 On Jun 23, 2009, at 2:06 PM, Ken Ray wrote:
 
 I'm connected, but Bill's voice sounds like Alvin and the Chipmunks!
 
 He typed a note to say to use speakers and not a USB headset, though
 my one is working fine.

Yeah, discovered that one a few minutes go... :-)



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Hide Screen Furniture

2009-06-22 Thread Ken Ray

 On Mac OS systems, the systemWindow property has no effect.
 
   
 Blast!
 
 My initial posting largely referred to Linux and Windows faux docks
 (obviously, even if nothing else, the Dock.app in Mac OS is something
 that everyone wants to imitate).

Be careful here... when the docs say Mac OS, they mean OS 9 and earlier
(Classic). SystemWindow works perfectly fine in OS X...


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Weather reporting in Rev

2009-06-16 Thread Ken Ray
 Anyone have any ideas on how to import (from a web site) a simple
 text-based weather report for the current day into a Rev application
 based on zip code?

I'd probably use screen scraping techniques; for example, my zip code is
54701, so I go to weather.com and enter my zip. That takes me to a page
which is this URL:

http://www.weather.com/weather/local/54701?lswe=54701lwsa=WeatherLocalUndec
laredfrom=searchbox_localwx

I can then use put url url into variable and then I have all the HTML
code for that page in a variable:

  put  http://www.weather.com/weather/local/54701?lswe=54701;  \
 lwsa=WeatherLocalUndeclaredfrom=searchbox_localwx into tURL
  put url tURL into tHTML

Then you can parse the HTML looking for the tags that surround the temp,
wind speed, etc. 

Of course if Weather.com ever changes their format you'd have to change
yours as well, but it's a good starting point.

If this is for something commercial, better yet would be to subscribe to an
XML feed that would be in a consistent format.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: TextWrangler

2009-06-15 Thread Ken Ray
 Although enough time has passed now that it could probably be renamed if
 someone wants to suggest something.

 SoTeX :)

:-D 

Although it sounds like some kind of protective fabric... ;-)


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: experience with VBScript on Vista needed

2009-06-14 Thread Ken Ray

 Hi Ken,
 
 After you gave this answer to Tiemo about a week or so ago, I decided to
 play with running some vbscript out of rev 2.9+. The only thing I get is
 execution error. I tried your above script and get the error and then
 reduced it down to two hard coded lines:
 
 put format(set WshShell = WScript.CreateObject(\WScript.Shell\)) into
 tVBS
 put tVBS  CR  format(WshShell.AppActivate \Internet Explorer\)) into
 tVBS
 do tVBS as VBScript
 
 I tried CRLF instead of CR (thinking maybe it was a line ending issue), put
 one at the end of the second line, etc. No matter what I do I get the
 execution error. IE is running and, of course, clicking on a file with these
 same two lines and .vbs extension runs without error and brings IE to front.
 
 
 What's the trick? ;-) Testing on Vista.

Hmm... it turns out that there must be something related to working with the
WshShell that isn't supported *inside* Rev for the do as command. You'll
have to use the older (pre-2.9) version of the script instead (which *does*
work, althought there's a slight pause as it has to write out the file and
execute it first).

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: TextWrangler

2009-06-14 Thread Ken Ray
 http://sonsothunder.com/devres/revolution/downloads.htm
 
 Quirky name but I assume it stands for Sons of Thunder Software / MindLube
 games eXternal Editor.

Right; it was originally MLXEditor, but Alex Rice had stopped doing anything
with Rev and it kind of laid dormant. I spoke with him and asked if I could
revive it and add to it and he gave me the green light. But I felt I should
keep the MLXEditor in the name...

Although enough time has passed now that it could probably be renamed if
someone wants to suggest something.

:-)

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: TextWrangler

2009-06-14 Thread Ken Ray
 Which will direct you to the talented Trevor DeVore's Blue Mango website and
 his excellent Language Module:
 
 http://mangomultimedia.com/developer/revolution/
 
 Can't say enough thanks to Trevor for producing it and updating it when
 necessary.

There's also a direct download link for this module as well as modules that
link to TextMate, SubEthaEdit, and UltraEdit-32 at the STS/MLXEditor page:

http://www.sonsothunder.com/devres/revolution/downloads/stsMLXEditor.htm

Enjoy!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: experience with VBScript on Vista needed

2009-06-02 Thread Ken Ray

Hey, Tiemo... 

 My questions are not going to my code, but to some principles with calling
 the shell wscript.exe

Are you using Rev 2.9 or later? If so, you don't need to call the shell()
command for VBScript; you can do script as VBScript.

 1.  I tried to catch any error from the get shell() command with the
 result, the syserror, try -catch, but got never any error back from the
 shell, even if I have a wrong syntax in the VB, where the VB fails, the rev
 doesn't gets noticed. Which is the correct way to catch an error from a
 VBScript on the shell?

It should come back from the shell command. Here's an (old) example of
activating an application and trapping the result:

on VBS_AppActivate pTitle
  put format(set WshShell = WScript.CreateObject(\WScript.Shell\)) into
tVBS
  put tVBS  cr  WshShell.AppActivate  quote  pTitle  quote into tVBS
  put C:\vbs_temp.vbs into tVBSPath
  put tVBS into url (file:  tVBSPath)
  set the hideConsoleWindows to true
  get shell(cscript.exe //nologo  tVBSPath)
  put it into tResult
  if there is a file tVBSPath then
send delete file  quote  tVBSPath  quote to me in 1 second
  end if
  if tResult   then return Error:   tResult
end VBS_AppActivate

Here's how it would be done in Rev 2.9+:

on VBS_AppActivate pTitle
  put format(set WshShell = WScript.CreateObject(\WScript.Shell\)) into
tVBS
  put tVBS  cr  WshShell.AppActivate  quote  pTitle  quote into tVBS
  put tVBS  cr  result = Err.number into tVBS
  do tVBS as VBScript
  put the result into tResult
  if there is a file tVBSPath then
send delete file  quote  tVBSPath  quote to me in 1 second
  end if
  if tResult   then return Error:   tResult
end VBS_AppActivate


 2. Do I have to return explicity any error from the script back to rev, or
 will they passed to rev anyway? If yes, how and where?

See above...

 4. Are there any experiences of windows installations without the scripting
 host? Perhaps the Home edition? If yes, how to check for that?

Well, according to my informaton, some form of Windows Script Host has been
included on all versions of Windows since Windows 98. You should check to
make sure that the VBScript you're calling is supported in the various
versions of Windows you need to support.

 5. If every Vista version should have the windows scripting host, can it
 somehow be deactivated, so that my updater runs without result? If yes, how?

Not AFAIK. 

 6. If the user clicks cancel while Vista is asking to allow this process,
 how can I get aware of this cancel in my rev app? Is there a chance to
 catch a cancel down from Vista level in my rev app?

I don't know, but I'd assume that the request happens *before* the script is
actually run, so you'd need to find a way to determine if your VBScript runs
or not. One way to do this might be for your Rev app to create a file and
have the VBScript change its contents or delete it. That way you could
detect after the script has run if the original file was still
there/unchanged. If so, the VBScript didn't run.

 7. Are you aware of any other VBScript gotchas?

Yes - Some anti-virus software will bring up an alert dialog to the user
letting them know of a potential malicious activity if you try to
manipulate the file system with VBScript (basically any use of the
FileSystemObject), so that may make #6 above even more difficult.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Stykz

2009-05-31 Thread Ken Ray
 For example, on quitting you're  asked if you want to save.

That's probably because the default document that opened was dirty when you
quit (if you *didn't* do anything and it still asked you to save, let me
know and I'll fix that).

 In all applications out there, command-D is
 the same as clicking the Don't Save button, but in Stykz it duplicates
 the selected item on the stage.

Good catch! I'll get that fixed right away.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Stykz

2009-05-31 Thread Ken Ray

 Fantastic!

Thanks, Richmond (and Mark, and  ...  :-) ! I'm just getting ready to
release 1.0 in a week or so, but the response to the public betas have been
fantastic. There have been many thousands of downloads and it's been a real
eye-opener (development-wise) that I'll write a report on when I'm done.

;-)

Although it will be released with the 3.5 engine, it was developed using
3.0, so there are no behaviors implemented yet. But when I update it I'll be
switching over to use behaviors and I can't wait to get started!

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Stykz

2009-05-31 Thread Ken Ray

 For example, on quitting you're  asked if you want to save.
 
 That's probably because the default document that opened was dirty
 when you
 quit (if you *didn't* do anything and it still asked you to save,
 let me
 know and I'll fix that).
 
 
 I wasn't commenting on the Save part, that is correct. I was just
 setting the scene, so you knew which Don't Save I was referring to.

Whoops! Sorry about that...

:-)

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Text variable problem

2009-05-24 Thread Ken Ray
 
 I've used put to write the 17th element, ,, g_reg, and another comma, and
 the output was
  Texas,Texas, so it looks like 17th element and g_reg are the same. Is this
 proving the same thing you suggested?

Not exactly; if you have anywhitespace before the 17th element you won't see
it... try writing out a , before the 17th element and see if you have
anything. The other way is to put length(the 17th element) and
length(g_reg) and see if the two lengths are the same.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: [ANN] InfoWallet 1.0

2009-05-22 Thread Ken Ray
 I'm happy to finally announce the release of InfoWallet 1.0.
 
 http://www.infowallet.com

Sorry if I'm late to the party, but I want to chime in as well...

Congrats, Bill! I know how much effort you've put into this, and it looks
like it paid off!


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Vista folder path

2009-05-22 Thread Ken Ray



On 5/22/09 10:41 AM, Lars Brehmer larsbreh...@mac.com wrote:

 I'm just now trying to get an old project working in Vista, and need
 to deposit a folder in the equivalent of the Application Data folder
 in XP. What must I add to the following? I know absolutely nothing
 about Visa, so I don't even know if there is an Application Data
 folder like the one in XP or where it is, and if there isn't one,
 where should this folder go (complete file path and specialFolderPath,
 if there is one.)
 
 if word 1 of the systemversion = NT then
put specialFolderPath(35) into fPath
  else
put specialfolderpath(system) into fPath
  end if

Here's the full info:

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

Scroll to the bottom and all the Vista folder paths are there.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: How to prevent a stack from loading twice (in Linux)

2009-05-22 Thread Ken Ray
 How to do this?  I have tried to use onreloadStack, just trapping it in the
 stack script, but this seems to do nothing.  Even if the command is to
 close the stack on reloadStack, it opens anyway.
 
 The other one would be relaunch, but it seems to be Win only.
 
 There was a thread and -- was it Richard Gaskin? someone talked about how
 he always did this in the preliminaries to his stack opening.  Can't seem
 to find it.

Sorry, Peter, but I'm not 100% sure what you're trying to do... are you
trying to open a stack with open stack and it's opening twice? Or are you
talking about the mainstack of a standalone... ? or something else?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: New groups bugaBoo

2009-05-22 Thread Ken Ray
 
 Yeah, apparently referencing the last group is still not reliable.  If you
 need to use this approach in your scripts, one option is to name the
 templateGroup, rather than using last, as mentioned here:
 
 http://www.nabble.com/Re%3A-am-I-right-with-select-and-group--p10972065.html

If you can create the group *first* before moving the objects into the
group, you can get the long id right after creation:

on mouseUp
   create group Test
   put it into tLongIDOfGroupIJustCreated
end mouseUp

But if you're trying to group selected objects, that doesn't work because
nothing comes back in it (or the result for that matter). Personally I
think the group command should return the long id of the group that was
created in the result...

The other way to do what you want is to trap the newGroup message either
in a frontscript or somewhere in the hierarchy that makes sense. Set a
property or global you can check and then move on. Something like:

stack script
global gLastGroupID

on newGroup
  put the long id of the targte into gLastGroupID
  pass newGroup
end newGroup


button script
global gLastGroupID

on mouseUp
  group grc 1 and grc 2 and grp B
  put gLastGroupID into tGroupID
  -- continue on using tGroupID
end mouseUp

NOTE: Make sure you PASS the newGroup message; I had Rev freeze on me if it
wasn't passed...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: What is the platform on Win64?

2009-05-21 Thread Ken Ray



On 5/21/09 10:06 AM, Richard Gaskin ambassa...@fourthworld.com wrote:

 The Dictionary lists these values for the platform:
 
 MacOS   any Mac OS, OS X, or Darwin system
 Linux   Linux for Intel or PowerPC architecture
 BSD BSD UNIX (BSDI, FreeBSD)
 HP-9000/700 HP-UX
 SGI IRISSilicon Graphics IRIX
 IBM RS/6000 AIX
 Intel SCO   SCO Open DeskTop
 Intel SVR4  Solaris for x86 architecture
 SPARC   SPARC SunOS
 SPARC Solaris   SPARC Solaris
 Win32   Windows (any version post-3.1)
 
 What does the platform return on 64-bit Windows systems?

Win32

Although I'm sure there should be some way to determine you're on a 64-bit
system... 

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: arrays

2009-05-21 Thread Ken Ray

 The filter command is one of those things that you can stare at for
 a while, but it doesn't really click until you have a use for it. Then
 whole new worlds open up.

On major caveat on filter though, and that is that the closer to the left
edge of a line the filter is acting on (or the less complex the filter), the
faster it will run.

For example, let's say you have 2000 lines of data that's formatted into 10
columns (tab-separated). If you want to search for the string test in the
first column, the filter is something like:

*test*

If you want to look to see if it's in the second column, it would be:

.*  tab  *test*

and the third column would be:

.*  tab  .*  tab  *test*

etc.

Using this approach, filtering in column 10 is WAY slower than filtering in
column 1.

Anyway, just wanted to bring up that filter can be really fast, but when it
gets slow you'll want to pick another method.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: What is the platform on Win64?

2009-05-21 Thread Ken Ray


 Win32
 
 Although I'm sure there should be some way to determine you're on a 64-bit
 system... 

Actually I think it's a combination of problems. The platform shouldn't
include the processor speed; it should just be Windows. But the
processor needs to be fixed so it doesn't return x86 when running in a
64-bit system (which it does now).

So my recommendation would be to add Windows as a platform that is the
same as Win32 and deprecate Win32, and then fix the processor to
return a proper processor value for 64-bit processors.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: App on Linux - really slow... any ideas why?

2009-05-10 Thread Ken Ray
 It will be interesting to use the app and see what's happening.

I'm starting to track this down a bit... today when I launched the program,
it didn't get all the way through it's load process, but got all the windows
up. When I switched between windows, it was pretty fast. Once I got the bug
fixed and it managed to load properly, it was slow again. It now looks like
there's definitely something in the code I'm using because when I have the
System Monitor running I see the CPU at about 5%, but when I click on the
main stage window where there's a default stick figure drawn, it cranks up
to 100% CPU for a few seconds, so there's something going on during the
resumeStack sequence on this stack that's cranking the CPU way high.

Now that I have a clue, I don't think I need to send you a copy Peter
(unless you really want one)... if so, let me know.

In any event, I'll keep everyone posted,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: App on Linux - really slow... any ideas why?

2009-05-09 Thread Ken Ray

 OK, loaded Puppy 4.2, with the copy to memory option and using Xorg not VESA.
 
 Ran the IDE 3.5, and it seemed fine.  Fired up a few stacks and they were
 fine, positively snappy.

I couldn't even get *that* far... I'm using 4.2, and Xorg (not sure if I
have copy to memory on - where would I check?) and downloaded Rev 3.5. Went
to launch it and nothing happened. When I tried to launch it in from the
console I got all sorts of GDK error messages, starting with Unable to get
32-bit visual, not using XFT. Not sure what to do about that...

 Does anyone have a seriously display intensive stack they can post
 somewhere?  It would be nice to have one that definitely does show the
 problem.  Or, Ken, if you want to mail me a compiled version of yours that
 is causing the problem, I'd be happy to see if I can reproduce and/or do
 something to eliminate it.

Sure, I can send it to you; I'll do that so you can see what I'm seeing
(hopefully).

 It occurs to me that it might be worth trying Slitaz, a true minimalist
 distro, 30MB or so.  If the problemstill happens with Slitaz, its really at
 a basic level with Linux rather than some dispensable extra bit.

OK, I'll try that when I get a chance.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: App on Linux - really slow... any ideas why?

2009-05-09 Thread Ken Ray



On 5/9/09 5:03 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Ken-
 
 Saturday, May 9, 2009, 2:10:04 PM, you wrote:
 
 I couldn't even get *that* far... I'm using 4.2, and Xorg (not sure if I
 have copy to memory on - where would I check?) and downloaded Rev 3.5. Went
 to launch it and nothing happened. When I tried to launch it in from the
 console I got all sorts of GDK error messages, starting with Unable to get
 32-bit visual, not using XFT. Not sure what to do about that...
 
 Anything like BZ #5382?

No, thse are all related to colormaps and screen updating, like:

(unknown:8601): Gtk-CRITICAL **: gdk_colormap_new: assertion
`GDK_IS_VISUAL (visual) failed


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: Getting the name for a Windows Users 'home'

2009-05-08 Thread Ken Ray
 Thanks to all for the advice about Mac Users/home.
 The short version was successful:
 /Users/~/Library/Fonts
 
 I now need to delete files from Windows Users/home.
 Is there an equivalent short version path for Windows or is
 'specialFolderPath' used to get this?
 If so, how may I use it?
 
 On VISTA for examplethe path appears to be:
 C:\Users\\AppData\Roaming\Microsoft\Start Menu\ Programs
 \MyFileToBeDeleted
 
 Is the specialFolderPath uses differently in XP and Vista?
 Any clues would be a great help,

As Sarah mentioned below, check out this reference:

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



Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: App on Linux - really slow... any ideas why?

2009-05-07 Thread Ken Ray
 ok, it should be very easy to test this.  Boot Puppy and pick the VESA
 option.  Won't that tell you at least if its down to Xorg?

I DL'ed puppy, but I can't get Rev to run in it - it looks like it's
launching but never does; what do I need to do?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: App on Linux - really slow... any ideas why?

2009-05-07 Thread Ken Ray
 Could be a CPU architecture problem? Any info in the logs?

Which logs are you talking about - where would I look?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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: App on Linux - really slow... any ideas why?

2009-05-07 Thread Ken Ray
OK, I was able to test under Mandriva Live One 2009 running KDE 4.04, and
the performance was a little better, but still *very* slow.

For example, in Stykz you can click on a node (or handle) to one of the
segments of a stick figure to pivot it around the point on the other side of
the segment. If I mouseDown on the node, and then drag upwards, Windows and
OS X follow immediately. Under Ubuntu 8.04 it took a good 5 seconds before
the line segment started moving; Mandriva took about 3 seconds. But that is
still way too slow for any user to use, and other than the redrawing of the
line, everything else was done in code with no additional display elements
or anything else going on.

I'm going to try and get a higher end machine to test on and see how much
the hardward mitigates the problem, and I'll report back.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
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


  1   2   3   4   5   6   7   8   9   10   >