Re: Imagesource of char not working as expected in Windows

2010-01-08 Thread stephen barncard
Spaces in filepath names? Try filenames with no spaces, use underscores.




> The snapshots are saved to a location such as
>
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39
> AM]/graphics/image2.png
>
>
___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2010-01-08 Thread David Glasgow

On 1 Jan 2010, at 6:00 pm, Jacqueline Landman Gay wrote:

> From: "J. Landman Gay" 
> Date: 1 January 2010 4:52:38 pm GMT
> To: How to use Revolution 
> Subject: Re: Imagesource of char not working as expected in Windows
> Reply-To: How to use Revolution 
> 
> 
> Jim Ault wrote:
>> Of course this should make no difference...
>> try using parens
>> set the imageSource of last char of fld "ResultsT" to ("binfile:" & k)
>> answer ("binfile:" & k)
> 
> I was about the suggest the same thing. It does make a difference. The 
> parentheses are required to force evaluation.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

I have been busy on other stuff, so I am only just catching up with this.  I 
don't think I will mess with success on this one.  However, the parentheses 
thing is really useful to know.  I always understood they organised evaluation, 
but hadn't appreciated that they force it - which presumable might be what 
happens with a direct reference to a line in the field.  

Still don't quite grasp the platform issue though...

Thanks to all who chipped in.

David Glasgow
___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2010-01-01 Thread J. Landman Gay

Jim Ault wrote:

Of course this should make no difference...
try using parens
set the imageSource of last char of fld "ResultsT" to ("binfile:" & k)
answer ("binfile:" & k)


I was about the suggest the same thing. It does make a difference. The 
parentheses are required to force evaluation.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Imagesource of char not working as expected in Windows

2010-01-01 Thread Jim Ault

Of course this should make no difference...
try using parens
set the imageSource of last char of fld "ResultsT" to ("binfile:" & k)
answer ("binfile:" & k)


Of course, Win32 may like "\" instead of "/" in path names so try

replace "/" with "\" in k
set the imageSource of last char of fld "ResultsT" to "binfile:" & k
answer ("binfile:" & k)

On Jan 1, 2010, at 4:00 AM, David Glasgow wrote:


put the last line of field "snapshots" into k
set the imageSource of last char of fld "ResultsT" to "binfile:" & k

.. didn't.


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: Imagesource of char not working as expected in Windows

2010-01-01 Thread David Glasgow
Firstly, Happy New Year.

It has started well for me because with the help of the list I have solved the 
above.  Last problem of 2009, and first solution of 2010!

I tried pretty much all the suggestions.  (I skipped the suggestion of saving 
to the standalone folder, because the Windows virtualisation dragon would eat 
the data.)

I relabelled the path to avoid non vanilla characters...

I rescripted to save by changing the defaultfolder.

In fact, I rescripted several times to use different methods.  All worked in OS 
X, and none worked in Windows.

As far as I can make out, the problem is something to do with representing the 
path as a variable.  If the path was in quotes, it worked OK both as a script 
and in the message box.  If defined as a variable, it didn't work.  The 
solution was simply to refer directly to the line in the field containing the 
full path.  So, 

 set the imageSource of last char of fld "ResultsT" to "binfile:" & the last 
line of field "snapshots"

worked, but ..

put the last line of field "snapshots" into k
set the imageSource of last char of fld "ResultsT" to "binfile:" & k

.. didn't.

The only thing I could think of is that on Win a character in the URL which is 
benign on the Mac is interpreted as part of the address, but only when copied 
into a variable, not when read directly from the field.  Anyhoo.  Fixed now.

Now to get going with ScreenSteps, and make a manual.

Thanks again for all the suggestions.

David Glasgow



___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Jim Ault

My rule about paths on any system...
 -1- avoid spaces in path names
 -2- avoid dates in file and folder names, such as "hearth jpgs  
12/25/09"
An operating system can allow characters because it knows the  
difference between literal name characters and the control characters.


 -3- When accessing files and folders, do a test before using data to  
be sure the path exists, has correct permissions, etc.


such as

  if there is a folder "holidayFunPictures/"
  if there is a file "holidayFunShots/kids/snowFight.jpg"

Also
put binfile:a.png" into tempVariable
if tempVariable is not empty then
   --we have data

If your solution ever gets to the point of including shell commands,  
this adds another level testing to be sure of valid data processing. A  
standalone should always assume the users computer could have changes  
that prohibit access, such as user account changes and authorizations,  
operating system reinstalls, etc.


Hope this helps

Jim Ault
Las Vegas

On Dec 29, 2009, at 10:09 AM, Mike Bonner wrote:

Based on your test it looks like the comment about "vanilla  
characters" is

probably correct.  It works when using a string with no spaces for the
directory.  When you setup your string you used   put "C:\Documents  
and

Settings\zhangt\Desktop\imgFolder" into k

For the real directory you wish to use change it to this.
 put quote & "C:\Documents and Settings\zhangt\Desktop\directory with
spaces\ another with spaces" & quote into k



The following script works in a standalone created on Windows XP and
running on Windows XP.

on mouseUp
 put "~" after fld "aFld"
 put "C:\Documents and Settings\zhangt\Desktop\imgFolder" into k
 set the defaultFolder to k
 set the imageSource of last char of fld "aFld" to "binfile:a.png"
end mouseUp

Perhaps something gets undone when the script travels through the  
wormhole
from the Mac universe to the Windows universe. Does Dr. Who  
frequent this

forum?


___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Michael Kann
I think that the "binfile:" prefix is also necessary. 

--- On Tue, 12/29/09, Mike Bonner  wrote:

> From: Mike Bonner 
> Subject: Re: Imagesource of char not working as expected in Windows
> To: use-revolution@lists.runrev.com
> Date: Tuesday, December 29, 2009, 12:09 PM
> Based on your test it looks like the
> comment about "vanilla characters" is
> probably correct.  It works when using a string with
> no spaces for the
> directory.  When you setup your string you
> used   put "C:\Documents and
> Settings\zhangt\Desktop\imgFolder" into k
> 
> For the real directory you wish to use change it to this.
>   put quote & "C:\Documents and
> Settings\zhangt\Desktop\directory with
> spaces\ another with spaces" & quote into k
> 
> 
> > The following script works in a standalone created on
> Windows XP and
> > running on Windows XP.
> >
> > on mouseUp
> >   put "~" after fld "aFld"
> >   put "C:\Documents and
> Settings\zhangt\Desktop\imgFolder" into k
> >   set the defaultFolder to k
> >   set the imageSource of last char of
> fld "aFld" to "binfile:a.png"
> > end mouseUp
> >
> > Perhaps something gets undone when the script travels
> through the wormhole
> > from the Mac universe to the Windows universe. Does
> Dr. Who frequent this
> > forum?
> >
> >
> >
> >
> ___
> use-revolution mailing list
> use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Mike Bonner
Based on your test it looks like the comment about "vanilla characters" is
probably correct.  It works when using a string with no spaces for the
directory.  When you setup your string you used   put "C:\Documents and
Settings\zhangt\Desktop\imgFolder" into k

For the real directory you wish to use change it to this.
  put quote & "C:\Documents and Settings\zhangt\Desktop\directory with
spaces\ another with spaces" & quote into k


> The following script works in a standalone created on Windows XP and
> running on Windows XP.
>
> on mouseUp
>   put "~" after fld "aFld"
>   put "C:\Documents and Settings\zhangt\Desktop\imgFolder" into k
>   set the defaultFolder to k
>   set the imageSource of last char of fld "aFld" to "binfile:a.png"
> end mouseUp
>
> Perhaps something gets undone when the script travels through the wormhole
> from the Mac universe to the Windows universe. Does Dr. Who frequent this
> forum?
>
>
>
>
___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Michael Kann
Leaving out the binfile: prefix on Mac might be a forgivable offense that is 
punished on Windows. Is that the takehome lesson? We now must defer to the 
seasoned veterans of both platforms.


--- On Tue, 12/29/09, David Glasgow  wrote:

> From: David Glasgow 
> Subject: Re: Imagesource of char not working as expected in Windows
> To: use-revolution@lists.runrev.com
> Date: Tuesday, December 29, 2009, 6:18 AM
> 
> I didn't get any on-list responses to this, but got  a
> good steer from Richmond Mathewson (thanks!) off-list.
> 
> In brief, my standalone (RR 4.0) takes screenshots and
> saves them to disk.  They are also displayed in a field
> by appending a tilde to the field each time a snapshot is
> taken, and then setting the imagesource of the character to
> the url to which the image was saved.
> 
> This works under OS X, but not Windows.  I have
> wrestled with this and found out a little more, but still
> can't get the darned thing to work.  I moved the save
> location to docs, just in case there was something weird
> about the temporary items location.  I have tested on
> Vista and Win 7 with the same result.
> 
> The snapshots are saved to a location such as
> 
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39
> AM]/graphics/image2.png
> 
> A field called "snapshots" holds the list of URLs and is
> used like this:
> 
> set the imageSource of char 1 of last line of field
> "resultsG" to line 1 of field "snapshots"
> 
> In each case this script runs, the tilde disappears but is
> not replaced by anything.  The imagesource of each
> tilde is correctly reported if requested.  The fixed
> line height of the results field is set to false, and it has
> scrollbars.  However many URLs are referenced, but do
> not appear, the scrollbar never becomes active, so it seems
> that no 'blank' image is being displayed.  Setting the
> imagesource of any tilde to empty causes it to reappear, so
> something is happening to hide/show the character.
> 
> I also use the URLs stored in field "snapshots" to print
> the graphics using this script to populate a printer stack
> with the images:
> 
> 
>  put 1 into k
>    repeat for each line j in field
> "snapshots"
>       set the filename of image "pikcha" of
> card k of stack "grcprinter" to j
>       put k+1 into k
>    end repeat
> 
> This works fine, so unless there is some Windows Ju-Ju I
> don't know about (entirely possible) it really does look as
> though something is broken in imagesource under
> Windows.  
> 
> Can anyone:
> 
> 1/  Suggest where I am going wrong (if I am)
> 2/  Confirm that they do or do not have imagesource
> working under Windows
> 3/  Suggest a workaround
> 
> This is a critical feature in an almost finished project ,
> so I would really appreciate some help
> 
> David Glasgow
> 
> ___
> use-revolution mailing list
> use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Michael Kann
I think I've found the problem

put

C:\Documents and Settings\zhangt\Desktop\imgFolder\a.png

into line 1 of fld "snapshots"

Note in the script below you need a "binfile:" tacked on in front of the path.

on mouseUp
   put line 1 of field "snapshots" into k
   put "binfile:" before k
   set the imageSource of char 1 of last line of field "resultsG" to k
end mouseUp


Maybe you can include all those spaces and exotic characters in your path after 
all. 





--- On Tue, 12/29/09, David Glasgow  wrote:

> From: David Glasgow 
> Subject: Re: Imagesource of char not working as expected in Windows
> To: use-revolution@lists.runrev.com
> Date: Tuesday, December 29, 2009, 6:18 AM
> 
> I didn't get any on-list responses to this, but got  a
> good steer from Richmond Mathewson (thanks!) off-list.
> 
> In brief, my standalone (RR 4.0) takes screenshots and
> saves them to disk.  They are also displayed in a field
> by appending a tilde to the field each time a snapshot is
> taken, and then setting the imagesource of the character to
> the url to which the image was saved.
> 
> This works under OS X, but not Windows.  I have
> wrestled with this and found out a little more, but still
> can't get the darned thing to work.  I moved the save
> location to docs, just in case there was something weird
> about the temporary items location.  I have tested on
> Vista and Win 7 with the same result.
> 
> The snapshots are saved to a location such as
> 
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39
> AM]/graphics/image2.png
> 
> A field called "snapshots" holds the list of URLs and is
> used like this:
> 
> set the imageSource of char 1 of last line of field
> "resultsG" to line 1 of field "snapshots"
> 
> In each case this script runs, the tilde disappears but is
> not replaced by anything.  The imagesource of each
> tilde is correctly reported if requested.  The fixed
> line height of the results field is set to false, and it has
> scrollbars.  However many URLs are referenced, but do
> not appear, the scrollbar never becomes active, so it seems
> that no 'blank' image is being displayed.  Setting the
> imagesource of any tilde to empty causes it to reappear, so
> something is happening to hide/show the character.
> 
> I also use the URLs stored in field "snapshots" to print
> the graphics using this script to populate a printer stack
> with the images:
> 
> 
>  put 1 into k
>    repeat for each line j in field
> "snapshots"
>       set the filename of image "pikcha" of
> card k of stack "grcprinter" to j
>       put k+1 into k
>    end repeat
> 
> This works fine, so unless there is some Windows Ju-Ju I
> don't know about (entirely possible) it really does look as
> though something is broken in imagesource under
> Windows.  
> 
> Can anyone:
> 
> 1/  Suggest where I am going wrong (if I am)
> 2/  Confirm that they do or do not have imagesource
> working under Windows
> 3/  Suggest a workaround
> 
> This is a critical feature in an almost finished project ,
> so I would really appreciate some help
> 
> David Glasgow
> 
> ___
> use-revolution mailing list
> use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Michael Kann
The following script works in a standalone created on Windows XP and running on 
Windows XP. 

on mouseUp
   put "~" after fld "aFld"
   put "C:\Documents and Settings\zhangt\Desktop\imgFolder" into k
   set the defaultFolder to k
   set the imageSource of last char of fld "aFld" to "binfile:a.png"
end mouseUp

Perhaps something gets undone when the script travels through the wormhole from 
the Mac universe to the Windows universe. Does Dr. Who frequent this forum?




--- On Tue, 12/29/09, David Glasgow  wrote:

> From: David Glasgow 
> Subject: Re: Imagesource of char not working as expected in Windows
> To: use-revolution@lists.runrev.com
> Date: Tuesday, December 29, 2009, 6:18 AM
> 
> I didn't get any on-list responses to this, but got  a
> good steer from Richmond Mathewson (thanks!) off-list.
> 
> In brief, my standalone (RR 4.0) takes screenshots and
> saves them to disk.  They are also displayed in a field
> by appending a tilde to the field each time a snapshot is
> taken, and then setting the imagesource of the character to
> the url to which the image was saved.
> 
> This works under OS X, but not Windows.  I have
> wrestled with this and found out a little more, but still
> can't get the darned thing to work.  I moved the save
> location to docs, just in case there was something weird
> about the temporary items location.  I have tested on
> Vista and Win 7 with the same result.
> 
> The snapshots are saved to a location such as
> 
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39
> AM]/graphics/image2.png
> 
> A field called "snapshots" holds the list of URLs and is
> used like this:
> 
> set the imageSource of char 1 of last line of field
> "resultsG" to line 1 of field "snapshots"
> 
> In each case this script runs, the tilde disappears but is
> not replaced by anything.  The imagesource of each
> tilde is correctly reported if requested.  The fixed
> line height of the results field is set to false, and it has
> scrollbars.  However many URLs are referenced, but do
> not appear, the scrollbar never becomes active, so it seems
> that no 'blank' image is being displayed.  Setting the
> imagesource of any tilde to empty causes it to reappear, so
> something is happening to hide/show the character.
> 
> I also use the URLs stored in field "snapshots" to print
> the graphics using this script to populate a printer stack
> with the images:
> 
> 
>  put 1 into k
>    repeat for each line j in field
> "snapshots"
>       set the filename of image "pikcha" of
> card k of stack "grcprinter" to j
>       put k+1 into k
>    end repeat
> 
> This works fine, so unless there is some Windows Ju-Ju I
> don't know about (entirely possible) it really does look as
> though something is broken in imagesource under
> Windows.  
> 
> Can anyone:
> 
> 1/  Suggest where I am going wrong (if I am)
> 2/  Confirm that they do or do not have imagesource
> working under Windows
> 3/  Suggest a workaround
> 
> This is a critical feature in an almost finished project ,
> so I would really appreciate some help
> 
> David Glasgow
> 
> ___
> use-revolution mailing list
> use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Michael Kann
The following script works for me on Windows XP Pro in a stack. I'll build a 
standalone and see what happens.

on mouseUp
   put "~" after fld "aFld"
   put "C:\Documents and Settings\zhangt\Desktop\imgFolder" into k
   set the defaultFolder to k
   set the imageSource of last char of fld "aFld" to "binfile:a.png"
end mouseUp

The image is only the height of the char it replaces. 

Can I assume that your first concern is to get something working rather than 
figuring out what might be wrong?

E-mail off-list any time. I'm trying to learn RunRev and it's fun to learn 
together.




--- On Tue, 12/29/09, David Glasgow  wrote:

> From: David Glasgow 
> Subject: Re: Imagesource of char not working as expected in Windows
> To: use-revolution@lists.runrev.com
> Date: Tuesday, December 29, 2009, 6:18 AM
> 
> I didn't get any on-list responses to this, but got  a
> good steer from Richmond Mathewson (thanks!) off-list.
> 
> In brief, my standalone (RR 4.0) takes screenshots and
> saves them to disk.  They are also displayed in a field
> by appending a tilde to the field each time a snapshot is
> taken, and then setting the imagesource of the character to
> the url to which the image was saved.
> 
> This works under OS X, but not Windows.  I have
> wrestled with this and found out a little more, but still
> can't get the darned thing to work.  I moved the save
> location to docs, just in case there was something weird
> about the temporary items location.  I have tested on
> Vista and Win 7 with the same result.
> 
> The snapshots are saved to a location such as
> 
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39
> AM]/graphics/image2.png
> 
> A field called "snapshots" holds the list of URLs and is
> used like this:
> 
> set the imageSource of char 1 of last line of field
> "resultsG" to line 1 of field "snapshots"
> 
> In each case this script runs, the tilde disappears but is
> not replaced by anything.  The imagesource of each
> tilde is correctly reported if requested.  The fixed
> line height of the results field is set to false, and it has
> scrollbars.  However many URLs are referenced, but do
> not appear, the scrollbar never becomes active, so it seems
> that no 'blank' image is being displayed.  Setting the
> imagesource of any tilde to empty causes it to reappear, so
> something is happening to hide/show the character.
> 
> I also use the URLs stored in field "snapshots" to print
> the graphics using this script to populate a printer stack
> with the images:
> 
> 
>  put 1 into k
>    repeat for each line j in field
> "snapshots"
>       set the filename of image "pikcha" of
> card k of stack "grcprinter" to j
>       put k+1 into k
>    end repeat
> 
> This works fine, so unless there is some Windows Ju-Ju I
> don't know about (entirely possible) it really does look as
> though something is broken in imagesource under
> Windows.  
> 
> Can anyone:
> 
> 1/  Suggest where I am going wrong (if I am)
> 2/  Confirm that they do or do not have imagesource
> working under Windows
> 3/  Suggest a workaround
> 
> This is a critical feature in an almost finished project ,
> so I would really appreciate some help
> 
> David Glasgow
> 
> ___
> use-revolution mailing list
> use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Michael Kann
David, I'm on XP Pro so I can check it out for you.

Is it working in the stack on Windows before you made the standalone. Or did 
you create the standalone from a stack on the Mac? 

In other words, is the fact that it is a standalone important?

First, you might be tempting fate to use anything but vanilla flavored 
characters in a path name. 

Instead of 

C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
AM]/graphics/image1.png

I'd try 

C:/Users/DavidG/Documents/good/wonderful/graphics/image1.png

Another thing to consider is the defaultFolder.

You might try placing the images in the same folder as the standalone.

 



--- On Tue, 12/29/09, David Glasgow  wrote:

> From: David Glasgow 
> Subject: Re: Imagesource of char not working as expected in Windows
> To: use-revolution@lists.runrev.com
> Date: Tuesday, December 29, 2009, 6:18 AM
> 
> I didn't get any on-list responses to this, but got  a
> good steer from Richmond Mathewson (thanks!) off-list.
> 
> In brief, my standalone (RR 4.0) takes screenshots and
> saves them to disk.  They are also displayed in a field
> by appending a tilde to the field each time a snapshot is
> taken, and then setting the imagesource of the character to
> the url to which the image was saved.
> 
> This works under OS X, but not Windows.  I have
> wrestled with this and found out a little more, but still
> can't get the darned thing to work.  I moved the save
> location to docs, just in case there was something weird
> about the temporary items location.  I have tested on
> Vista and Win 7 with the same result.
> 
> The snapshots are saved to a location such as
> 
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39
> AM]/graphics/image2.png
> 
> A field called "snapshots" holds the list of URLs and is
> used like this:
> 
> set the imageSource of char 1 of last line of field
> "resultsG" to line 1 of field "snapshots"
> 
> In each case this script runs, the tilde disappears but is
> not replaced by anything.  The imagesource of each
> tilde is correctly reported if requested.  The fixed
> line height of the results field is set to false, and it has
> scrollbars.  However many URLs are referenced, but do
> not appear, the scrollbar never becomes active, so it seems
> that no 'blank' image is being displayed.  Setting the
> imagesource of any tilde to empty causes it to reappear, so
> something is happening to hide/show the character.
> 
> I also use the URLs stored in field "snapshots" to print
> the graphics using this script to populate a printer stack
> with the images:
> 
> 
>  put 1 into k
>    repeat for each line j in field
> "snapshots"
>       set the filename of image "pikcha" of
> card k of stack "grcprinter" to j
>       put k+1 into k
>    end repeat
> 
> This works fine, so unless there is some Windows Ju-Ju I
> don't know about (entirely possible) it really does look as
> though something is broken in imagesource under
> Windows.  
> 
> Can anyone:
> 
> 1/  Suggest where I am going wrong (if I am)
> 2/  Confirm that they do or do not have imagesource
> working under Windows
> 3/  Suggest a workaround
> 
> This is a critical feature in an almost finished project ,
> so I would really appreciate some help
> 
> David Glasgow
> 
> ___
> use-revolution mailing list
> use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread Éric Miclo
Hello,

I'm not sure it can help, but did you try to use an other char than a tilde?

Best,

ÉrIC

Le 29 déc. 2009 à 13:18, David Glasgow a écrit :

> 
> 
> I didn't get any on-list responses to this, but got  a good steer from 
> Richmond Mathewson (thanks!) off-list.
> 
> In brief, my standalone (RR 4.0) takes screenshots and saves them to disk.  
> They are also displayed in a field by appending a tilde to the field each 
> time a snapshot is taken, and then setting the imagesource of the character 
> to the url to which the image was saved.
> 
> This works under OS X, but not Windows.  I have wrestled with this and found 
> out a little more, but still can't get the darned thing to work.  I moved the 
> save location to docs, just in case there was something weird about the 
> temporary items location.  I have tested on Vista and Win 7 with the same 
> result.
> 
> The snapshots are saved to a location such as
> 
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36 
> AM]/graphics/image1.png
> C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39 
> AM]/graphics/image2.png
> 
> A field called "snapshots" holds the list of URLs and is used like this:
> 
> set the imageSource of char 1 of last line of field "resultsG" to line 1 of 
> field "snapshots"
> 
> In each case this script runs, the tilde disappears but is not replaced by 
> anything.  The imagesource of each tilde is correctly reported if requested.  
> The fixed line height of the results field is set to false, and it has 
> scrollbars.  However many URLs are referenced, but do not appear, the 
> scrollbar never becomes active, so it seems that no 'blank' image is being 
> displayed.  Setting the imagesource of any tilde to empty causes it to 
> reappear, so something is happening to hide/show the character.
> 
> I also use the URLs stored in field "snapshots" to print the graphics using 
> this script to populate a printer stack with the images:
> 
> 
> put 1 into k
>  repeat for each line j in field "snapshots"
> set the filename of image "pikcha" of card k of stack "grcprinter" to j
> put k+1 into k
>  end repeat
> 
> This works fine, so unless there is some Windows Ju-Ju I don't know about 
> (entirely possible) it really does look as though something is broken in 
> imagesource under Windows.  
> 
> Can anyone:
> 
> 1/  Suggest where I am going wrong (if I am)
> 2/  Confirm that they do or do not have imagesource working under Windows
> 3/  Suggest a workaround
> 
> This is a critical feature in an almost finished project , so I would really 
> appreciate some help
> 
> David Glasgow
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

-- My NeXT computer will Be a Mac too! --

___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2009-12-29 Thread David Glasgow

I didn't get any on-list responses to this, but got  a good steer from Richmond 
Mathewson (thanks!) off-list.

In brief, my standalone (RR 4.0) takes screenshots and saves them to disk.  
They are also displayed in a field by appending a tilde to the field each time 
a snapshot is taken, and then setting the imagesource of the character to the 
url to which the image was saved.

This works under OS X, but not Windows.  I have wrestled with this and found 
out a little more, but still can't get the darned thing to work.  I moved the 
save location to docs, just in case there was something weird about the 
temporary items location.  I have tested on Vista and Win 7 with the same 
result.

The snapshots are saved to a location such as

C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-36 
AM]/graphics/image1.png
C:/Users/DavidG/Documents/This_Much!/Anon 12 28 08 [11-39 
AM]/graphics/image2.png

A field called "snapshots" holds the list of URLs and is used like this:

set the imageSource of char 1 of last line of field "resultsG" to line 1 of 
field "snapshots"

In each case this script runs, the tilde disappears but is not replaced by 
anything.  The imagesource of each tilde is correctly reported if requested.  
The fixed line height of the results field is set to false, and it has 
scrollbars.  However many URLs are referenced, but do not appear, the scrollbar 
never becomes active, so it seems that no 'blank' image is being displayed.  
Setting the imagesource of any tilde to empty causes it to reappear, so 
something is happening to hide/show the character.

I also use the URLs stored in field "snapshots" to print the graphics using 
this script to populate a printer stack with the images:


 put 1 into k
   repeat for each line j in field "snapshots"
  set the filename of image "pikcha" of card k of stack "grcprinter" to j
  put k+1 into k
   end repeat

This works fine, so unless there is some Windows Ju-Ju I don't know about 
(entirely possible) it really does look as though something is broken in 
imagesource under Windows.  

Can anyone:

1/  Suggest where I am going wrong (if I am)
2/  Confirm that they do or do not have imagesource working under Windows
3/  Suggest a workaround

This is a critical feature in an almost finished project , so I would really 
appreciate some help

David Glasgow

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


Imagesource of char not working as expected in Windows

2009-12-20 Thread David Glasgow
RevRunners

I capture, save and display within a scrolling field ("results") a series of 
screenshots as follows:

put specialfolderpath("temporary") & "/evapics/image" & the secs & ".png" into 
tdest
export snapshot from rect trect to file tdest as PNG
set the imagesource of char 1 of last line of field "results" to "binfile:/" & 
tdest

The character referred to is a tilde (~ or wiggleworm, if you prefer common 
usage) placed in the field a tad earlier.  On OSX , this works OK.  However, 
testing a standalone on Vista produces a results field displaying tildes but no 
images.  The images are being save to the temporary folder, so the path looks 
good and I am not falling into the virtualisation heffalump trap.  

I have studio for Mac, so can't debug this.  Any suggestions re what might be 
going on?

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