Re: Unit Tests

2007-06-29 Thread Mark Wieder
David-

Friday, June 29, 2007, 8:45:35 AM, you wrote:

> Yes - except i was planning to store them as text files optionally indexed
> by an sqlite database - so the test can go in svn. Any examples you can
> share?

I store tests as executable scripts and test suites as lists of tests.
I suppose the tests could be written out as text files and subversed,
and it's an interesting idea, but one I haven't had to put into play.
Here's a simple db table-creation test. The testCreateTable handler
takes care of logging the result, and the test framework handles the
rest (loop iteration, pass/fail logging, error handling, test setup
and teardown, etc):

on testCreateTable2
  local tFieldArray
  
  put "integer primary key" into tFieldArray[1,"id"]
  put "text" into tFieldArray[2,"name"]
  put "text" into tFieldArray[3,"phone"]
  testCreateTable tconnectionid, "test2", tFieldArray
end testCreateTable2

-- 
-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: Number of chars in a line limit?

2007-06-29 Thread SimPLsol
Ron,
The number of chars that can be displayed per line is over 60,000. The number 
of chars that a line can contain appears to be unlimited (we have situations 
where they exceed 100,000).
I don't know of a good workaround for the display limit.
Paul Looney


**
 See what's free at 
http://www.aol.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


Number of chars in a line limit?

2007-06-29 Thread ron barber

Greetings,

Is there a limit to the number of chars on a single line? Line means
words with spaces between them but no return.

I have been formatting some long text sections with no return and
those with >10,000 or so chars have some difficulty displaying in a
text field, especially at higher point sizes. Is there a limit and if
so, is there a way around the display problems?

Thanks
Ron
___
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


burn, burn ;-)

2007-06-29 Thread Viktoras Didziulis
Just played a little with real-time image manipulation in Rev. Initially
tried using arrays, but then the chunk based approach with binary
encode/decode seemed to perform faster (strange, have to try arrays again..
). Here is a small joke-stack in legacy format:
 
go stack url http://ekoinf.net/fire3.rev
 
it burns any selected image :-), click the fire button, choose image and
watch it burning. Different patterns emerge depending on image selected.
Click the mouse again or press Shift to stop burning.
 
Any ideas on how to make it work reasonably faster (on, say, 1.7 Ghz proc.)
so to let it "digest" larger imagedatas ?
 
:-)
Viktoras
 
___
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: implicitVars [Was: Re: Best Practices in Rev development]

2007-06-29 Thread Jim Ault
On 6/29/07 3:23 PM, "David Bovill" <[EMAIL PROTECTED]> wrote:

> function countLines someLines
> put empty into someLines
> repeat for each line someLine in someLines
>   add 1 to lineCount
> end repeat
> return lineCount
> end countLines

I am a bit confused.. why would you pass a param then set it to empty?
or establish the param and declare it as a local, as you do later?

What is the benefit?

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


Re: implicitVars [Was: Re: Best Practices in Rev development]

2007-06-29 Thread David Bovill

Ditto - with one exception - in cases such as repeat loops where a variable
is incremented (silly example):

function countLines someLines
   repeat for each line someLine in someLines
 add 1 to lineCount
   end repeat
   return lineCount
end countLines

I have often found a bug that happens when there is no repeats (ie someLines
is empty) where you get "lineCount" returned and not empty - I used to add:

function countLines someLines
   put empty into someLines
   repeat for each line someLine in someLines
 add 1 to lineCount
   end repeat
   return lineCount
end countLines

but now I:

function countLines someLines
   local someLines
   repeat for each line someLine in someLines
 add 1 to lineCount
   end repeat
   return lineCount
end countLines

Because it's easier to type and makes me take a bit more care :)


On 29/06/07, Chipp Walters <[EMAIL PROTECTED]> wrote:


On 6/29/07, Ken Ray <[EMAIL PROTECTED]> wrote:
>
> Personally, my feeling is "whatever works for you, works
> for you" - by that I mean that over the years of not declaring xTalk
> variables I have gotten to the point that the likelihood of me making
> an error in typing a variable is extremely low, so there really is very
> little benefit and a lot of extra hassle for me to start declaring
> them. But that's me... Anything that makes the process more efficient
> is good, IMHO.



I'm with Ken. I don't declare variables and have spent so many hours
working
this way, it's just easier. I rarely if ever find a problem from not
declaring vars, and the overhead of the typing and visual clutter is a
nuisance and a time waste to me. Also, I really like using script locals,
and inserting local vars within handlers would 'look funny' to me as I
generally think of:

local lColor

as a scriptwide var.

I would expect most of us who've 'grown up' using HyperCard and SuperCard
aren't as concerned with declaring vars, as those who have worked more
with
traditional programming languages.
___
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: Deleting files on Vista

2007-06-29 Thread Luis

Hiya,

The procedure hopefully brings up the real path or the virtual store, as 
this would be given out by the OS and not an application running, which 
may be given the 'right' path 'wrongly'...


Cheers,

Luis.


J. Landman Gay wrote:

Shari wrote:

Hiya,

What about writing a little test app for the user to install and run.
After installing, the test app sends the 'cd ..' and 'dir' commands 
to the shell. Grab that output, should tell you the directory it's in.

Haven't tried this btw...

Cheers,

Luis.


Luis,

I don't know how to write shell() commands.  I only know Transcript, 
which supports shell but doesn't tell you how to write them :-)


I know how to search the list and copy shell commands I find posted, 
but that's the extent of it.


You don't need shell in this case, I don't think. Just have your program 
get "the address". That will tell you where it is installed. 
Alternately, have it get the filename of the mainstack, which will give 
you the same info.



___
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: Option Buttons Shared Values

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 14:55:13 -0400, Gregory Lypny wrote:

> Hello everyone,
> 
> Just want to confirm that the selectedLine and label of an option 
> button are always shared on all cards on which they appear.  Sadly, I 
> wanted to have the same option button appear on every card as part of 
> the background but allow users to select a different value on each 
> card much like a field whose text is not shared.

Yes, you are correct. You can simulate it an option button in a 
background group, and then set custom card properties and preOpenCard 
handlers that restore the value that had been set for each card. It's 
not too difficult, but it's not as easy as turning on "share text" in a 
field... (BTW, if you want info on how to do this, just ask).

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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: Deleting files on Vista

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 13:00:29 -0400, Shari wrote:

> Not there, nope.  I was under the impression that this folder is no 
> longer writeable.  The main app goes there, but none of the files 
> that require writeability.

Well, you can *install* there, but once installed you can't write back 
to the file(s) in the Program Files folder, so Vista copies the file to 
the VirtualStore and makes the change on *that* file instead.

> So using your example above as a template, I should be able to create 
> a series of VirtualStore paths to check?  So if the path to the real 
> prefs file was:
> 
> C:/Documents and Settings/All Users/Application 
> Data/myCreatedPrefsFolder/myPrefsFiles
> 
> The virtual path (with no returns) would be:
> 
>  C:/Users//AppData/Local/VirtualStore/
> Documents and Settings/All Users/Application Data//
> myCreatedPrefsFolder/myPrefsFiles

Actually, I don't think that the All Users/Application Data folder is 
virtualized (but I could be wrong). I've only seen this with Program 
Files and registry entries so far.

> Would it also create the folder I created to put the prefs in?  Or 
> would it just create the prefs files?

It would mimic the path you used in a relative way. That is, suppose 
you installed a file in Program Files/MyApp/Support/MyFile.txt. When 
you went to write the file, it would be virtualized to 
...VirtualStore/Program Files/MyApp/Support/MyFile.txt.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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: implicitVars [Was: Re: Best Practices in Rev development]

2007-06-29 Thread Chipp Walters

On 6/29/07, Ken Ray <[EMAIL PROTECTED]> wrote:


Personally, my feeling is "whatever works for you, works
for you" - by that I mean that over the years of not declaring xTalk
variables I have gotten to the point that the likelihood of me making
an error in typing a variable is extremely low, so there really is very
little benefit and a lot of extra hassle for me to start declaring
them. But that's me... Anything that makes the process more efficient
is good, IMHO.




I'm with Ken. I don't declare variables and have spent so many hours working
this way, it's just easier. I rarely if ever find a problem from not
declaring vars, and the overhead of the typing and visual clutter is a
nuisance and a time waste to me. Also, I really like using script locals,
and inserting local vars within handlers would 'look funny' to me as I
generally think of:

local lColor

as a scriptwide var.

I would expect most of us who've 'grown up' using HyperCard and SuperCard
aren't as concerned with declaring vars, as those who have worked more with
traditional programming languages.
___
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: type ahead search and typing speed

2007-06-29 Thread Devin Asay


On Jun 29, 2007, at 8:19 AM, Devin Asay wrote:



On Jun 28, 2007, at 6:59 PM, Mark Talluto wrote:


I tried your program and found that if you changed the rawKeyUp to  
rawKeyDown one could not type faster than the routine.  That  
should do the trick.


Simple and brilliant, Mark! It was staring me in the face the whole  
time, and I didn't even think of it. Thanks!


Thanks to Mark and Jim I got this straightened out. I ended up doing  
some major reworking, and it seems to work exactly as I wanted.


If anyone's interested in the finished product, you can get it from  
the message box:


go stack URL "http://asay.byu.edu/typeAheadSearch.rev";

Hope someone finds it useful. As always, if you find a flaw in it,  
I'd like to know, so I can fix it.


Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Option Buttons Shared Values

2007-06-29 Thread Gregory Lypny

Hello everyone,

Just want to confirm that the selectedLine and label of an option  
button are always shared on all cards on which they appear.  Sadly, I  
wanted to have the same option button appear on every card as part of  
the background but allow users to select a different value on each  
card much like a field whose text is not shared.


Regards,

Gregory
___
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: Deleting files on Vista

2007-06-29 Thread Shari
I feel sorry for the Vista support techs.  At least they have 
guaranteed job security ;-)


Don't.  Have you ever spoken or emailed one of them?   It's like 
talking to somebody from PayPal support.  I was actually given 
instructions on how to defrag my hard drive when I installed 
Microsoft Outlook XP after I installed service pack 2 (I've since 
discovered on my own that was the problem) and couldn't boot into 
Windows - let alone run defrag.


Scott


I still feel sorry for them :-)  My fella is a support tech, and the 
calls he gets are unbelieveable.  They've already been thru several 
lower level support techs by the time he gets them, and they are 
HOPPING mad.  He comes home utterly miserable.  People don't get to 
take their anger out on the person who angered them, it is always 
somebody else who gets the brunt of it, like my sweet, wonderful 
fella who tries hard as he can to solve everybody's problems.  He has 
a pretty good success rate, but not before he's been cussed out up, 
down and sideways by people he has never personally talked to before. 
His job is not a happy one.


I hate calling support techs myself, because I always get the ones 
with the scripts to read.  And they are never helpful.  I have the 
blessing of my own built in support fella.  He solved our internet 
cable problem where Comcast could only read a script... so I know 
what you are saying.  I don't blame the techs but rather, their 
company who set up such a user-unfriendly support system.


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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: Deleting files on Vista

2007-06-29 Thread Scott Kane

From: "Shari" <[EMAIL PROTECTED]>

Like the user who couldn't find the Mac menubar because he was expecting 
it in the same window as the app itself, as with Windoze :-)  Yup, most 
users are not reliable to troubleshoot.


LOL!  I once had an angry Windows user who told me my app had re-arranged 
items in his Start menu and he was going to sue me.  I tried to explain that 
he'd obviously dragged some around by accident (which is easy to do) and 
that he could drag them back but he wouldn't listen.  Then one of my 
relatives accused me of formatting her hard drive with an app I wrote 
specifically for her.  It didn't of course.  I never did find out what she 
did to herself.  It's actually quite hard to accidently format a hard drive 
on Windows (short of booting into setup or running format or fdisk from a 
boot disk).


Regarding signed apps... you mean the Verisign type signature itself to 
turn off that nasty warning window?


Yep.  That's the one.  Works fine in all cases unless you install the signed 
app to the root diretory (e.g. C:\) and a few other weird places.  Which 
probably is a warning for those who have decided to create directories off 
the root on Windows.  A bug in an update might be coming your way soon.  :-(


I feel sorry for the Vista support techs.  At least they have guaranteed 
job security ;-)


Don't.  Have you ever spoken or emailed one of them?   It's like talking to 
somebody from PayPal support.  I was actually given instructions on how to 
defrag my hard drive when I installed Microsoft Outlook XP after I installed 
service pack 2 (I've since discovered on my own that was the problem) and 
couldn't boot into Windows - let alone run defrag.


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: one liners restrictions

2007-06-29 Thread J. Landman Gay

Stephen Barncard wrote:

Doesn't this restrict one-liner contests?


Maybe, but I'm not sure my theory is correct. It just looked to me like 
that was what the problem was, but it remains unverified.


Remember in HC where we tried to see what one could do with one line of 
code?

Or was that Applesoft Basic?


I don't recall that particular contest but that's not unusual for me 
these days. ;) I do miss those scripting challenges though. I wish this 
list would indulge more, it was great fun. The last one I can recall on 
this list was the creation of a working clock face. By the time everyone 
was done we had a very efficient and effective script, and I think 
everyone who followed the exchange learned a lot.





Jacque wrote:


I think it's just a limitation on single-line messages. Even if you
split it up into two statements separated with a semicolon, it 
doesn't work:

...
The message box uses a "do" statement to execute its commands. As a
guess, maybe there's a limitation on the number of nested functions the
"do" command can handle simultaneously.






--
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: OT: security, wireless hacks and more paranoia....

2007-06-29 Thread J. Landman Gay

David Bovill wrote:

Not meaning to trouble the harmony of this list, but well strange things
keep happing on my network... this time no music being played, but while
browsing a little dialog popped up I take it from teh browser - but it 
had a

safari icon in the dialog which basically said something along the lines of
"Downloading file wap.x.jar" - which I did not appreciate.


Do you have your system preferences set to download updates in the 
background?


--
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: Deleting files on Vista

2007-06-29 Thread Shari
Ken is right.  However I've had an issue with a user who changed 
their account name and then changed it back (heaven only knows why) 
and it completely messed things up.  Getting a novice user to debug 
when they do crazy things (which they probably don't mean to do) is 
not a great idea.


Interesting problem I was reading about tonight where Vista fails to 
recognise signed app's.  Haven't got the details yet but basically 
it refused to run the application period - even though it popped the 
admin password request dialog. Doesn't do it under RC2 - just the 
release version. Seems there are a number of things we are yet to 
discover about this particular OS.


Scott Kane


Like the user who couldn't find the Mac menubar because he was 
expecting it in the same window as the app itself, as with Windoze 
:-)  Yup, most users are not reliable to troubleshoot.


Regarding signed apps... you mean the Verisign type signature itself 
to turn off that nasty warning window?  I feel sorry for the Vista 
support techs.  At least they have guaranteed job security ;-)


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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: Deleting files on Vista

2007-06-29 Thread J. Landman Gay

Shari wrote:

Hiya,

What about writing a little test app for the user to install and run.
After installing, the test app sends the 'cd ..' and 'dir' commands to 
the shell. Grab that output, should tell you the directory it's in.

Haven't tried this btw...

Cheers,

Luis.


Luis,

I don't know how to write shell() commands.  I only know Transcript, 
which supports shell but doesn't tell you how to write them :-)


I know how to search the list and copy shell commands I find posted, but 
that's the extent of it.


You don't need shell in this case, I don't think. Just have your program 
get "the address". That will tell you where it is installed. 
Alternately, have it get the filename of the mainstack, which will give 
you the same info.


--
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: Deleting files on Vista

2007-06-29 Thread Shari

At 10:53 AM -0500 6/29/07, Ken Ray wrote:

First of all, where are you creating the files? Is it in the Program
Files folder? If so, it will be virtualized to:

   C:\Users\\AppData\Local\VirtualStore\Program

Files\\

Not there, nope.  I was under the impression that this folder is no 
longer writeable.  The main app goes there, but none of the files 
that require writeability.


My code actually runs thru a series of supposedly writeable folders 
to see if they exist, and the first hit it gets that's where the 
Prefs go.  This to ensure that some OS change where a folder no 
longer exists at least has a hope of finding a useable folder.


So using your example above as a template, I should be able to create 
a series of VirtualStore paths to check?  So if the path to the real 
prefs file was:


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


The virtual path (with no returns) would be:

 C:/Users//AppData/Local/VirtualStore/
Documents and Settings/All Users/Application Data//
myCreatedPrefsFolder/myPrefsFiles

Would it also create the folder I created to put the prefs in?  Or 
would it just create the prefs files?


The code I use to find a preferences file path is as follows:


on prefsPath
  global gPrefsFolder,sFolder
  if platform() is "MacOS" then
put empty into gPrefsFolder
put "Preferences,Docs,Desktop" into tit
repeat for each item x in tit
  put specialFolderPath(x) into sFolder
  put specialFolderPath(x) & "/myFolderName" into gPrefsFolder
  if gPrefsFolder is not empty then
exit repeat
  end if
end repeat
  else if platform() is "Win32" then
put empty into gPrefsFolder
put "35,46,28,Documents,Desktop" into tit
repeat for each item x in tit
  put specialFolderPath(x) into sFolder
  put specialFolderPath(x) & "/myFolderName" into gPrefsFolder
  if gPrefsFolder is not empty then
exit repeat
  end if
end repeat
  end if
  if there is not a folder gPrefsFolder then
create folder gPrefsFolder
  end if
end prefsPath





First of all, where are you creating the files? Is it in the Program
Files folder? If so, it will be virtualized to:

   C:\Users\\AppData\Local\VirtualStore\Program
Files\\

So this:


 put specialFolderPath(x) & "/VirtualStore" into dPath
 put "/someFile" after dPath
   if there is a file dPath then
 delete file dPath
   end if


probably won't work... (This is covered in the Vista "Gotchas" tip at
http://www.sonsothunder.com/devres/revolution/tips/env007.htm).


 He does have Vista.  So does Vista allow create and not delete?

 And is it possible to delete from VirtualStore?


Yes... in fact I've been able to delete from the VirtualStore even with
UAC turned on. So I just think it's a path issue. Best would be to
check to see if the file exists before you try to delete it, IMHO.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/



--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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


OT: security, wireless hacks and more paranoia....

2007-06-29 Thread Peter Alcibiades
I would install a honeypot using Schroder as a guide.  Log everything.  Get 
the important stuff off wireless.  It will be instructive, and you'll find 
out.

Peter
___
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: security, wireless hacks and more paranoia....

2007-06-29 Thread Richard Gaskin

David Bovill wrote:

Not meaning to trouble the harmony of this list, but well strange things
keep happing on my network... this time no music being played, but while
browsing a little dialog popped up I take it from teh browser - but it had a
safari icon in the dialog which basically said something along the lines of
"Downloading file wap.x.jar" - which I did not appreciate.

As I was coding at the time - this dialog came out of the blue and as I had
idea where it came from - well i quickly switched of the wifi and started to
search for this file (in the mean time the dialog disappeared - it never
asked if I wanted to download the file). I searched for a file of this name
with spotlight and nothing turned up - any ideas. links  or references? This
episode combined with the one a couple of weeks back makes me think I have a
local wireless hacker.


Is your network unencrypted?

What is the name of this process as shown in Activity Monitor?

Using AM's "Inspect" button, what is the path to that executable file?

--
 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: Deleting files on Vista

2007-06-29 Thread Luis

Hiya,

Rev can issue shell commands, check the Dictionary.
But as a quickie: Get the user to run a terminal by going to Start/ 
Run and type 'cmd' in the panel, then hit return.
When the terminal is up, ask them to type 'dir > output.txt' and then  
return. Ask them to attach the output.txt file to an email.


Cheers,

Luis.


On 29 Jun 2007, at 16:44, Shari wrote:


Hiya,

What about writing a little test app for the user to install and run.
After installing, the test app sends the 'cd ..' and 'dir'  
commands to the shell. Grab that output, should tell you the  
directory it's in.

Haven't tried this btw...

Cheers,

Luis.


Luis,

I don't know how to write shell() commands.  I only know  
Transcript, which supports shell but doesn't tell you how to write  
them :-)


I know how to search the list and copy shell commands I find  
posted, but that's the extent of it.


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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


Re: AW: Writing to Win programm files dir?

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 16:26:06 +0200, Tiemo Hollmann TB wrote:

> Hi Scott, ok, that's what I thought. And what do you do if the user can save
> data in your app / stack? Do you separate the app without saving feature,
> written to program files and other stacks with saving, writing to app data?
> Tiemo

Guys, this has all been covered already... :-)

Here's the basic problem for Vista:

  Tip: "Vista 'Gotchas' You Should Know About"
  http://www.sonsothunder.com/devres/revolution/tips/env007.htm

And the suggested approach has been in emails to the list (which I'm 
going to turn into another tip so I don't have to hunt it down each 
time):


Best would be to create your program with just a "stub" (also 
called "splash") executable (that all it does is launch and open 
another stack file on disk. This way, you can install your stub program 
in the Program Files folder, the rest of the running stack(s) that make 
up your program in the user's Application Data folder, and then save 
any data that the user generates into the user's Documents folder. 

What that translates to on XP and Vista is:

1) Main Executable Stub 
Install Location:  specialFolderPath(38)
Windows XP - C:\Program Files
Windows Vista - C:\Program Files

2) Additional Program Stacks
Install Location:  specialFolderPath(26)
Windows XP - C:\Documents and Settings\Ken\Application Data
Windows Vista - C:\Users\Ken\AppData\Roaming

3) Generated User Documents
Install Location:  specialFolderPath(5)  [another form is 
specialFolderPath("documents")]
Windows XP - C:\Documents and Settings\Ken\My Documents
Windows Vista - C:\Users\Ken\Documents

If you don't already have this page bookmarked, I would suggest it:

Tip file010: 'specialFolderPath' Codes
http://www.sonsothunder.com/devres/revolution/tips/file010.htm



> Where would you put a file that the app itself needs to update, 
> regardless of which user is running it? I've been putting that file 
> into an "all users/application data/myapp/" folder but if there are 
> permissions problems with that, what then?

Well, there's the rub - there isn't a simple answer. The problem is 
that for truly "locked down" users, the application itself would need 
to elevate its permissions to take actions that the currently logged-in 
user's permissions do not allow. OS X we can do with "sudo" and get 
authorization; Trevor just found a way to ask for authorization under 
Vista, but for other Windows flavors there isn't a solution for 
Revolution that's been made known.

What I've ended up needing to do is to request that Windows users get 
added to the "Power Users" group, which gives them some form of 
elevated access, but doesn't quite make them "Administrators". However 
some companies won't even allow that...



So the bottom line is that until we have an "All Users" solution in 
place for all platforms, best is to either install for a single user or 
to get someone with Admin privileges to install for All Users (they may 
have to authenticate or acknowlege a security dialog in Vista if the 
User Account Control is turned on).

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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: Deleting files on Vista

2007-06-29 Thread Scott Kane
- Original Message - 
From: "Ken Ray" <[EMAIL PROTECTED]>



  C:\Users\\AppData\Local\VirtualStore\Program
Files\\


Ken is right.  However I've had an issue with a user who changed their 
account name and then changed it back (heaven only knows why) and it 
completely messed things up.  Getting a novice user to debug when they do 
crazy things (which they probably don't mean to do) is not a great idea.


Interesting problem I was reading about tonight where Vista fails to 
recognise signed app's.  Haven't got the details yet but basically it 
refused to run the application period - even though it popped the admin 
password request dialog. Doesn't do it under RC2 - just the release version. 
Seems there are a number of things we are yet to discover about this 
particular OS.


Scott Kane 


___
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: security, wireless hacks and more paranoia....

2007-06-29 Thread David Bovill

Not meaning to trouble the harmony of this list, but well strange things
keep happing on my network... this time no music being played, but while
browsing a little dialog popped up I take it from teh browser - but it had a
safari icon in the dialog which basically said something along the lines of
"Downloading file wap.x.jar" - which I did not appreciate.

As I was coding at the time - this dialog came out of the blue and as I had
idea where it came from - well i quickly switched of the wifi and started to
search for this file (in the mean time the dialog disappeared - it never
asked if I wanted to download the file). I searched for a file of this name
with spotlight and nothing turned up - any ideas. links  or references? This
episode combined with the one a couple of weeks back makes me think I have a
local wireless hacker.

  -
  http://www.informit.com/guides/content.asp?g=security&SeqNum=158&rl=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


Re: AW: Writing to Win programm files dir?

2007-06-29 Thread Scott Kane

From: "Ken Ray" <[EMAIL PROTECTED]>


Guys, this has all been covered already... :-)


Thanks, Ken.  I wanted to help, but I've not had enough sleep and forgot 
about your great work on this.


Scott Kane
Moderator comp.software.shareware.* 


___
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: List Fields and clickLine

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 08:48:52 -0500, Randy Hengst wrote:

> Thanks, I started an account and downloaded it. I'm sure you've 
> heard, but your work on it is very nice. I've read about it when it 
> has been referred to on the list -- now I understand its value.

Thanks!

> I'm afraid it made no difference. The problem is still shown during 
> click and drag.

Ah.. do you're clicking and *dragging*... just so I can replicate what 
you're seeing, in the example you gave before (three lines of data in a 
list field) where are you clicking, and where are you dragging to?


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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


AW: AW: Writing to Win programm files dir?

2007-06-29 Thread Tiemo Hollmann TB
Sorry Ken for not searching deep enough, before posting. Great and helpful
work! I WILL bookmark your post immediately :)
Tiemo

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Ken Ray
Gesendet: Freitag, 29. Juni 2007 17:45
An: How to use Revolution
Betreff: Re: AW: Writing to Win programm files dir?

On Fri, 29 Jun 2007 16:26:06 +0200, Tiemo Hollmann TB wrote:

> Hi Scott, ok, that's what I thought. And what do you do if the user can
save
> data in your app / stack? Do you separate the app without saving feature,
> written to program files and other stacks with saving, writing to app
data?
> Tiemo

Guys, this has all been covered already... :-)

Here's the basic problem for Vista:

  Tip: "Vista 'Gotchas' You Should Know About"
  http://www.sonsothunder.com/devres/revolution/tips/env007.htm

And the suggested approach has been in emails to the list (which I'm 
going to turn into another tip so I don't have to hunt it down each 
time):


Best would be to create your program with just a "stub" (also 
called "splash") executable (that all it does is launch and open 
another stack file on disk. This way, you can install your stub program 
in the Program Files folder, the rest of the running stack(s) that make 
up your program in the user's Application Data folder, and then save 
any data that the user generates into the user's Documents folder. 

What that translates to on XP and Vista is:

1) Main Executable Stub 
Install Location:  specialFolderPath(38)
Windows XP - C:\Program Files
Windows Vista - C:\Program Files

2) Additional Program Stacks
Install Location:  specialFolderPath(26)
Windows XP - C:\Documents and Settings\Ken\Application Data
Windows Vista - C:\Users\Ken\AppData\Roaming

3) Generated User Documents
Install Location:  specialFolderPath(5)  [another form is 
specialFolderPath("documents")]
Windows XP - C:\Documents and Settings\Ken\My Documents
Windows Vista - C:\Users\Ken\Documents

If you don't already have this page bookmarked, I would suggest it:

Tip file010: 'specialFolderPath' Codes
http://www.sonsothunder.com/devres/revolution/tips/file010.htm



> Where would you put a file that the app itself needs to update, 
> regardless of which user is running it? I've been putting that file 
> into an "all users/application data/myapp/" folder but if there are 
> permissions problems with that, what then?

Well, there's the rub - there isn't a simple answer. The problem is 
that for truly "locked down" users, the application itself would need 
to elevate its permissions to take actions that the currently logged-in 
user's permissions do not allow. OS X we can do with "sudo" and get 
authorization; Trevor just found a way to ask for authorization under 
Vista, but for other Windows flavors there isn't a solution for 
Revolution that's been made known.

What I've ended up needing to do is to request that Windows users get 
added to the "Power Users" group, which gives them some form of 
elevated access, but doesn't quite make them "Administrators". However 
some companies won't even allow that...



So the bottom line is that until we have an "All Users" solution in 
place for all platforms, best is to either install for a single user or 
to get someone with Admin privileges to install for All Users (they may 
have to authenticate or acknowlege a security dialog in Vista if the 
User Account Control is turned on).

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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

___
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: Deleting files on Vista

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 10:23:11 -0400, Shari wrote:

> I'm trying to troubleshoot a problem for a fellow on Vista.  And he's 
> not very forthcoming with info.  Or rather, his description is simply 
> wrong when I ask him questions, or he doesn't answer the question 
> asked, but provides other non-related info instead.  So I do not 
> trust that he has followed my instructions :-)
> 
> In Vista, if I can create files to a location, shouldn't I also be 
> able to delete them?  Is there any chance that Vista allows creation, 
> but not deletion?

First of all, where are you creating the files? Is it in the Program 
Files folder? If so, it will be virtualized to:

   C:\Users\\AppData\Local\VirtualStore\Program 
Files\\

So this:

> put specialFolderPath(x) & "/VirtualStore" into dPath
> put "/someFile" after dPath
>   if there is a file dPath then
> delete file dPath
>   end if

probably won't work... (This is covered in the Vista "Gotchas" tip at 
http://www.sonsothunder.com/devres/revolution/tips/env007.htm). 

> He does have Vista.  So does Vista allow create and not delete?
> 
> And is it possible to delete from VirtualStore?

Yes... in fact I've been able to delete from the VirtualStore even with 
UAC turned on. So I just think it's a path issue. Best would be to 
check to see if the file exists before you try to delete it, IMHO.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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: Finding cr Character in Lines read from a file???

2007-06-29 Thread Dave


On 29 Jun 2007, at 16:44, Mark Smith wrote:

So are the crs being translated to lfs (or crlfs) somehow by your  
external?


No, the external writes and reads real cr characters, e.g. 0x0D.



In any case, in Revolution, lf and cr are the same (0x0A), so if  
you have actual crs (0x0D), then you'll need to search for numToChar 
(13).


Yes, that's what I was looking for. Thanks a lot.
All the Best
Dave


___
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: Deleting files on Vista

2007-06-29 Thread Shari

Hiya,

What about writing a little test app for the user to install and run.
After installing, the test app sends the 'cd ..' and 'dir' commands 
to the shell. Grab that output, should tell you the directory it's 
in.

Haven't tried this btw...

Cheers,

Luis.


Luis,

I don't know how to write shell() commands.  I only know Transcript, 
which supports shell but doesn't tell you how to write them :-)


I know how to search the list and copy shell commands I find posted, 
but that's the extent of it.


Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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: Unit Tests

2007-06-29 Thread David Bovill

On 28/06/07, Mark Wieder <[EMAIL PROTECTED]> wrote:


David-

> The idea I am working on at the moment is that the handlers are kept as
> text
> files on the server and that these text files also include a full suite
of
> tests to run against the hander.

I store my RUnit tests and suites in a sqlite database. Is that what you
had
in mind?



Yes - except i was planning to store them as text files optionally indexed
by an sqlite database - so the test can go in svn. Any examples you can
share?
___
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: Deleting files on Vista

2007-06-29 Thread Luis

Ooops! Don't need the 'cd ..' just 'dir'.

Directory path should be on the fourth line.

Cheers,

Luis.


On 29 Jun 2007, at 16:18, Luis wrote:


Hiya,

What about writing a little test app for the user to install and run.
After installing, the test app sends the 'cd ..' and 'dir' commands  
to the shell. Grab that output, should tell you the directory it's in.

Haven't tried this btw...

Cheers,

Luis.



On 29 Jun 2007, at 15:56, Shari wrote:

Not to my knowledge as there is no real way of knowing where  
Vista is going to pop those files.  That's the problem with VS -  
IMHO.  In addition there is every likelyhood that VS will not be  
in future editions of Windows and or may change in the service  
packs for Vista.  It's best to avoid virtual store like the  
plague.  It's unpredictable and can completely alter if your user  
turns UAC on and off.


Scott Kane



VirtualStore disappear someday?  Microsnot undo something bad they  
created?  Surely not!


I didn't write to VirtualStore, I am just wondering if my  
unstaller did indeed do its job, but that VirtualStore is storing  
a copy of the files wreaking havoc, preventing the new version  
from properly installing.  That's why the uninstaller polls for  
that location as well when deleting the files it created, in case  
Win itself did the duplicating.  Which would make you wonder if  
the permissions would indeed be set to Once Created, There Forever.


On launch, the app checks to see if the prefs files exist.  If  
not, it creates them.  According to him, even after running the  
uninstaller, the app is acting like the old files still exist so  
it is not creating new ones.   This is problematic because I  
changed some fundamental things in the app, and it needs to create  
the newer files to run properly.


I've instructed the fellow to do a full search of his drive for  
the folder my app creates for its pref files, and to look in  
VirtualStore as well.  I do not know if he will do this, or is  
even capable of doing it.


Very frustrating!

Shari


--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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


Re: Astrology and Art

2007-06-29 Thread Bill Marriott
It's interesting you ask about this. Revolution is used to create what is 
perhaps the most powerful and sophisticated astrology program out there: 
Astrological Bureau of Ideas (ABOI)

http://www.aboi.com



"Dale Pond" <[EMAIL PROTECTED]> wrote in 
message news:[EMAIL PROTECTED]
>A couple of newbie type questions.
>
> 1) Does anyone know of a Revolution stack or pluggin that calculates  an 
> astrological chart also giving the positions and houses?
>
> 2) What is the print resolution/format from drawings in Revolution?  Or 
> what format can be exported to be imported into say PhotoShop for 
> modification?
>
> Life, Light, Love & Laughter,
> Dale Pond
> Sympathetic Vibratory Physics
> http://www.svpvril.com/
> Be a victor - not a victim:
> http://www.free.tstn.com?KBID=2712
>
> ___
> 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: Finding cr Character in Lines read from a file???

2007-06-29 Thread Mark Smith
So are the crs being translated to lfs (or crlfs) somehow by your  
external?


In any case, in Revolution, lf and cr are the same (0x0A), so if you  
have actual crs (0x0D), then you'll need to search for numToChar(13).


Best,

Mark


On 29 Jun 2007, at 16:33, Dave wrote:


When I did a charToNum() on cr is returns 0x0A which is a lf!


___
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: Linux and After

2007-06-29 Thread Bob Warren

From: "Andre Garzia" <[EMAIL PROTECTED]>


 Let us stop this thread.
  


Scott Kane wrote:

OK.  I agree.  But as a final note it's important I make one observation 
about my own response.  Simply put I should not have written what I wrote 
and apologize without reservation to both Bob and the list.


--
No problem Scott. We all do what we think is right at the time. What is common 
to all of us is that we support Runtime Revolution because we believe in the 
product. It's a kind of love-affair which naturally gets a bit confusing at 
times.

And thanks to you Andre. Abraços.

Now I'm off before someone asks me to re-define the word "last" again!

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: Finding cr Character in Lines read from a file???

2007-06-29 Thread Mark Schonewille

You want to use numToChar(13).

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 29-jun-2007, om 17:33 heeft Dave het volgende geschreven:



On 29 Jun 2007, at 16:26, Devin Asay wrote:


It's because I'm not reading the file with RunRev, it's coming in  
via an external I've written to get around the >2GB File Limit  
problem in RunRev.


So, how can I get the *Real* Value of cr??


___
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 Upload: put or liburlftpuploadfile

2007-06-29 Thread runrev260805
Hi,

i want to upload 5 files (3 Excel files and 2 textfile) with ftp onto my server 
with my rev app.

I tried "put url" . This works, but i want to write a logfile, which stores the 
names of the uploaded file, the time/date of the upload and if the upload was 
successfull or not.
As is understand the "urlstatus of" does not work here. So i tried the upload 
with liburlftpuploadfile. As this is a non blocking, is there any way to wait 
until the final status of the upload of the first file exists? I want to upload 
file by file and want to write after each upload the logfile.


Regards,

Matthias


___
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: Finding cr Character in Lines read from a file???

2007-06-29 Thread Dave


On 29 Jun 2007, at 16:26, Devin Asay wrote:



On Jun 29, 2007, at 9:06 AM, Dave wrote:


Hi,

I have a file that has "cr" (0x0D) terminators on each line.

If I have the line in "myLine" and do this:

repeat with myIndex = 1 to the length of  myLine
if char myIndex of myLine = cr then
--do something at end of line
end if
end repeat

It never finds the cr. I looked in the file and conformed that the  
lines end in a single cr character.


When I did a charToNum() on cr is returns 0x0A which is a lf!


Internally in Rev, all line delimiters are LF, showing Rev's unix  
heritage. When Rev writes a text file to disk, it converts the line  
delimiter to whatever is the convention for the host OS--ASCII 13  
for Mac, ASCII 13 + 10 for Win, and ASCII 10 for *nix. Conversely,  
when it reads text files, it converts line delimiters to ASCII 10.


What gives? How can I find the real cr is a variable?


It's because I'm not reading the file with RunRev, it's coming in via  
an external I've written to get around the >2GB File Limit problem in  
RunRev.


So, how can I get the *Real* Value of cr??

In the real code, I have a ReadUntil() function, this takes a  
character parameter for the "until" character. The function is  
defined like so:


function ReadUntil theFileForkRef,theUntilChar,@theDataBuffer

and I call it like so:

put ReadUntil(myFileForkRef,cr,myDataBuffer) into myOSStatus

Thanks a lot
All the Best
Dave

___
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: Finding cr Character in Lines read from a file???

2007-06-29 Thread Mark Schonewille

Hi Dave,

Probably, your file contains actual returns (ASCII 13), which are  
translated to linefeeds by Revolution, if the file is read as text.  
To make it "easy", linefeed, lf, cr and return all return ASCII 10  
rather than ASCII 13. Only crlf contains both a real linefeed and a  
real return character. If you want to use an actual carriage return,  
use numtochar(13).


If you are parsing lines, you might never get at the linefeed. Syntax  
like


put line 1 of myVar

will never include the line delimiter. It is not considered part of  
the line.


There are two things you can do. Either read the file as binary data  
and search for ASCII 13.


open file myFile for binary read
read from file myFile until EOF
put it into myVar
close file myFile
-- now do whatever you want to do with it
replace numToChar(13) with "%" in myVar

or read the file as text and handle the linefeeds

open file myFile for read
read from file myFile until EOF
put it into myVar
close file myFile
-- now do whatever you want to do with it
replace cr with "%" in myVar

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 29-jun-2007, om 17:06 heeft Dave het volgende geschreven:


Hi,

I have a file that has "cr" (0x0D) terminators on each line.

If I have the line in "myLine" and do this:

repeat with myIndex = 1 to the length of  myLine
if char myIndex of myLine = cr then
--do something at end of line
end if
end repeat

It never finds the cr. I looked in the file and conformed that the  
lines end in a single cr character.


When I did a charToNum() on cr is returns 0x0A which is a lf!

What gives? How can I find the real cr is a variable?


All the Best
Dave



___
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: Finding cr Character in Lines read from a file???

2007-06-29 Thread Devin Asay


On Jun 29, 2007, at 9:06 AM, Dave wrote:


Hi,

I have a file that has "cr" (0x0D) terminators on each line.

If I have the line in "myLine" and do this:

repeat with myIndex = 1 to the length of  myLine
if char myIndex of myLine = cr then
--do something at end of line
end if
end repeat

It never finds the cr. I looked in the file and conformed that the  
lines end in a single cr character.


When I did a charToNum() on cr is returns 0x0A which is a lf!


Internally in Rev, all line delimiters are LF, showing Rev's unix  
heritage. When Rev writes a text file to disk, it converts the line  
delimiter to whatever is the convention for the host OS--ASCII 13 for  
Mac, ASCII 13 + 10 for Win, and ASCII 10 for *nix. Conversely, when  
it reads text files, it converts line delimiters to ASCII 10.


What gives? How can I find the real cr is a variable?


Dave,

I think it's because you are looking at the *line*. Since cr is the  
line delimiter, it is never included in the text of, say, 'line 3 of  
myMultiLineVar'. Instead, look at the whole container:


repeat with myIndex = 1 to the length of myMultiLineVar

HTH,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Deleting files on Vista

2007-06-29 Thread Luis

Hiya,

What about writing a little test app for the user to install and run.
After installing, the test app sends the 'cd ..' and 'dir' commands  
to the shell. Grab that output, should tell you the directory it's in.

Haven't tried this btw...

Cheers,

Luis.



On 29 Jun 2007, at 15:56, Shari wrote:

Not to my knowledge as there is no real way of knowing where Vista  
is going to pop those files.  That's the problem with VS - IMHO.   
In addition there is every likelyhood that VS will not be in  
future editions of Windows and or may change in the service packs  
for Vista.  It's best to avoid virtual store like the plague.   
It's unpredictable and can completely alter if your user turns UAC  
on and off.


Scott Kane



VirtualStore disappear someday?  Microsnot undo something bad they  
created?  Surely not!


I didn't write to VirtualStore, I am just wondering if my unstaller  
did indeed do its job, but that VirtualStore is storing a copy of  
the files wreaking havoc, preventing the new version from properly  
installing.  That's why the uninstaller polls for that location as  
well when deleting the files it created, in case Win itself did the  
duplicating.  Which would make you wonder if the permissions would  
indeed be set to Once Created, There Forever.


On launch, the app checks to see if the prefs files exist.  If not,  
it creates them.  According to him, even after running the  
uninstaller, the app is acting like the old files still exist so it  
is not creating new ones.   This is problematic because I changed  
some fundamental things in the app, and it needs to create the  
newer files to run properly.


I've instructed the fellow to do a full search of his drive for the  
folder my app creates for its pref files, and to look in  
VirtualStore as well.  I do not know if he will do this, or is even  
capable of doing it.


Very frustrating!

Shari


--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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


Re: Writing to Win programm files dir?

2007-06-29 Thread Stephen Barncard
I do it all the time in MacOSX. I edit in the IDE and save any stack 
in the package I need to (except the splash/startup stack of course). 
Never tried it in Windows though.




You can't save data to a stack embedded inside a standalone in Rev. 
Is that what you mean?


Scott Kane


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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


Finding cr Character in Lines read from a file???

2007-06-29 Thread Dave

Hi,

I have a file that has "cr" (0x0D) terminators on each line.

If I have the line in "myLine" and do this:

repeat with myIndex = 1 to the length of  myLine
if char myIndex of myLine = cr then
--do something at end of line
end if
end repeat

It never finds the cr. I looked in the file and conformed that the  
lines end in a single cr character.


When I did a charToNum() on cr is returns 0x0A which is a lf!

What gives? How can I find the real cr is a variable?


All the Best
Dave

___
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: Astrology and Art

2007-06-29 Thread Dave

Hi,

I have a file that has "cr" (0x0D) terminators on each line.

If I have the line in "myLine" and do this:

repeat with myIndex = 1 to the length of  myLine
if char myIndex of myLine = cr then
--do something at end of line
end if
end repeat

It never finds the cr. I looked in the file and conformed that the  
lines end in a single cr character.


When I did a charToNum() on cr is returns 0x0A which is a lf!

What gives? How can I find the real cr is a variable?


All the Best
Dave

___
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: Deleting files on Vista

2007-06-29 Thread Shari
Not to my knowledge as there is no real way of knowing where Vista 
is going to pop those files.  That's the problem with VS - IMHO.  In 
addition there is every likelyhood that VS will not be in future 
editions of Windows and or may change in the service packs for 
Vista.  It's best to avoid virtual store like the plague.  It's 
unpredictable and can completely alter if your user turns UAC on and 
off.


Scott Kane



VirtualStore disappear someday?  Microsnot undo something bad they 
created?  Surely not!


I didn't write to VirtualStore, I am just wondering if my unstaller 
did indeed do its job, but that VirtualStore is storing a copy of the 
files wreaking havoc, preventing the new version from properly 
installing.  That's why the uninstaller polls for that location as 
well when deleting the files it created, in case Win itself did the 
duplicating.  Which would make you wonder if the permissions would 
indeed be set to Once Created, There Forever.


On launch, the app checks to see if the prefs files exist.  If not, 
it creates them.  According to him, even after running the 
uninstaller, the app is acting like the old files still exist so it 
is not creating new ones.   This is problematic because I changed 
some fundamental things in the app, and it needs to create the newer 
files to run properly.


I've instructed the fellow to do a full search of his drive for the 
folder my app creates for its pref files, and to look in VirtualStore 
as well.  I do not know if he will do this, or is even capable of 
doing it.


Very frustrating!

Shari


--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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: Writing to Win programm files dir?

2007-06-29 Thread Scott Kane

From: "Tiemo Hollmann TB" <[EMAIL PROTECTED]>

Hi Scott, ok, that's what I thought. And what do you do if the user can 
save data in your app / stack? Do you separate the app without saving 
feature,
written to program files and other stacks with saving, writing to app 
data?


You can't save data to a stack embedded inside a standalone in Rev.  Is that 
what you mean?


Scott Kane 


___
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: Deleting files on Vista

2007-06-29 Thread Scott Kane

From: "Shari" <[EMAIL PROTECTED]>

Hi Shari,


He does have Vista.  So does Vista allow create and not delete?


AFAIK you should be able to delete.   However it may depend on where the 
files actually are.



And is it possible to delete from VirtualStore?


Not to my knowledge as there is no real way of knowing where Vista is going 
to pop those files.  That's the problem with VS - IMHO.  In addition there 
is every likelyhood that VS will not be in future editions of Windows and or 
may change in the service packs for Vista.  It's best to avoid virtual store 
like the plague.  It's unpredictable and can completely alter if your user 
turns UAC on and off.


Scott Kane 


___
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: Astrology and Art

2007-06-29 Thread Brent Anderson

Hello.

I've never seen an astrology stack or plugin made with Revolution,  
however if you're handy with making such calculations I wouldn't be  
surprised if you could make one pretty quickly. As for print  
resolution, Revolution can export graphics in most major formats  
(PNG, JPEG, GIF, EPS). Each of these go into Photoshop without worry.


Thanks,
Brent Anderson
Fiery Ferret
http://www.fieryferret.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


AW: Writing to Win programm files dir?

2007-06-29 Thread Tiemo Hollmann TB
Hi Scott, ok, that's what I thought. And what do you do if the user can save
data in your app / stack? Do you separate the app without saving feature,
written to program files and other stacks with saving, writing to app data?
Tiemo

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Scott Kane
Gesendet: Freitag, 29. Juni 2007 16:08
An: How to use Revolution
Betreff: Re: Writing to Win programm files dir?

From: "Tiemo Hollmann TB" <[EMAIL PROTECTED]>

> Hello, I have read (but not deep enough) that you may not or should not 
> write into files in the programm files / subdir directory on Win Vista
> because of user rights management / virtual store or something like this. 
> Is this really a bad style or even a KO, which brakes something and you 
> should
> only use the application data directory for INI files and stuff like this,

> or can I just go on, keeping everything thight together in my program 
> files
> folder?

For data storage it's out for Vista (by default).  Can be done under XP if 
the user is the admin but you can't rely on that anymore (we used to get 
away with it and shouldn't have been able to).  Vista will write your data 
out to virtual storage if UAC is turned on (default).  Best to write to My 
Documents or one of several folders under Documents and Settings.  In Rev My

Documents is handy and is suported by the SpecialFolders function.

Scott Kane 

___
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


Deleting files on Vista

2007-06-29 Thread Shari
I'm trying to troubleshoot a problem for a fellow on Vista.  And he's 
not very forthcoming with info.  Or rather, his description is simply 
wrong when I ask him questions, or he doesn't answer the question 
asked, but provides other non-related info instead.  So I do not 
trust that he has followed my instructions :-)


In Vista, if I can create files to a location, shouldn't I also be 
able to delete them?  Is there any chance that Vista allows creation, 
but not deletion?


The files in question would include text files created with "open 
file... write to file..." and stacks creating using "put... into 
binfile:..."


This fellows description of his problem tells me that files exist.  I 
told him to run the uninstaller built into the game and he claims to 
have done this, but based on his issue the files are still there.


My uninstalIer even includes VirtualStore.

# x tries several locations in a repeat loop
put specialFolderPath(x) & "/VirtualStore" into dPath
put "/someFile" after dPath
  if there is a file dPath then
delete file dPath
  end if

He does have Vista.  So does Vista allow create and not delete?

And is it possible to delete from VirtualStore?

Shari

--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.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: type ahead search and typing speed

2007-06-29 Thread Devin Asay


On Jun 28, 2007, at 6:59 PM, Mark Talluto wrote:



On Jun 28, 2007, at 5:02 PM, Devin Asay wrote:

I have looked at this one until I'm cross-eyed, and I can't figure  
out the problem.



Hi Devin,

I tried your program and found that if you changed the rawKeyUp to  
rawKeyDown one could not type faster than the routine.  That should  
do the trick.


Simple and brilliant, Mark! It was staring me in the face the whole  
time, and I didn't even think of it. Thanks!


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: type ahead search and typing speed

2007-06-29 Thread Devin Asay


On Jun 28, 2007, at 6:27 PM, Jim Ault wrote:

Without looking, I would say that you might be in the category of  
showing
the match in a field behind/above the entry field, thus the user  
selection
remains in the typing mode and the lookup merely updates the viz  
field with

the closest match.

How do you handle backspacing by the typist?


I simply delete the hilited portion of the name then pass it through  
the rawKeyUp handler.


What if the typist thinks 'Ander" is good enough, then decides that  
another

char or two is required after seeing the match string filled in?


They can just hit tab or return and the name is chosen.


Some programs show the choices in a dropDown menu and only do the  
complete

if the user chooses, let say, down arrow then tab key (like Excel)

Are you showing all choices or just one that is the closest?


I show all choices in a separate field that "pops up" beneath the  
entry field. I had tried combo boxes but that was a mess that didn't  
do the selection and scrolling the way I wanted.


Thanks for the feedback, Jim.

Devin



On 6/28/07 5:02 PM, "Devin Asay" <[EMAIL PROTECTED]> wrote:


Hi all,

I have looked at this one until I'm cross-eyed, and I can't figure
out the problem.

I am working on a program in which there are a couple of fields that
need to be filled in with user names. I keep a list of users in a
separate field. With some help from some of you here, I have
implemented a "type-ahead", auto-completion search that searches the
list of names with each keystroke, and auto-completes the entry field
if it finds that the string I have typed matches the beginning of one
of the names in the list. The rest of the matched name, the part I
haven't typed yet is added to the field, but remains selected. If I
hit return or tab, the matched name is left in the field. It's a
common feature, you see it in web browser URL fields, for example.

It all works fairly well, except for one big problem. If the user
types very rapidly, after 2 or 3 characters typed, and a name is
matched, the insertion point jumps to the end of the field, *after*
the selected auto-completed text, then characters are entered at the
end of the field, instead of staying at the original insertion point.

I'm afraid I'm not explaining it very well, but if anyone has a
couple of minutes and a pair of fresh eyeballs, would you mind
looking at:

go stack URL "http://asay.byu.edu/typeAheadSearch.rev";

Just start typing, say, my name, starting with the last name. You'll
see the list pop up and it will start to match "A" names. As long as
you type slowly you're fine. But as soon as you start typing fast--
try "anderson", for example--you'll see the problem I'm running into.

This example stack leaves out some of the details of key handling,
but demonstrates the problem.

I would appreciate any suggestions, and I'll be happy to share the
completed code with anyone who's interested.

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Astrology and Art

2007-06-29 Thread Dale Pond

A couple of newbie type questions.

1) Does anyone know of a Revolution stack or pluggin that calculates  
an astrological chart also giving the positions and houses?


2) What is the print resolution/format from drawings in Revolution?  
Or what format can be exported to be imported into say PhotoShop for  
modification?


Life, Light, Love & Laughter,
Dale Pond
Sympathetic Vibratory Physics
http://www.svpvril.com/
Be a victor - not a victim:
http://www.free.tstn.com?KBID=2712

___
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: Writing to Win programm files dir?

2007-06-29 Thread Scott Kane

From: "Tiemo Hollmann TB" <[EMAIL PROTECTED]>

Hello, I have read (but not deep enough) that you may not or should not 
write into files in the programm files / subdir directory on Win Vista
because of user rights management / virtual store or something like this. 
Is this really a bad style or even a KO, which brakes something and you 
should
only use the application data directory for INI files and stuff like this, 
or can I just go on, keeping everything thight together in my program 
files

folder?


For data storage it's out for Vista (by default).  Can be done under XP if 
the user is the admin but you can't rely on that anymore (we used to get 
away with it and shouldn't have been able to).  Vista will write your data 
out to virtual storage if UAC is turned on (default).  Best to write to My 
Documents or one of several folders under Documents and Settings.  In Rev My 
Documents is handy and is suported by the SpecialFolders function.


Scott Kane 


___
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: AW: The Art of Dissolving Splash Screens

2007-06-29 Thread Luis

Hiya,

There's no real ability for the HD to have folders, they are just an  
OS construct. Folders are files which point to where the files  
'inside' the folder are.
In a Mac app, the .app extension (if set to visible) just tells the  
OS that 'in there' lies an executable.


Cheers,

Luis.


On 29 Jun 2007, at 13:59, Stephen Barncard wrote:


Except in Windoze the user SEES the folder right there... right?
On the mac, you at least have to know how to open up a package and  
most users don't or don't care.


 That's a big difference to me and I would think to the users, and  
not the same thing. And when you double click a Win folder, you see  
the contents, not start the app. Wouldn't an uninformed user have  
the possibility to move the startup exe separately from the folder?


sqb  (thankfully not of the Windows world)


From: "Stephen Barncard" <[EMAIL PROTECTED]>

I didn't know that. I always thought a Windoze app usually  
consisted of a bunch of little files. I guess a multi stack  
project still is with Rev.


We call it a file.  It is a file.  But the file is broken up into  
segments (header etc).  Works exactly the same as a "bundle".   
It's just that we think of it as a file because that's how it's  
presented to us in the OS. The same can be said for folders  
(directories). They are no more "real" than files.  ;-)


Scott Kane


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: AW: The Art of Dissolving Splash Screens

2007-06-29 Thread Viktoras Didziulis
one can stuff almost anything - images, scripts, stylesheets into a dll file
and then use these resources through res:// protocol. Occasionally I used
Microsoft's HTA (Html application) technology before I found Revolution. It
allows to develop an application using html/css/javascript+activex, create
the "front" start.hta that loads and uses all the things (stylesheets,
javascripts, bitmaps) on request from whatever.dll like a SQL query.
 
Drawback of HTA is that it is MS Windows only and patented by Microsoft, so
unlikely to become multiplatform. However Adobe with its AIR somehow managed
to overcome patenting issues and is releasing similar thing for all
platforms. 
 
 Viktoras
---Original Message--- 
 
From: Scott Kane 
Date: 29/06/2007 15:43:42 
To: How to use Revolution 
Subject: Re: AW: The Art of Dissolving Splash Screens 
 
From: "Stephen Barncard" <[EMAIL PROTECTED]> 
 
>I didn't know that. I always thought a Windoze app usually consisted of a 
>bunch of little files. I guess a multi stack project still is with Rev. 
 
We call it a file. It is a file. But the file is broken up into segments 
(header etc). Works exactly the same as a "bundle". It's just that we 
think of it as a file because that's how it's presented to us in the OS. 
The same can be said for folders (directories). They are no more "real" 
than files. ;-) 
 
Scott Kane 
 
 
___ 
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: List Fields and clickLine

2007-06-29 Thread Randy Hengst

Hi Ken,


On Jun 29, 2007, at 5:32 AM, Ken Ray <[EMAIL PROTECTED]> wrote:


After you get an account, you should download RevZilla for future bug
logging - it's a lot easier to use and works right inside Rev:

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


Thanks, I started an account and downloaded it. I'm sure you've  
heard, but your work on it is very nice. I've read about it when it  
has been referred to on the list -- now I understand its value.



I also tried placing the clickLine in a variable and trapping for it
in the mouseMove, mouseStilldown, or dragMove, but none of them
really eliminates the problem -- the selected line just flickers as
you move up and down the list. I couldn't think of other options. If
you know of something else I could try, please let me know.


Sure - try wrapping the code in a lock screen/unlock screen combo - no
need to use mouseUp:

on mouseDown
lock screen
if the clickline is empty then
set the hilitedlines of me to empty
beep
else
put the value of the clickline
end if
unlock screen
end mouseDown

That should work...


I'm afraid it made no difference. The problem is still shown during  
click and drag.


take care,
randy hengst


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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


OT: Writing to Win programm files dir?

2007-06-29 Thread Tiemo Hollmann TB
Hello, I have read (but not deep enough) that you may not or should not
write into files in the programm files / subdir directory on Win Vista
because of user rights management / virtual store or something like this. Is
this really a bad style or even a KO, which brakes something and you should
only use the application data directory for INI files and stuff like this,
or can I just go on, keeping everything thight together in my program files
folder?

 

Thanks for sharing your knowledge and experience with this

Tiemo

 

 

 

 

___
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: AW: The Art of Dissolving Splash Screens

2007-06-29 Thread Scott Kane

From: "Stephen Barncard" <[EMAIL PROTECTED]>

Except in Windoze the user SEES the folder right there... right?  On the 
mac, you at least have to know how to open up a package and most users 
don't or don't care.


Yep.  That's why there are applications on the Mac for extracting picture 
resources from the packages.Of course on Windows you need a tool to 
do that because there is no OS supplied method of hacking executables 
(beyond WordPad ).


 That's a big difference to me and I would think to the users, and not the 
same thing. And when you double click a Win folder, you see the contents, 
not start the app. Wouldn't an uninformed user have the dpossibility to 
move the startup exe separately from the folder?


Yep.  It works exactly as you state and it's a pointless exercise really - 
but even programmers forget sometimes that what we work with and assume are 
not really what we're working with - really, kinda, sorta, some-what - ya 
know?   ;-)



Scott Kane 


___
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: AW: The Art of Dissolving Splash Screens

2007-06-29 Thread Stephen Barncard

Except in Windoze the user SEES the folder right there... right?
On the mac, you at least have to know how to open up a package and 
most users don't or don't care.


 That's a big difference to me and I would think to the users, and 
not the same thing. And when you double click a Win folder, you see 
the contents, not start the app. Wouldn't an uninformed user have the 
possibility to move the startup exe separately from the folder?


sqb  (thankfully not of the Windows world)


From: "Stephen Barncard" <[EMAIL PROTECTED]>

I didn't know that. I always thought a Windoze app usually 
consisted of a bunch of little files. I guess a multi stack project 
still is with Rev.


We call it a file.  It is a file.  But the file is broken up into 
segments (header etc).  Works exactly the same as a "bundle".  It's 
just that we think of it as a file because that's how it's presented 
to us in the OS. The same can be said for folders (directories). 
They are no more "real" than files.  ;-)


Scott Kane


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: implicitVars [Was: Re: Best Practices in Rev development]

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 11:31:31 +0100, Dave wrote:

> That's why I can't see the argument that's it's more typing, it 
> really isn't, and the bugs that can be caused by not declaring your 
> locals are so hard to find that I really can't see any reason not to 
> declare them.

Well, if you have a handler that is quite long (larger than one full 
screen's worth), you would have to keep scrolling up and down to copy 
and paste variables. If you copy and paste it may not be more *typing*, 
but it's still a PITA which you don't need to do if your variables are 
not declared. Personally, my feeling is "whatever works for you, works 
for you" - by that I mean that over the years of not declaring xTalk 
variables I have gotten to the point that the likelihood of me making 
an error in typing a variable is extremely low, so there really is very 
little benefit and a lot of extra hassle for me to start declaring 
them. But that's me... Anything that makes the process more efficient 
is good, IMHO.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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: AW: The Art of Dissolving Splash Screens

2007-06-29 Thread Scott Kane

From: "Stephen Barncard" <[EMAIL PROTECTED]>

I didn't know that. I always thought a Windoze app usually consisted of a 
bunch of little files. I guess a multi stack project still is with Rev.


We call it a file.  It is a file.  But the file is broken up into segments 
(header etc).  Works exactly the same as a "bundle".  It's just that we 
think of it as a file because that's how it's presented to us in the OS. 
The same can be said for folders (directories).  They are no more "real" 
than files.  ;-)


Scott Kane


___
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: AW: The Art of Dissolving Splash Screens

2007-06-29 Thread Stephen Barncard
I didn't know that. I always thought a Windoze app usually consisted 
of a bunch of little files. I guess a multi stack project still is 
with Rev.



From: "Stephen Barncard" <[EMAIL PROTECTED]>

With all due respect to Chipp, I really like the Mac application 
package system. You can put EVERYTHING you need in one, nice, clean 
package. Stacks, sounds, picture files, movie files, everything.


I agree it is nice.  But it has pararells with other executable 
formats.  On Windows (OK not in Rev but in other IDE's) I can do the 
same inside the exe and using a resource compiler or editor you can 
add or subtract them at will.  Technically the exe is just a package 
though we are used to thinking of them as files.  Perception I 
guess.  :-)


Scott Kane
Moderator comp.software.shareware.*


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: implicitVars [Was: Re: Best Practices in Rev development]

2007-06-29 Thread Dave


On 27 Jun 2007, at 04:17, Kay C Lan wrote:


On 6/26/07, Alex Tweedly <[EMAIL PROTECTED]> wrote:


This gives the advantage of a short, clean, easy-to-read script while
preserving the advantage of error detection. The need to respond  
to such

a dialog once per local variable would be (at least for me) a small
price to pay - and is certainly much lighter a burden than the  
need to

add a declaration for each.




I don't declare variables because I do find that it is easier to  
use the Var
Watcher to pick up typos than it is to go through the hassle of all  
the
extra typing to declare variables - where I can make extra typos  
anyway;-(


This is something I can't understand. When I edit code (whatever the  
language) I type the name of the variable once and once only and  
maybe I don't type the whole thing at all. I then use copy/paste to  
paste the variable into where it is being used. For instance, given  
the following:


local myRedValue
local myBlueValue
local myGreenValue
local myAverageValue

To get this, I typed "local myRedValue", then copied that line and  
pasted it back 3 times. Then edited "Red" to "Blue" and "Green" and  
"Average" in the 3 new lines.


Then to get this:

put (myRedValue  + myBlueValue  + myGreenValue) / 3  into myAverageValue

I typed "put ( + + ) / 3 into " and then copied/pasted myRedValue,  
myBlueValue, myGreenValue and myAverageValue into the correct positions.


In fact I used the same technique to do the above!

That's why I can't see the argument that's it's more typing, it  
really isn't, and the bugs that can be caused by not declaring your  
locals are so hard to find that I really can't see any reason not to  
declare them.


All the Best
Dave




___
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: lifURL -- FTP upload folder

2007-06-29 Thread Mark Schonewille

Hi Sivakatirswami,

Please post it as en enhancement request to the QCC. I'd vote for it  
if I had any votes left.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 29-jun-2007, om 4:55 heeft Sivakatirswami het volgende geschreven:

I'm not finding a facile cmd in libURL for uploading an entire  
directory.


libUrlFtpUploadFolder  does not exist

Am I missing something?

Of course we can jump thru hoops and do a "mkdir" first and
then repeat loop thru the files using libURLDownloadToFile
for each one in the new folder, but I was hoping for something
already glued together ... Anyone have script for this already done?
or is there a "secret" libURL cmd not in the docs?

TIA
Sivakatirswami


___
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