convert [*] to the n with tab

2005-08-29 Thread rev
Hi All.

I have a field with text items separated with charachters bounded by multiples
of [*].

eg
[0][0][9]item1[0][0][0][6]item2[0]item3

I would like the separator items [*] or [*][*] or [*][*][*] etc to be replaced
with a single tab.
I thought of this script

on mouseUp
  put "preparsed" into p -- insert your field name here
  put empty into v
  repeat with x = 1 to the number of lines of fld p
  --put empty into v
  get line x of fld p
replace [*] with \
end repeat
end mouseUp

However I keep getting the error

compiling at 9:18:04 AM
TypeExpression: bad factor
Object  convert [*]n to tab delimiter
Linereplace [*] with \
Hint[

Any ideas. Is it the case that I cant use [ as a charachter? It was inserted OK.

All the best
Bob

___
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: Emergency Mouse Polling Help

2005-08-29 Thread xbury . cs
Hi Jonathan

the only way i can see this work is via a macro-recorder program that 
sends an event to rev... 

I dont see how else... 

-=-
Xavier 

[EMAIL PROTECTED] wrote on 27/08/2005 06:47:33:

> I need to know if I can use Rev to develop a background app on Windows, 
> that determines and launches an event if a key is depressed, I know how 
> to do this in a standard app, but not in the background...
> 
> Thanks,
> 
> Jonathan
> [EMAIL PROTECTED]
> 
> ___
> 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



-
Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
___
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: convert [*] to the n with tab

2005-08-29 Thread rev

Quoting [EMAIL PROTECTED]:


Hi All.

I have a field with text items separated with charachters bounded by 
multiples

of [*].

eg
[0][0][9]item1[0][0][0][6]item2[0]item3

I would like the separator items [*] or [*][*] or [*][*][*] etc to be 
replaced

with a single tab.
I thought of this script

on mouseUp
 put "preparsed" into p -- insert your field name here
 put empty into v
 repeat with x = 1 to the number of lines of fld p
 --put empty into v
 get line x of fld p
replace [*] with \
end repeat
end mouseUp

However I keep getting the error

compiling at 9:18:04 AM
TypeExpression: bad factor
Object  convert [*]n to tab delimiter
Linereplace [*] with \
Hint[

Any ideas. Is it the case that I cant use [ as a charachter? It was 
inserted OK.


I also  tried

on mouseUp
 put "preparsed" into p -- insert your field name here
 repeat with x = 1 to the number of lines of fld p
 get line x of fld p
replace "[*]" with "\" in
end repeat
put it into field "withtabs"
end mouseUp

And tried
on mouseUp
 put "preparsed" into p -- insert your field name here

replace "[*]" with "\" in fld p

put fld p into field "withtabs"
end mouseUp

No Luck.

Cheers
Bob


All the best
Bob

___
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


Makeover for the revolution-education wiki

2005-08-29 Thread Marielle Lange

Dear all,

At least, I found the time to do what I was craving for months:  
create a personalized look-and-feel for the revolution-education wiki:


http://revolution.lexicall.org/wiki/

The goal was to make it less crowded and easier to read. Let me know  
what you think. Please also let me know if the change created any  
problem on the platform and browser you use.


As there are differences between male and female preferences, know  
that you can easily switch back to the old design or any of the  
default designs coming with tikiwiki. For this, login with your  
username, select Preferences in the top bar (on the left of mytiki),  
and choose the style sheet that you prefer (the previous one was  
moreneat.css).


To choose the color theme, I used this color schemer tool on the web:
http://wellstyled.com/tools/colorscheme2/index-en.html
It builds a palette of harmonious colours based on a first colour  
given. It also let you check how your color scheme looks to persons  
with color blindness. The javascript is in the document's source...  
worth considering creating a similar application in revolution.


Marielle

 
--
Marielle Lange (PhD),  Psycholinguistics, Lecturer in Psychology and  
Informatics

University of Edinburgh, UK

Homepage:  http://homepages.inf.ed.ac.uk/mlange/
Lexicall project: http://lexicall.org
Revolution-education project: http://revolution.lexicall.org

___
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: convert [*] to the n with tab

2005-08-29 Thread Mark Smith
I suspect you're going to need the replaceText function. It uses regex, 
which I'm afraid I can't help with. But someone here can and will, I'm 
sure...


Mark

On 29 Aug 2005, at 09:45, [EMAIL PROTECTED] wrote:


Quoting [EMAIL PROTECTED]:


Hi All.

I have a field with text items separated with charachters bounded by 
multiples

of [*].

eg
[0][0][9]item1[0][0][0][6]item2[0]item3

I would like the separator items [*] or [*][*] or [*][*][*] etc to be 
replaced

with a single tab.
I thought of this script

on mouseUp
 put "preparsed" into p -- insert your field name here
 put empty into v
 repeat with x = 1 to the number of lines of fld p
 --put empty into v
 get line x of fld p
replace [*] with \
end repeat
end mouseUp

However I keep getting the error

compiling at 9:18:04 AM
TypeExpression: bad factor
Object  convert [*]n to tab delimiter
Linereplace [*] with \
Hint[

Any ideas. Is it the case that I cant use [ as a charachter? It was 
inserted OK.


I also  tried

on mouseUp
 put "preparsed" into p -- insert your field name here
 repeat with x = 1 to the number of lines of fld p
 get line x of fld p
replace "[*]" with "\" in
end repeat
put it into field "withtabs"
end mouseUp

And tried
on mouseUp
 put "preparsed" into p -- insert your field name here

replace "[*]" with "\" in fld p

put fld p into field "withtabs"
end mouseUp

No Luck.

Cheers
Bob


All the best
Bob

___
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: convert [*] to the n with tab

2005-08-29 Thread rev

Quoting Mark Smith <[EMAIL PROTECTED]>:

I suspect you're going to need the replaceText function. It uses 
regex, which I'm afraid I can't help with. But someone here can and 
will, I'm sure...


Yep I eventiually tried that too. I even made it simple and tried it on the
original field.

I used (without any luck)
on mouseUp
replaceText(field "preparsed",[0],comma)
end mouseUp

I get an error at [

cheers
bob




Mark

On 29 Aug 2005, at 09:45, [EMAIL PROTECTED] wrote:


Quoting [EMAIL PROTECTED]:


Hi All.

I have a field with text items separated with charachters bounded 
by multiples

of [*].

eg
[0][0][9]item1[0][0][0][6]item2[0]item3

I would like the separator items [*] or [*][*] or [*][*][*] etc to 
be replaced

with a single tab.
I thought of this script

on mouseUp
 put "preparsed" into p -- insert your field name here
 put empty into v
 repeat with x = 1 to the number of lines of fld p
 --put empty into v
 get line x of fld p
replace [*] with \
end repeat
end mouseUp

However I keep getting the error

compiling at 9:18:04 AM
TypeExpression: bad factor
Object  convert [*]n to tab delimiter
Linereplace [*] with \
Hint[

Any ideas. Is it the case that I cant use [ as a charachter? It was 
inserted OK.


I also  tried

on mouseUp
 put "preparsed" into p -- insert your field name here
 repeat with x = 1 to the number of lines of fld p
 get line x of fld p
replace "[*]" with "\" in
end repeat
put it into field "withtabs"
end mouseUp

And tried
on mouseUp
 put "preparsed" into p -- insert your field name here

replace "[*]" with "\" in fld p

put fld p into field "withtabs"
end mouseUp

No Luck.

Cheers
Bob


All the best
Bob

___
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





___
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: convert [*] to the n with tab

2005-08-29 Thread Eric Chatonet

Hi Bob,

1. You have to enclose a text string with quotes
2. Square brackets have a special meaning in RegEx: you have to  
specify them preceded by a anti-slash to get them handled literally.


So, you could try:

put replaceText(field "preparsed","\[0\]",comma) into...

Le 29 août 05 à 11:48, [EMAIL PROTECTED] a écrit :


I used (without any luck)
on mouseUp
replaceText(field "preparsed",[0],comma)
end mouseUp

I get an error at [



Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: libdatabase : connection problem

2005-08-29 Thread Alex Tweedly

Dan Shafer wrote:

Off-hand I spotted a couple of potential problem spots (haven't spent  
a lot of time analyzing whether these are the only problems):


On Aug 28, 2005, at 2:46 AM, Revolution wrote:


Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)

event from button :

  local tDbA = ""
  local i = 0
  local tDataA = ""


The above lines are doing nothing for you because they are incorrect  
syntax for Revolution. The expression "i = 0" evaluates to either  
true or valse but does nothing with the result. IF what you intend to  
do here is to initialize local variables, then you need the slightly  
more verbose:


Sorry, Dan, but the above *is* correct syntax, and does do what you'd 
expect.


From the docs:


Declares one or more local variables and assigns initial values to them.

local variablesList

local currentStatus -- creates one local variable
local thisThing,thatThing,theOtherThing -- creates three variables
local A=1,B=2,C=3 -- creates variables with initial values


and


Description
Use the local command to define a local variable for a handler, or to 
define a script local variable that is shared between all the handlers 
in a script.


Parameters:
The variablesList consists of one or more name=value pairs, separated 
by commas:

* The name is any string.
* The value is any literal string.
The value is optional; you can specify just the variable name. In this 
case, the specified local variables contain empty when created.



[end of docs quotation]

Dan said:

Having said that, it is strictly optional in Transcript to use the  
word "local" and I'd venture to say that the vast majority of us  
never use it. Variables are local unless they're explicitly defined  
to be global. In that case, you eliminate the three "local" lines in  
the above and just assign the initialization values to the variables  
with the same effect.


I use it often - mostly because my typing is bad and I often mistype 
variable names - therefore I always use explicitVariables to help detect 
my typos - and therefore need to use "local", but also I use it to 
initialize locals as above. (And you can use the initialization form to 
assign values to script-local variables too).


--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005

___
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


Bring To Front

2005-08-29 Thread Todd Geist
Hello Everyone,

Is there a way to bring a Rev Application to the front?  I am sending some
commands to my app over TCPIP and I would like to have it come to the front
when it process those commands.

Any ideas

TIA

Todd

-- 

Todd Geist
__
G e i s t   i n t e r a c t i v e 


___
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: convert [*] to the n with tab

2005-08-29 Thread Marielle Lange

Dear Bob,

This is a job for regular expressions:

put "[0][0][9]item1[0][0][0][6]item2[0]item3" into tstr
put replacetext(tstr, "(\[[0-9]\])+", tab)
get you: item1item2item3

[0-9] Means any number between 0-9
\[ and \[ Because [ and ] are characters used to define options  
(as the above shows), you need to escape it

(something)+  One or more of the same thing.

If you can have any number of digits in between square brackets, then  
use

[0-9]+

Best,
Marielle

___
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: Convert ColorNames to RGB

2005-08-29 Thread david bovill
There is no way that i know of. You can script this on the fly if you  
want by seeting the color of some invisible or offscreen object and  
then putting the color of the object back into a variable.


The other way around is harder - you have to script / use a lookup  
table.



___
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: convert [*] to the n with tab

2005-08-29 Thread rev

Quoting Eric Chatonet <[EMAIL PROTECTED]>:


Hi Bob,


Hi Eric

One again you have saved the day. I ended up with

on mouseUp
put replaceText(field "preparsed","\[3\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[1\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[2\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[4\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[5\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[6\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[7\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[8\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[9\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[0\]\[0\]\[0\]\[0\]","[0]")into field
"withtabs"
put replaceText(field "withtabs","\[0\]\[0\]\[0\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[0\]\[0\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[0\]",tab)into field "withtabs"
end mouseUp

Now works perfect

This replaces all the non-[0] with [0] and then changes multiples of 
[0] to one

single [0]. Then changes them to tab.

Cheers
Bob



___
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


CamelCase

2005-08-29 Thread david bovill
What's the quickest way to find all the CamelCase words in some text  
- anyone have a regular expression or script for this?

___
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: convert [*] to the n with tab

2005-08-29 Thread Eric Chatonet

Hi Bob,

Thanks.
But I'm not a regex specialist: did you see Marielle's answer who is  
far better than mine?



put "[0][0][9]item1[0][0][0][6]item2[0]item3" into tstr
put replacetext(tstr, "(\[[0-9]\])+", tab)
get you: item1item2item3

[0-9] Means any number between 0-9
\[ and \[ Because [ and ] are characters used to define options  
(as the above shows), you need to escape it

(something)+  One or more of the same thing.

If you can have any number of digits in between square brackets,  
then use

[0-9]+



Le 29 août 05 à 13:04, [EMAIL PROTECTED] a écrit :


Quoting Eric Chatonet <[EMAIL PROTECTED]>:



Hi Bob,



Hi Eric

One again you have saved the day. I ended up with

on mouseUp
put replaceText(field "preparsed","\[3\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[1\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[2\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[4\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[5\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[6\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[7\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[8\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[9\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[0\]\[0\]\[0\]\[0\]","[0]")into  
field

"withtabs"
put replaceText(field "withtabs","\[0\]\[0\]\[0\]","[0]")into field  
"withtabs"
put replaceText(field "withtabs","\[0\]\[0\]","[0]")into field  
"withtabs"

put replaceText(field "withtabs","\[0\]",tab)into field "withtabs"
end mouseUp

Now works perfect

This replaces all the non-[0] with [0] and then changes multiples  
of [0] to one

single [0]. Then changes them to tab.

Cheers
Bob






Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: convert [*] to the n with tab

2005-08-29 Thread rev

Quoting Eric Chatonet <[EMAIL PROTECTED]>:


Hi Bob,


Hi Eric and Marielle

Well this just highlights the beauty of runrev.

Get a load of this..
on mouseup
put "[0][0][9]item1[0][0][0][6]item2[0]item3" into tstr
put replacetext(tstr, "(\[[0-9]+\])+", tab)
end mouseup

WOW WOW WOW :-)

Works perfectly

Cheers
Bob; Sunny Glasgow



Thanks.
But I'm not a regex specialist: did you see Marielle's answer who is
far better than mine?


put "[0][0][9]item1[0][0][0][6]item2[0]item3" into tstr
put replacetext(tstr, "(\[[0-9]\])+", tab)
get you: item1item2item3

[0-9] Means any number between 0-9
\[ and \[ Because [ and ] are characters used to define options
(as the above shows), you need to escape it
(something)+  One or more of the same thing.

If you can have any number of digits in between square brackets,  then use
[0-9]+



Le 29 août 05 à 13:04, [EMAIL PROTECTED] a écrit :


Quoting Eric Chatonet <[EMAIL PROTECTED]>:



Hi Bob,



Hi Eric

One again you have saved the day. I ended up with

on mouseUp
put replaceText(field "preparsed","\[3\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[1\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[2\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[4\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[5\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[6\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[7\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[8\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[9\]","[0]")into field "withtabs"
put replaceText(field "withtabs","\[0\]\[0\]\[0\]\[0\]","[0]")into  field
"withtabs"
put replaceText(field "withtabs","\[0\]\[0\]\[0\]","[0]")into field
"withtabs"
put replaceText(field "withtabs","\[0\]\[0\]","[0]")into field  "withtabs"
put replaceText(field "withtabs","\[0\]",tab)into field "withtabs"
end mouseUp

Now works perfect

This replaces all the non-[0] with [0] and then changes multiples
of [0] to one
single [0]. Then changes them to tab.

Cheers
Bob






Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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


Semi OT (french members only) : experienced web + Rev developer needed

2005-08-29 Thread jbv
Hi list,

I'm posting this message in english so that none feels
ejected from the discussion, but I'm targetting french
list members ONLY.

I'm located 200 km East of Paris, so anyone (with the
required skills - see below) not too far away is welcomed.

The project I'm working on is a commercial web site using
Rev cgi, and it has become rather complex, and I'm not sure
I'll be able to meet the deadlines without help...

Skills required : Xtalk (Rev cgi), Javascrript, PHP, SQL,
CSS, DHTML, mySQL.
Browsers : IE (Mac OS9 & X, Win), FF (Mac & Win),
Safari
Estimated time : 2 to 4 weeks.

Please contact me offlist.

Thanks,
JB

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

2005-08-29 Thread Eric Chatonet

Hi David,

I use the following function.
It does not differentiate lower camelCase from upper ones (CamelCase).
As I use it to parse scripts, the text to parse is not too long and  
it's enough for my "internal" needs.

But I imagine there are faster solutions :-)
It's certainly not the quickest...

function ExtractCamelCase pText
  local tToken,tCamelCaseList
  -
  repeat for each token tToken in pText
if the number of words of tToken > 1 then next repeat
if charToNum(char 1 of tToken) < 65 or charToNum(char 1 of  
tToken) > 122 then next repeat

repeat with i = 2 to the (number of chars of tToken - 1)
  if charToNum(char i of tToken) > 64 and charToNum(char i of  
tToken) < 91 and tToken is not among the lines of tCamelCaseList then

put tToken & cr after tCamelCaseList
next repeat
  end if
end repeat
  end repeat
  delete last char of tCamelCaseList
  sort tCamelCaseList
  return tCamelCaseList
end ExtractCamelCase

Le 29 août 05 à 13:09, david bovill a écrit :

What's the quickest way to find all the CamelCase words in some  
text - anyone have a regular expression or script for this?


Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


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

2005-08-29 Thread Alex Tweedly

david bovill wrote:

What's the quickest way to find all the CamelCase words in some text  
- anyone have a regular expression or script for this?



Depends on your definition of CamelCase !!

There are lots of variations possible
  - must have leading Uppercase  (aka UpperCamelCase)
  - may not have that (lowerCamelCase, camelCase)
  - can it finish with an uppercase (e.g. EndsWithA) ?
  - lower case start, upper finish ?   (e.g. lowerA)

The simple version of a regular expression which allows all of these  is

 ([A-Z]*[a-z]+[A-Z]+[a-zA-Z]*)

i.e.
0 or more Upper,
followed by at least one lower,
followed by at least one upper,
possibly followed by any number of either 


However, if this is for variable names, then you might also want to 
allow for digits and "_" in some places - this would make the regex more 
complex. (I don't think I could dependably tell you what it would be ...)



--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005

___
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


OT--Apples Pages outputs CSS

2005-08-29 Thread Thomas McCarthy

Completely off-topic but...
I've been investigating cascading style sheets and noticed that on the surface, 
a lot of css sites resembled Pages templates. I exported a Pages file to html 
and looked at it. Sure enough it used css.

It might be a good way to start using css. I haven't checked KeyNote, yet.
FWIW
tom

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
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: Semi OT (french members only) : experienced web + Rev developer needed

2005-08-29 Thread Dom
jbv <[EMAIL PROTECTED]> wrote:

> I'm posting this message in english so that none feels
> ejected from the discussion, but I'm targetting french
> list members ONLY.

Salut !
j'ai fait suivre sur la liste francophone, où se trouvent sans doute des
clients potentiels ;->

-- 
Revolutionario
mailto:[EMAIL PROTECTED]

___
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: Spell Checker

2005-08-29 Thread Lynch, Jonathan
It is incorporated into something which I cannot share.

However - the scrip is relatively simple. I can put something together
that I can share.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Sivakatirswami
Sent: Saturday, August 27, 2005 5:48 PM
To: How to use Revolution
Subject: Re: Spell Checker

Jonathan:

Can you share your spell checker with us? or is this proprietary?  
(put it on line somewhere or send to me off list?)

I don't care if it is not polished in terms of the UI, as long the  
basic algorithms and scripts are accessible, I can put it to work..

basically I have a single field I am checking and would like to get

a) mis-spelled words flagged in that field
b) a suggestion list--(very basic, that segment of the alphabet would  
do... right, I know... not very smart and all the "s's" could be a  
long suggestion list, but my implementation will let them view two  
different suggestion lists, one the "common" English dict and two, a  
specialized words list... the latter will be short...

Sivakatirswami

On Aug 22, 2005, at 3:30 AM, Lynch, Jonathan wrote:

> Hi Derek,
>
> Just a suggestion for your spellchecker - because I have one I created
> for work and I made this change and now it moves much much faster.
>
> In one of the recent informal coding challenges, one of the rev users
> (I'm sorry, I cannot remember who it was) came up with a cool way of
> doing mass comparisons.
>
> Basically, you can load the entire word list into an array, in which
> each element of the array is named for the word, and the content of  
> each
> element is the word "true"
>
> Something like this:
>
> Repeat for each word tWord in tWordList
>   Put true into tWordArray[tWord]
> End repeat
>
> Then when you go to do the comparison for a given word, you do this
>
> If not tWordArray[tWordToCheck] then
>   -- hilite the word, or whatever
> End if
>
>
> This was much faster than checking to see if the word was contained  
> in a
> list, and is nice because it is not particularly slowed down by  
> having a
> very large word list. You might already be using this method, so my
> apologies if I am pointing out the obvious to you.
>
> Cheers,
>
> J
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Derek  
> Bump
> Sent: Thursday, August 18, 2005 8:46 PM
> To: Sivakatirswami; How to use Revolution
> Subject: Re: Spell Checker
>
> Sivakatirswami wrote:
>
>> Derek... Please ignore my post to the list... I just now see you
>>
> bailed
>
>> on that project (or were forced to...)
>>
>> But I never did get from you what you had done so far, per your memo:
>>
>> Sivakatirswami
>>
>
> Sivaktirswami,
>
> Let me first apologize for the time it has taken me to get back to  
> you.
>   My main computer's hard drive is corrupted and I spend the better  
> part
>
> of 2 days attempting to get as many files off of it as possible  
> (Mostly
> my iTunes Library).
>
> I do have a back up that is recent enough to include the Spell  
> Checker,
> but I cannot give it out at this point.  I have not forgotten about  
> you,
>
> as well as the other Revolution Developers, and I am working to get  
> the
> Spell Checker finished.  It would be a valuable tool for Revolution  
> that
>
> really should have been included a long time ago in the development
> package.
>
>
> Derek Bump
> Dreamscape Software
> ___
> Compress Images Easily with JPEGCompress
> http://www.dreamscapesoftware.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
>
> ___
> 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


Using message box

2005-08-29 Thread Bill
I have been using the message box all along like this:

Put variable

Or put "whatever"

And the result comes out in the message box. The problem with this is how do
you search for that event in a whole lot of code. You can't search for "put"

So I want to say "put whatever into messagebox" only that doesn't work. If
you ask the message box what it is called then you get stack "message box"
so what I need is either:

How do you search for a put that has no "into"

Or what is the line in the message box called so that in the future I can
name it explicitly?


___
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


OSX Style Toolbat Widget

2005-08-29 Thread Scott Kane
Hi all,

Just wondering if anybody knows of
a stack or procedure for creating
OSX toolbars.  You can do this
in RealBaisic (Yuck!) as they
have sublassed the control from
the OS.

Note it needs to be clear (not
opaque) and as easy as possible
for me as a Rev newbie.  Ten
years in Delphi has spoilt me
in terms of available widgets
and scripts that look like
MessageDlg("Hello World", mtInformation, [mbYes, mbNo),0);

That's not  a complain against transcript,
it just seems to take bigger learning curve as
we have to "unlearn" how we do things on some ways.

Scott


___
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: OSX Style Toolbat Widget

2005-08-29 Thread Mark Smith
If you mean a row of tools (icons) at the top of a window, you can just 
put a bunch of buttons there. If you mean some sort of floating 
palette, then you need to make a sub stack of your main stack, set the 
decorations as desired, and populate it with a row of buttons...


Is this what you mean?


Mark

ps. Having to type
MessageDlg("Hello World", mtInformation, [mbYes, mbNo),0);'
rather than
answer "Hello World" with "Yes" or "no"
doesn't sound like being spoilt :)

On 29 Aug 2005, at 14:58, Scott Kane wrote:


Hi all,

Just wondering if anybody knows of
a stack or procedure for creating
OSX toolbars.  You can do this
in RealBaisic (Yuck!) as they
have sublassed the control from
the OS.

Note it needs to be clear (not
opaque) and as easy as possible
for me as a Rev newbie.  Ten
years in Delphi has spoilt me
in terms of available widgets
and scripts that look like
MessageDlg("Hello World", mtInformation, [mbYes, mbNo),0);

That's not  a complain against transcript,
it just seems to take bigger learning curve as
we have to "unlearn" how we do things on some ways.

Scott


___
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: Using message box

2005-08-29 Thread Eric Chatonet

Hi Bill,

put whatever into message

From the docs:
The message box is a container as well as a window.
You can show and hide the message box, put information into it, and  
get information from it.
The two-word synonyms message window and msg window can be used only  
to show and hide the message box.
To put a value into the message box or read the value in the message  
box, use the forms message, msg, message box, and msg box.


As for searching for a put that has no "into", you have to script it.
If it can help, send me a mail off-list: I have a little stack that  
makes the job (you specify something like: find all lines of code  
where x is but y is not).
You might be interested by Chipp's altFindPut too: http:// 
www.altuit.com/webs/altuit2/altPluginDownload/Downloads.htm


Le 29 août 05 à 15:37, Bill a écrit :


I have been using the message box all along like this:

Put variable

Or put "whatever"

And the result comes out in the message box. The problem with this  
is how do
you search for that event in a whole lot of code. You can't search  
for "put"


So I want to say "put whatever into messagebox" only that doesn't  
work. If
you ask the message box what it is called then you get stack  
"message box"

so what I need is either:

How do you search for a put that has no "into"

Or what is the line in the message box called so that in the future  
I can

name it explicitly?


Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: OSX Style Toolbat Widget

2005-08-29 Thread Scott Kane
> If you mean a row of tools (icons) at the top of a window, 
> you can just 
> put a bunch of buttons there. If you mean some sort of floating 
> palette, then you need to make a sub stack of your main 
> stack, set the 
> decorations as desired, and populate it with a row of buttons...
> 
> Is this what you mean?

Yup. Except the row of buttons look nothing
like a real OSX toolbar.  If they are set
not ot highlight then they look odd.  If
set to hi-light then they look like Aqua
buttons.  I know might sound trivial to some,
but I need the proper OSX look and feel on
the toolbar.

Thanks for your reply, Mark!

Scott


___
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: OSX Style Toolbat Widget

2005-08-29 Thread Mark Smith

I may have misunderstood.

Do you mean a toolbar like the one at the top of the window in mail.app?
It's just a row of buttons, and you have a lot of control over the 
behaviour and look of buttons...

What are the problems with the hilite behaviour?

Cheers,

Mark


On 29 Aug 2005, at 15:24, Scott Kane wrote:


If you mean a row of tools (icons) at the top of a window,
you can just
put a bunch of buttons there. If you mean some sort of floating
palette, then you need to make a sub stack of your main
stack, set the
decorations as desired, and populate it with a row of buttons...

Is this what you mean?


Yup. Except the row of buttons look nothing
like a real OSX toolbar.  If they are set
not ot highlight then they look odd.  If
set to hi-light then they look like Aqua
buttons.  I know might sound trivial to some,
but I need the proper OSX look and feel on
the toolbar.

Thanks for your reply, Mark!

Scott


___
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: Using message box

2005-08-29 Thread Bill
Thanks. I looked in the docs too but sometimes the docs don't work (or maybe
they get caught up in something that takes so long it seems like they're not
working).

Anyway -- from now on I use "put whatever into message" and then I can
search on "message" to find it. I am using explicit variables also now and
trying to use the formating of all variable names etc correctly as an old
Hypercard coder shifting to RunRev where we can have thousands of lines of
code in one container you really have to do things correctly or you are
truly lost when you look at it later.


On 8/29/05 10:18 AM, "Eric Chatonet" <[EMAIL PROTECTED]>
wrote:

> 
> put whatever into message

|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



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

2005-08-29 Thread Jim Hurley


Message: 5
Date: Mon, 29 Aug 2005 13:09:20 +0200
From: david bovill <[EMAIL PROTECTED]>
Subject: CamelCase
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

What's the quickest way to find all the CamelCase words in some text
- anyone have a regular expression or script for this?




David,

Depending on the complexity of your text, you might find the 
following function useful:


function thereIsAnInteriorCapitalLetter tText  --Self referential name
  delete char 1 of tText
  delete char -1 of tText
  set the caseSensitive to true
  if toLower(tText)= tText then
return false
  else return true
end thereIsAnInteriorCapitalLetter

Jim

___
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


external Windows program running?

2005-08-29 Thread Revolution
In general:
I am using revolution to launch a nonrevolution program. I need to know when
the user shuts down the nonrev program so that I can shut down rev. Is there
a method of doing this?

Details:
The nonrev program does not properly hide the Windows taskbar. I need rev to
be running to keep the taskbar hidden, but I need to automatically shut rev
down when the user closes the nonrev program.

The nonrev program is useless at sending and receiving messages but it can
launch another program. I tried launching my rev windows taskbar hider and
having the rev program close but as soon as rev closes, rev "tidies" up and
the taskbar reappears.

Open to suggestions and thankful for them.

Doug

___
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


Scripting conference - How to work with files and folders

2005-08-29 Thread J. Landman Gay
The preview stack for Ken Ray's scripting conference is now online for 
you to download prior to the conference this Saturday. Ken's topic is 
"How to work with files and folders" and there is a wealth of 
information in there. Ken has done a wonderful job with this stack and I 
am sure that most of you will find information you didn't know before. 
Take a look here:




Ken's scripting conference will be held at 1125763200 seconds. To find 
your local date and time, put this into the message box:


  get 1125763200; convert it to system date and time;put it

See you there!

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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: external Windows program running?

2005-08-29 Thread Lynch, Jonathan
Are you using Rev to launch a program, which is only being opened to
launch another program?

Surely Rev could launch the other program directly?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Revolution
Sent: Monday, August 29, 2005 11:36 AM
To: use-revolution@lists.runrev.com
Subject: external Windows program running?

In general:
I am using revolution to launch a nonrevolution program. I need to know
when
the user shuts down the nonrev program so that I can shut down rev. Is
there
a method of doing this?

Details:
The nonrev program does not properly hide the Windows taskbar. I need
rev to
be running to keep the taskbar hidden, but I need to automatically shut
rev
down when the user closes the nonrev program.

The nonrev program is useless at sending and receiving messages but it
can
launch another program. I tried launching my rev windows taskbar hider
and
having the rev program close but as soon as rev closes, rev "tidies" up
and
the taskbar reappears.

Open to suggestions and thankful for them.

Doug

___
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: Using message box

2005-08-29 Thread Dennis Brown

When I put in debug code, I add a comment to it so I can find it later:

put myVar --debug

Dennis

On Aug 29, 2005, at 11:22 AM, Bill wrote:

Thanks. I looked in the docs too but sometimes the docs don't work  
(or maybe
they get caught up in something that takes so long it seems like  
they're not

working).

Anyway -- from now on I use "put whatever into message" and then I can
search on "message" to find it. I am using explicit variables also  
now and
trying to use the formating of all variable names etc correctly as  
an old
Hypercard coder shifting to RunRev where we can have thousands of  
lines of
code in one container you really have to do things correctly or you  
are

truly lost when you look at it later.


On 8/29/05 10:18 AM, "Eric Chatonet"  
<[EMAIL PROTECTED]>

wrote:




put whatever into message



|||
   )_)  )_)  )_)
  )___))___))___)\
 )))_)\\
   _|||\\\__
---\   /- http://www.bluewatermaritime.com
 ^ ^
     ^^^^^
     ^^^

24 hour cell: (787) 378-6190
fax: (787) 809-8426

Blue Water Maritime
P.O. Box 91
Puerto Real, PR 00740



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

2005-08-29 Thread Marielle Lange
What's the quickest way to find all the CamelCase words in some  
text - anyone have a regular expression or script for this?


Hi David:

[^A-Za-z][A-Z][a-z]+[A-Z][A-Za-z]*
In words: Any character except an alphabetic one, an uppercase  
character, one or more lowercase characters, an uppercase character,  
zero or more characters (lower or upper case).


BTW, you have a page on regular expressions in the revolution- 
education wiki:
http://revolution.lexicall.org/wiki/tiki-index.php? 
page=RegularExpressions


Best,
Marielle


___
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


commas in custom properties

2005-08-29 Thread Lars Brehmer

Hi all!

I'm sure I've seen this question on the list befrore, but darned if I  
can find it again!


I use text stored in custom properties for word searching purposes,  
among other things, and I need to know how to "ignore" commas.  For  
example a custom property that contains;


to read, recite

Using the broader search (mark cds where it is in the storedText of  
me) it wil return for "to" , "read" and "recite."


in a more precise word search (mark cds where it is among the words  
of the storedText of me) it will only return for "to" or "recite" ,  
but obviously not for "read" because of the comma.  I'm pretty sure  
this can be done somehow, most likely very easily, but I can't seem  
to discover it on my own.


A little help (once again!)

Cheers,

Lars
___
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 Classic app problems

2005-08-29 Thread J. Landman Gay

Jeffrey Reynolds wrote:
well, i have been trying to make my classic app by building it in rev251 
mac osx authoring with the mac classic 251 engine and still no luck. im 
working on trying to figure out what exactly is not working in the 
classic app. it appears like my images are not loading from files, but 
first attempts to look at paths look like they are kosher. they even do 
this on a straight os9 system. stacks from mc2.1 that do the same 
routines do the same thing when made into rev251 classic apps from 
rev251 osx.


this one really has me scratching my head big time...

osx standalones work great from 251 or 26.

any ideas?


This sounds like a file path problem to me, since OS X paths and OS 9 
paths are different, depending on how you are calculating them. If you 
are using full file paths then it should work fine on either build, but 
if you are calculating the file path based on the location of the 
standalone then you need to do it differently in the two operating systems.


Can you give us an idea of what your file paths looks like?

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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: external Windows program running?

2005-08-29 Thread Revolution
Launching isn't the problem. I need to know when the nonrev program
terminates.


- Original Message - 
From: "Lynch, Jonathan" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: Monday, August 29, 2005 12:17 PM
Subject: RE: external Windows program running?


Are you using Rev to launch a program, which is only being opened to
launch another program?

Surely Rev could launch the other program directly?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Revolution
Sent: Monday, August 29, 2005 11:36 AM
To: use-revolution@lists.runrev.com
Subject: external Windows program running?

In general:
I am using revolution to launch a nonrevolution program. I need to know
when
the user shuts down the nonrev program so that I can shut down rev. Is
there
a method of doing this?

Details:
The nonrev program does not properly hide the Windows taskbar. I need
rev to
be running to keep the taskbar hidden, but I need to automatically shut
rev
down when the user closes the nonrev program.

The nonrev program is useless at sending and receiving messages but it
can
launch another program. I tried launching my rev windows taskbar hider
and
having the rev program close but as soon as rev closes, rev "tidies" up
and
the taskbar reappears.

Open to suggestions and thankful for them.

Doug

___
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: commas in custom properties

2005-08-29 Thread Mark Wieder
Lars-

If there's no space after the comma ("to read,recite") then

"mark cds where it is among the items of the storedText of me"

should do it. If there are spaces ("to read, recite") then the match
will probably fail and you'll have to resort to something more
verbose:

  put the storedText of me into tItems
  repeat with x = 1 to the number of items in tItems
if tTarget is word 1 to -1 of item x of tItems then
  -- etc
end if
  end repeat

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
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: commas in custom properties

2005-08-29 Thread Malte Brill

Hi Lars,

try tokens instead of words.

mark cds where it is among the tokens  of the storedText of me

Hope that helps,

Malte


 


ArcadeEngine - prepare to WOW your audience within minutes
http://www.runrev.com/section/revselect/arcadeengine
http://www.derbrill.com/arcadeengine/forum

Help flood victims from Switzerland:  
http://www.derbrill.de/beaundmischa.html


___
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: external Windows program running?

2005-08-29 Thread MisterX
Doug,

if you launch your pc application via shell,
then when the user closes that application,
rev just has to continue working... 
meanwhile while your app runs, rev is "blocked..."

I find the behavior hideous but at least it
does have ONE use...

The other way is to check every now and then if the
application quit via a shell("pstools! not exact syntax") from pstools or
the like. you can find pstools at

http://www.sysinternals.com

then 
on Checkmyappisrunning
  if "myapp.exe" is not in getappsrunning() then
-- do mything
quit
  end if
  send "checkmyappisrunning" to me in 2 seconds
end Checkmyappisrunning

function getappsrunning
  return shell("plist" )
end getappsrunning

cheers
Xav 
http://monsieurx.com

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Revolution
> Sent: Monday, August 29, 2005 19:37
> To: How to use Revolution
> Subject: Re: external Windows program running?
> 
> Launching isn't the problem. I need to know when the nonrev 
> program terminates.
> 

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Revolution
> Sent: Monday, August 29, 2005 11:36 AM
> To: use-revolution@lists.runrev.com
> Subject: external Windows program running?
> 
> In general:
> I am using revolution to launch a nonrevolution program. I 
> need to know
> when
> the user shuts down the nonrev program so that I can shut down rev. Is
> there
> a method of doing this?
> 
> Details:
> The nonrev program does not properly hide the Windows taskbar. I need
> rev to
> be running to keep the taskbar hidden, but I need to 
> automatically shut
> rev
> down when the user closes the nonrev program.
> 
> The nonrev program is useless at sending and receiving messages but it
> can
> launch another program. I tried launching my rev windows taskbar hider
> and
> having the rev program close but as soon as rev closes, rev 
> "tidies" up
> and
> the taskbar reappears.
> 
> Open to suggestions and thankful for them.
> 
> Doug
> 

___
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: Convert ColorNames to RGB

2005-08-29 Thread Joel Guillod

The other way around is harder - you have to script / use a lookup
table.


Not so hard to build a map between ColorNames and RGB: create a field  
and name it "fColors", then put the following script in the card  
script and type build in the message box: now the field display for  
each color a line with: its colorname, a color rectangle, the color  
value for html, the RGB value.


For lazy one, download a ready made stack "ColorNames Displayed" is  
available under Revolution online, user "imed". Enjoy!


Joel G


on build
  set cursor to watch
  lock screen
  set the itemdel to tab
  put empty into fld "fColors"
  repeat for each line c in colornames()
put c & tab & "" &tab after fld "fColors"
set the backgroundcolor of char 1 to -1 of item 2 of last line  
of fld "fColors" to c
put the backgroundcolor of item 2 of last line of fld "fColors"  
into tColor
put htmlColor(tColor) &tab& rgbColor(tColor) &cr after fld  
"fColors"

  end repeat
end build

function htmlColor c
  put "#" into r
  repeat for each item i in c
 get baseconvert(i,10,16)
 if len(it)=1 then put "0" after r
 put it after r
  end repeat
  return r
end htmlColor

function rgbColor c
  return format("%03s,%03s,%03s",item 1 of c,item 2 of c, item 3 of c)
end rgbColor

___
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: external Windows program running?

2005-08-29 Thread Lynch, Jonathan
You can also just check every now and then to see if the application is
among the openprocesses.

And Xavier, you can launch an app via shell command without it locking
up - at least, Chipp's method so far has not locked up the Rev app for
me. I would be happy to send it to you, if you wish.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MisterX
Sent: Monday, August 29, 2005 2:08 PM
To: 'How to use Revolution'
Subject: RE: external Windows program running?

Doug,

if you launch your pc application via shell,
then when the user closes that application,
rev just has to continue working... 
meanwhile while your app runs, rev is "blocked..."

I find the behavior hideous but at least it
does have ONE use...

The other way is to check every now and then if the
application quit via a shell("pstools! not exact syntax") from pstools
or
the like. you can find pstools at

http://www.sysinternals.com

then 
on Checkmyappisrunning
  if "myapp.exe" is not in getappsrunning() then
-- do mything
quit
  end if
  send "checkmyappisrunning" to me in 2 seconds
end Checkmyappisrunning

function getappsrunning
  return shell("plist" )
end getappsrunning

cheers
Xav 
http://monsieurx.com

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Revolution
> Sent: Monday, August 29, 2005 19:37
> To: How to use Revolution
> Subject: Re: external Windows program running?
> 
> Launching isn't the problem. I need to know when the nonrev 
> program terminates.
> 

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Revolution
> Sent: Monday, August 29, 2005 11:36 AM
> To: use-revolution@lists.runrev.com
> Subject: external Windows program running?
> 
> In general:
> I am using revolution to launch a nonrevolution program. I 
> need to know
> when
> the user shuts down the nonrev program so that I can shut down rev. Is
> there
> a method of doing this?
> 
> Details:
> The nonrev program does not properly hide the Windows taskbar. I need
> rev to
> be running to keep the taskbar hidden, but I need to 
> automatically shut
> rev
> down when the user closes the nonrev program.
> 
> The nonrev program is useless at sending and receiving messages but it
> can
> launch another program. I tried launching my rev windows taskbar hider
> and
> having the rev program close but as soon as rev closes, rev 
> "tidies" up
> and
> the taskbar reappears.
> 
> Open to suggestions and thankful for them.
> 
> Doug
> 

___
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: OSX Style Toolbat Widget

2005-08-29 Thread Scott Kane
Hi Mark,

> Do you mean a toolbar like the one at the top of the window 
> in mail.app? It's just a row of buttons, and you have a lot 
> of control over the 
> behaviour and look of buttons...
> What are the problems with the hilite behaviour?

First off - sorry for being a pain for this, but
my test team won't even look at the app' unless 
it works and looks "just right".   

Yes - mail.app is exactly the look and is the OS's
toolbar in use.  The user can add or hide buttons
and if there are to many added then a chevron appears
allowing you to see the rest as a drop down list.
I don't care about the chevron aspect - but the look
of the mail.app app' toolbar is exactly what I'm after.  It
is part of the native OSX GUI - but I have no knowledge
on how to subclass it to use in Rev'.

Scott


___
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: libdatabase : connection problem

2005-08-29 Thread Dan Shafer

Just goes to show you. I learn something every day about this language.

It would never have occurred to me to use an equal sign that way in  
Rev. I'm almost sorry I know that!


:-D

Dan

On Aug 28, 2005, at 8:46 PM, Trevor DeVore wrote:


On Aug 28, 2005, at 6:12 PM, Dan Shafer wrote:


Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)

event from button :

  local tDbA = ""
  local i = 0
  local tDataA = ""


The above lines are doing nothing for you because they are  
incorrect syntax for Revolution. The expression "i = 0" evaluates  
to either true or valse but does nothing with the result. IF what  
you intend to do here is to initialize local variables, then you  
need the slightly more verbose:


local tDbA
put empty into tDbA (or you can use double quotes instead of "empty")
local i
put 0 into i
local tDataA
put empty into tDataA



Dan,

Declaring a variable as local initializes to an empty variable. So -

local tDbA,tDataA

would initialize both variables as empty.  For example:

on doSomething
local tVar

put tVar &cr& tVar2
end doSomething

Would display and empty line, a return and "tVar2" on the second  
line in the message box.  You can initialize a variable to value as  
well.


on doSomething
local i = 0

put i
end doSomething

would print 0 in the message box.


Having said that, it is strictly optional in Transcript to use the  
word "local" and I'd venture to say that the vast majority of us  
never use it. Variables are local unless they're explicitly  
defined to be global. In that case, you eliminate the three  
"local" lines in the above and just assign the initialization  
values to the variables with the same effect.




The person probably got the code from original libDatabase example  
code.  Back in the day I used to initialize variables with ""  
before I knew that just declaring them set them to empty.Now I  
just define all local variables en mass:


local tVar1,tVar2
local tDataA,tWhateverA

For integers, such as i, I used to always initialize them to 0.   
Now I only initialize them with 0 if there is a possibility of a  
math error later on in the code that could be caused by having a  
non-numeric value.


It is true that most people don't declare local variables but I do  
in all of my code.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


___
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: OSX Style Toolbat Widget

2005-08-29 Thread Richard Gaskin

Scott Kane wrote:

First off - sorry for being a pain for this, but
my test team won't even look at the app' unless 
it works and looks "just right".   


Yes - mail.app is exactly the look and is the OS's
toolbar in use.  The user can add or hide buttons
and if there are to many added then a chevron appears
allowing you to see the rest as a drop down list.
I don't care about the chevron aspect - but the look
of the mail.app app' toolbar is exactly what I'm after.  It
is part of the native OSX GUI


Request outstanding since September 2003:


(Thanks for filing that, Jan).

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: CamelCase

2005-08-29 Thread Cubist
sez [EMAIL PROTECTED]:
>>From: david bovill <[EMAIL PROTECTED]:lCase words in some text
>>- anyone have a regular expression or script for this?
>Depending on the complexity of your text, you might find the 
>following function useful:
>
>function thereIsAnInteriorCapitalLetter tText  --Self referential name
>   delete char 1 of tText
>   delete char -1 of tText
   Stupid question: Why delete char -1? What difference would it make if you 
didn't?

>   set the caseSensitive to true
>   if toLower(tText)= tText then
> return false
>   else return true
   This IF statement can be replaced by one line: "return (not (toLower 
(tText) = tText))"

>end thereIsAnInteriorCapitalLetter
   This handler may or may not do Bovill's job, depending on what sort of 
strings count as being CamelCase. A few test-cases:
   "getLost" -- true
   "ALPHABET" -- true
   "explicitX" -- false
   I suspect that all-caps strings ought not be considered CamelCase, 
myself...
___
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


[FR] [EN] Re: RevoBlog lives again! Leap year dete rmination/Années bissextiles

2005-08-29 Thread Dom
Dom <[EMAIL PROTECTED]> wrote:

> It is here:
> 
> http://revoblog.free.fr/2005/08/27/index.html

I forgot to note that the web site is bilingual...
J'ai oublié de préciser que le site était bilingue !

Today: a better determination of leap years, by a member of the
french-speaking list revolutionfr ;-)
Aujourd'hui : une amélioration de la routine de détection des années
bissextiles, par un contributeur de la liste revolutionfr ;-)

-- 
Revolutionario

___
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: commas in custom properties

2005-08-29 Thread Mark Swindell
Don't know if this will help, but I just used the "replace x with y"  
feature in a project I'm working on where there were multiple lines 
with returns at the end and not commas:


put the cpImageItems into cleanMeUp
replace return with comma in cleanMeUp
if x is among the items of cleanMeUp then
etc.

in this way all the line breaks are converted to items.

Otherwise, in the following, "big cat wolf" is considered item 2 of 3 
items.


tiger, big cat
wolf, wild dog

Mark


On Aug 29, 2005, at 10:14 AM, Lars Brehmer wrote:


Hi all!

I'm sure I've seen this question on the list befrore, but darned if I 
can find it again!


I use text stored in custom properties for word searching purposes, 
among other things, and I need to know how to "ignore" commas.  For 
example a custom property that contains;


to read, recite

Using the broader search (mark cds where it is in the storedText of 
me) it wil return for "to" , "read" and "recite."


in a more precise word search (mark cds where it is among the words of 
the storedText of me) it will only return for "to" or "recite" , but 
obviously not for "read" because of the comma.  I'm pretty sure this 
can be done somehow, most likely very easily, but I can't seem to 
discover it on my own.


A little help (once again!)

Cheers,

Lars

___
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: Using message box

2005-08-29 Thread Chipp Walters

Bill,

To search for naked puts, you can use my 'find put' plugin at:

http://www.altuit.com/webs/altuit2/altPluginCover/about.htm

Check under "Download Plugins"

-Chipp

Bill wrote:

I have been using the message box all along like this:

Put variable

Or put "whatever"

And the result comes out in the message box. The problem with this is how do
you search for that event in a whole lot of code. You can't search for "put"


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


Re: OSX Style Toolbat Widget

2005-08-29 Thread Chipp Walters

Scott,

I believe Ken Ray has implemented the exact same look and feel, 
including the ability to drag/drop buttons 'up there.' I suggest you 
contact him offlist?


-Chipp

___
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: OSX Style Toolbat Widget

2005-08-29 Thread Scott Kane
Hi Chipp,

> I believe Ken Ray has implemented the exact same look and feel, 
> including the ability to drag/drop buttons 'up there.' I suggest you 
> contact him offlist?

Do you happen to have his email address?  I'm kind
of new and don't know Ken Ray.   :-)

Scott


___
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: Spell Checker

2005-08-29 Thread Scott Morrow

Greetings Yves,
Jean-Baptiste LE STANG has written an AppleScript extension  <  
http://www.lestang.org/ >  that allows a link to Apple's OSX spell 
checking engine.  It can be used with Revolution to create a spell 
checker.  Obviously it requires OSX and so will not provide the general 
solution that the others (and myself) are looking for.   I have posted 
a Rev spell checker stack that uses this AppleScript extension.  
Perhaps it will give you some ideas.  Install XSpell and then try:


go URL "http://elementarysoftware.com/rev_demos/spellcheck_demo.rev";

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Aug 28, 2005, at 12:58 AM, Yves COPPE wrote:



Le 27 août 05 à 23:48, Sivakatirswami a écrit :


Jonathan:

Can you share your spell checker with us? or is this proprietary? 
(put it on line somewhere or send to me off list?)


I don't care if it is not polished in terms of the UI, as long the 
basic algorithms and scripts are accessible, I can put it to work..


basically I have a single field I am checking and would like to get

a) mis-spelled words flagged in that field
b) a suggestion list--(very basic, that segment of the alphabet would 
do... right, I know... not very smart and all the "s's" could be a 
long suggestion list, but my implementation will let them view two 
different suggestion lists, one the "common" English dict and two, a 
specialized words list... the latter will be short...





Hi Jonathan,

I'm also very interested in Spell checker.

Working on Mac OS X, I found very a pity that Revolution doesn't 
support the cocoa services system of mac OS X
So I'd like to build my own. I'm a French (language) user and have a 
big file of french words.

I'd like to use this file as base of Spell Checking.

Can you show us how you proceed ?

Thank you?


Greetings.

Yves COPPE
[EMAIL PROTECTED]

___
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


OT good list or product for removing ad/spyware?

2005-08-29 Thread Erik Hansen


--- Malte Brill <[EMAIL PROTECTED]> wrote:

> Hi Lars,
> 
> try tokens instead of words.
> 
> mark cds where it is among the tokens  of the
> storedText of me
> 
> Hope that helps,
> 
> Malte
> 
> 
>

> 
> ArcadeEngine - prepare to WOW your audience
> within minutes
>
http://www.runrev.com/section/revselect/arcadeengine
> http://www.derbrill.com/arcadeengine/forum
> 
> Help flood victims from Switzerland:
> http://www.derbrill.de/beaundmischa.html
> 
> ___
> 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
> 
> 


[EMAIL PROTECTED]http://www.erikhansen.org



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 

___
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


emacsKeyBindings

2005-08-29 Thread Richard Gaskin
I'm curious:  How many of you use the emacsKeyBindings property, and for 
what sorts of apps/audiences?


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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


problem waiting - spellchecker

2005-08-29 Thread MisterX
Hi everyone

im working on this spellchecker (too) in a palette form. It should be able
to work in any stack... Dictionary is ready, so is the SpellChecker's GUI.

While everything is nearly ready, the stack makes a loop to parse all words
and check each word and waits for a user input to decide what happens to
each unknown word - as expected. but...

Now, the problem is that once a word is detected as unknown, the loop must
wait for the user to hit the buttons "learn, skip, ignore, etc..."

so it goes like this

for each word w in thistext 
  if w is not in dictionary then
put w into field unknown
put suggestions(w) into field suggestions
wait until checkdone
  end if

The skip, continue, etc, buttons contain their functions or change a global
parameter that tell the parser to continue or skip, etc... And at the end,
each button script contains "checkdone".

But while this seemed too simple and easy, it didn't work. 

The loop gets stuck waiting blocking the gui completly... Clicking on a
button with the CheckDone caller doesnt work either. Wait just blocks
everything... Control-C is the only way to stop it.

I tried also

wait until the mouse is up/down - it works a bit better but... this gets
complicated, checking all the targets, and unlike a normal word processor,
all the applications are still blocked waiting... There must be an easier
way...

So any suggestions on how to handle this in an "idle" way are welcome. 

- I dont want to block the GUI 
- The user should be able to edit anything (the correctedtext for example)
meanwhile (put the check in the bg).
- when i pause the loop, any button should be able to work... 
- how do you resume a loop in this case?

im thinking of using a parametrable loop that stops at each unknown word
remembering in it's parameters what word that was... Each palette button
(skip, fix, learn, etc) will do it's job and relaunch the spellcheck loop
which will continue at the next word... 

But solution 1 was so simple...

Does anyone have a better suggestion?

Thanks in advance
Xavier

___
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: problem waiting - spellchecker

2005-08-29 Thread Chipp Walters

did you try:

wait with messages until checkdone?

MisterX wrote:

Hi everyone

im working on this spellchecker (too) in a palette form. It should be able
to work in any stack... Dictionary is ready, so is the SpellChecker's GUI.

While everything is nearly ready, the stack makes a loop to parse all words
and check each word and waits for a user input to decide what happens to
each unknown word - as expected. but...

Now, the problem is that once a word is detected as unknown, the loop must
wait for the user to hit the buttons "learn, skip, ignore, etc..."

so it goes like this

for each word w in thistext 
  if w is not in dictionary then

put w into field unknown
put suggestions(w) into field suggestions
wait until checkdone
  end if

The skip, continue, etc, buttons contain their functions or change a global
parameter that tell the parser to continue or skip, etc... And at the end,
each button script contains "checkdone".

But while this seemed too simple and easy, it didn't work. 


The loop gets stuck waiting blocking the gui completly... Clicking on a
button with the CheckDone caller doesnt work either. Wait just blocks
everything... Control-C is the only way to stop it.

I tried also

wait until the mouse is up/down - it works a bit better but... this gets
complicated, checking all the targets, and unlike a normal word processor,
all the applications are still blocked waiting... There must be an easier
way...

So any suggestions on how to handle this in an "idle" way are welcome. 

- I dont want to block the GUI 
- The user should be able to edit anything (the correctedtext for example)

meanwhile (put the check in the bg).
- when i pause the loop, any button should be able to work... 
- how do you resume a loop in this case?


im thinking of using a parametrable loop that stops at each unknown word
remembering in it's parameters what word that was... Each palette button
(skip, fix, learn, etc) will do it's job and relaunch the spellcheck loop
which will continue at the next word... 


But solution 1 was so simple...

Does anyone have a better suggestion?

___
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: Saluting the Menu Maven

2005-08-29 Thread Jeanne A. E. DeVoto

At 1:09 AM -0700 8/26/2005, Dick Kriesel wrote:

On 8/26/05 12:42 AM, "Jeanne A. E. DeVoto" <[EMAIL PROTECTED]> wrote:


 there are a lot of tips and tricks that I didn't include
 in order to make sure the basic information got through
 without overloading people


Tantalizing!  Please, Jeanne, would you share the rest of tips and tricks
too?

-- Dick


___
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



--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.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: problem waiting - spellchecker

2005-08-29 Thread Brian Yennie

Xavier,

I would suggest either:

a) use "wait ... with messages"

or

b) modularize the code such that your buttons can pick up where your 
code left off. IOW, there is no code running while waiting for a button 
to be pressed. Just save off your progress, and wait for the next 
click.


Hope that helps!

- Brian

___
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: problem waiting - spellchecker

2005-08-29 Thread xbury . cs
All my code is modularized from the start... But i thought a loop was 
necessary.

But B is how i went about it (still untested)... 

I just remember the last word i checked and continue...

would wait... with messages "" block the gui too though?

Thanks Brian


[EMAIL PROTECTED] wrote on 30/08/2005 07:39:19:

> Xavier,
> 
> I would suggest either:
> 
> a) use "wait ... with messages"
> 
> or
> 
> b) modularize the code such that your buttons can pick up where your 
> code left off. IOW, there is no code running while waiting for a button 
> to be pressed. Just save off your progress, and wait for the next 
> click.
> 
> Hope that helps!
> 
> - Brian
> 
> ___
> 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



-
Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
___
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: problem waiting - spellchecker

2005-08-29 Thread Scott Rossi
Recently, [EMAIL PROTECTED]  wrote:

> would wait... with messages "" block the gui too though?

Nope - you use "with messages" specifically to avoid any "blocking".

Try it in a test stack.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.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: problem waiting - spellchecker

2005-08-29 Thread xbury . cs
  wait with messages "checkContinue"
 
doesn't compile

  wait with messages checkContinue
 
causes an execution error. 

I quit MC, launch Rev to see the help about it... Ah, now i see the wait 
... "with"

ok, so i tried...

wait 0 seconds with messages checkContinue
 
still an error!

Is there supposed to be a handler checkContinue or can i just call 
checkContinue
from my other button to "trigger" the "wait with" to continue?

still lost...
Xav


[EMAIL PROTECTED] wrote on 30/08/2005 08:37:06:

> Recently, [EMAIL PROTECTED]  wrote:
> 
> > would wait... with messages "" block the gui too though?
> 
> Nope - you use "with messages" specifically to avoid any "blocking".
> 
> Try it in a test stack.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> -
> E: [EMAIL PROTECTED]
> W: http://www.tactilemedia.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



-
Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
___
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