1. Don: Lost Mode of Operation in DSS

Hello Don,


I just thought i would let you know that we seem to have lost a mode
of operation in DSS3 that worked fine in my original Slide Show 
Picture Viewer.

This mode is: when you want to open a pic file with the viewer in
the command line such as for example:
  DSS3.exe "MyPicFile.jpg"
or something like that, or when you use another program to open the
viewer program with a certain pic file using Euphoria:
  system("DSS3.exe picfile.jpg",0)
or something like that.

Same problem trying to use Windows' SystemEx() C func call.

The main problem seems to be DSS3 can not find the sdata file when
the program is called from some other program or command line.
It finds it just fine when you double click on the 'bound' exe file,
but never works any other way. 
Apparently it relies on the current directory setting so it cant
find the sdata file when this directory is not the same as the
directory where the bound DSS3.exe file is located.
I would suggest getting the correct directory for the sdata file
from the command line command_line().

Perhaps you may wish to look into this?
I might too.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » topic index » view message » categorize

2. Re: Don: Lost Mode of Operation in DSS

Al Getz wrote:
> 
> Hello Don,
> 
> 
> I just thought i would let you know that we seem to have lost a mode
> of operation in DSS3 that worked fine in my original Slide Show 
> Picture Viewer.
> 
> This mode is: when you want to open a pic file with the viewer in
> the command line such as for example:
>   DSS3.exe "MyPicFile.jpg"
> or something like that, or when you use another program to open the
> viewer program with a certain pic file using Euphoria:
>   system("DSS3.exe picfile.jpg",0)
> or something like that.
> 
> Same problem trying to use Windows' SystemEx() C func call.
> 
> The main problem seems to be DSS3 can not find the sdata file when
> the program is called from some other program or command line.
> It finds it just fine when you double click on the 'bound' exe file,
> but never works any other way. 
> Apparently it relies on the current directory setting so it cant
> find the sdata file when this directory is not the same as the
> directory where the bound DSS3.exe file is located.
> I would suggest getting the correct directory for the sdata file
> from the command line command_line().
> 
> Perhaps you may wish to look into this?
> I might too.
> 
> 
> Al
> 
> 
> My bumper sticker: "I brake for LED's"

Hello Al,

If I read you corectly this happens when you try to open only one picture
with the Slide Show. What would be the point of that?
Anyways I will try your tests and see what happens. BTW did you try my Winlib to
wxEuphoria program ,I posted a few posts back?

Don Cole

new topic     » goto parent     » topic index » view message » categorize

3. Re: Don: Lost Mode of Operation in DSS

don cole wrote:
> 
> If I read you corectly this happens when you try to open only one picture
> with the Slide Show. What would be the point of that?
> Anyways I will try your tests and see what happens. BTW did you try my Winlib
> to
> wxEuphoria program ,I posted a few posts back?
> 
> Don Cole

Hello again Al,

  After thinking about it, I can see where one might want to zoom in/out just
one picture.

I'll look into it.

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Don: Lost Mode of Operation in DSS

don cole wrote:
> 
> Al Getz wrote:
> > 
> > Hello Don,
> > 
> > 
> > I just thought i would let you know that we seem to have lost a mode
> > of operation in DSS3 that worked fine in my original Slide Show 
> > Picture Viewer.
> > 
> > This mode is: when you want to open a pic file with the viewer in
> > the command line such as for example:
> >   DSS3.exe "MyPicFile.jpg"
> > or something like that, or when you use another program to open the
> > viewer program with a certain pic file using Euphoria:
> >   system("DSS3.exe picfile.jpg",0)
> > or something like that.
> > 
> > Same problem trying to use Windows' SystemEx() C func call.
> > 
> > The main problem seems to be DSS3 can not find the sdata file when
> > the program is called from some other program or command line.
> > It finds it just fine when you double click on the 'bound' exe file,
> > but never works any other way. 
> > Apparently it relies on the current directory setting so it cant
> > find the sdata file when this directory is not the same as the
> > directory where the bound DSS3.exe file is located.
> > I would suggest getting the correct directory for the sdata file
> > from the command line command_line().
> > 
> > Perhaps you may wish to look into this?
> > I might too.
> > 
> > 
> > Al
> > 
> > 
> > My bumper sticker: "I brake for LED's"
> 
> Hello Al,
> 
> If I read you corectly this happens when you try to open only one picture
> with the Slide Show. What would be the point of that?
> Anyways I will try your tests and see what happens. BTW did you try my Winlib
> to
> wxEuphoria program ,I posted a few posts back?
> 
> Don Cole

Hi again Don,


One of the points (which i use all the time) is to be able to 'open'
a picture from Windows Explorer, where you have all the files in
the right pane and you select one, right click on it, and use 'open with'
to open the picture, or, you set your system up so you can double click
on the file name to open that picture with DSS3.  Either way, you dont
have to first open DSS3 and then try to find the picture you want to
see by navigating through directories and whatnot.
I did this all the time with my viewer because it just seems to be
easier.  Also, once you open a pic in some directory through Windows
Explorer you can then go from pic to pic with the viewer same as you
would if you opened it first and then nav'd to the picture file.

To sum up...the viewer should be able to work like any 'normal'
Windows program in that you should be able to set it up on your system
to open files from any directory you choose through Windows Explorer.
It shouldnt take much and in fact i'll try something today to see if
it works.  I'll post results in a few minutes or so back here.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

5. Re: Don: Lost Mode of Operation in DSS

Al Getz wrote:
> 
> don cole wrote:
> > 
> > Al Getz wrote:
> > > 
> > > Hello Don,
> > > 
> > > 
> > > I just thought i would let you know that we seem to have lost a mode
> > > of operation in DSS3 that worked fine in my original Slide Show 
> > > Picture Viewer.
> > > 
> > > This mode is: when you want to open a pic file with the viewer in
> > > the command line such as for example:
> > >   DSS3.exe "MyPicFile.jpg"
> > > or something like that, or when you use another program to open the
> > > viewer program with a certain pic file using Euphoria:
> > >   system("DSS3.exe picfile.jpg",0)
> > > or something like that.
> > > 
> > > Same problem trying to use Windows' SystemEx() C func call.
> > > 
> > > The main problem seems to be DSS3 can not find the sdata file when
> > > the program is called from some other program or command line.
> > > It finds it just fine when you double click on the 'bound' exe file,
> > > but never works any other way. 
> > > Apparently it relies on the current directory setting so it cant
> > > find the sdata file when this directory is not the same as the
> > > directory where the bound DSS3.exe file is located.
> > > I would suggest getting the correct directory for the sdata file
> > > from the command line command_line().
> > > 
> > > Perhaps you may wish to look into this?
> > > I might too.
> > > 
> > > 
> > > Al
> > > 
> > > 
> > > My bumper sticker: "I brake for LED's"
> > 
> > Hello Al,
> > 
> > If I read you corectly this happens when you try to open only one picture
> > with the Slide Show. What would be the point of that?
> > Anyways I will try your tests and see what happens. BTW did you try my
> > Winlib
> > to
> > wxEuphoria program ,I posted a few posts back?
> > 
> > Don Cole
> 
> Hi again Don,
> 
> 
> One of the points (which i use all the time) is to be able to 'open'
> a picture from Windows Explorer, where you have all the files in
> the right pane and you select one, right click on it, and use 'open with'
> to open the picture, or, you set your system up so you can double click
> on the file name to open that picture with DSS3.  Either way, you dont
> have to first open DSS3 and then try to find the picture you want to
> see by navigating through directories and whatnot.
> I did this all the time with my viewer because it just seems to be
> easier.  Also, once you open a pic in some directory through Windows
> Explorer you can then go from pic to pic with the viewer same as you
> would if you opened it first and then nav'd to the picture file.
> 
> To sum up...the viewer should be able to work like any 'normal'
> Windows program in that you should be able to set it up on your system
> to open files from any directory you choose through Windows Explorer.
> It shouldnt take much and in fact i'll try something today to see if
> it works.  I'll post results in a few minutes or so back here.
> 
> 
> Al
> 
> 
> My bumper sticker: "I brake for LED's"

O.K. Al 

My mistake change line 1445 in dlixSS3.exw

from: data=load(start_dir&"//ssdata.dat")
to:   data=load(start_dir&"\\ssdata.dat")

And in the second line of Viewer_Globals.ew change

from:start_dir=current_dir() 
to:  start_dir=the_dir_you_actually_put_dlixss3.exe_in

That should fix it. let me know.

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Don: Lost Mode of Operation in DSS

don cole wrote:
> 
> 
> O.K. Al 
> 
> My mistake change line 1445 in dlixSS3.exw
> 
> from: data=load(start_dir&"//ssdata.dat")
> to:   data=load(start_dir&"\\ssdata.dat")
> 
> And in the second line of Viewer_Globals.ew change
> 
> from:start_dir=current_dir() 
> to:  start_dir=the_dir_you_actually_put_dlixss3.exe_in
> 
> That should fix it. let me know.
> 
> Don Cole

Hi there Don,


Yes, that will work, but what i did was make it automatically be able
to find the .exe file directory as you would normally want to happen...


--in file "GetInit.ew"

  global sequence comm
  sequence commline
  commline=command_line()

  comm=commline[2]
  for k=length(comm) to 1 by -1 do
    if comm[k]='\\' then
      comm=comm[1..k]
      exit
    end if
  end for

--end file

The only trick then is to 'include' GetInit.ew early in the program
(in the .exw file) and then load 'start_dir' with 'comm'...

  start_dir=comm

instead of how start_dir was loaded previously (as you suggested).

After binding the .exe file i tested several ways of opening
up a pic file using DSS3 and it worked great!
So...back to normal for me smile

I have a file in the archives that does this too, however,
sometimes you have to find two directories... the .exe
directory AND the directory where the target file is located.
This ends up being similar to working with an .ini file for a 
program.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

7. Re: Don: Lost Mode of Operation in DSS

Al Getz wrote:
> 
> don cole wrote:
> > 
> > 
> > O.K. Al 
> > 
> > My mistake change line 1445 in dlixSS3.exw
> > 
> > from: data=load(start_dir&"//ssdata.dat")
> > to:   data=load(start_dir&"\\ssdata.dat")
> > 
> > And in the second line of Viewer_Globals.ew change
> > 
> > from:start_dir=current_dir() 
> > to:  start_dir=the_dir_you_actually_put_dlixss3.exe_in
> > 
> > That should fix it. let me know.
> > 
> > Don Cole
> 
> Hi there Don,
> 
> 
> Yes, that will work, but what i did was make it automatically be able
> to find the .exe file directory as you would normally want to happen...
> 
> 
> --in file "GetInit.ew"
> 
>   global sequence comm
>   sequence commline
>   commline=command_line()
> 
>   comm=commline[2]
>   for k=length(comm) to 1 by -1 do
>     if comm[k]='\\' then
>       comm=comm[1..k]
>       exit
>     end if
>   end for
> 
> --end file
> 
> The only trick then is to 'include' GetInit.ew early in the program
> (in the .exw file) and then load 'start_dir' with 'comm'...
> 
>   start_dir=comm
> 
> instead of how start_dir was loaded previously (as you suggested).
> 
> After binding the .exe file i tested several ways of opening
> up a pic file using DSS3 and it worked great!
> So...back to normal for me smile
> 
> I have a file in the archives that does this too, however,
> sometimes you have to find two directories... the .exe
> directory AND the directory where the target file is located.
> This ends up being similar to working with an .ini file for a 
> program.
> 
> 
> Al
> 
> 
> My bumper sticker: "I brake for LED's"


Hello Al,

I'm sorry but I can't find GetInit.ew anywhere on my computer.

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Don: Lost Mode of Operation in DSS

don cole wrote:
> 
> Al Getz wrote:
> > 
> > don cole wrote:
> > > 
> > > 
> > > O.K. Al 
> > > 
> > > My mistake change line 1445 in dlixSS3.exw
> > > 
> > > from: data=load(start_dir&"//ssdata.dat")
> > > to:   data=load(start_dir&"\\ssdata.dat")
> > > 
> > > And in the second line of Viewer_Globals.ew change
> > > 
> > > from:start_dir=current_dir() 
> > > to:  start_dir=the_dir_you_actually_put_dlixss3.exe_in
> > > 
> > > That should fix it. let me know.
> > > 
> > > Don Cole
> > 
> > Hi there Don,
> > 
> > 
> > Yes, that will work, but what i did was make it automatically be able
> > to find the .exe file directory as you would normally want to happen...
> > 
> > 
> > --in file "GetInit.ew"
> > 
> >   global sequence comm
> >   sequence commline
> >   commline=command_line()
> > 
> >   comm=commline[2]
> >   for k=length(comm) to 1 by -1 do
> >     if comm[k]='\\' then
> >       comm=comm[1..k]
> >       exit
> >     end if
> >   end for
> > 
> > --end file
> > 
> > The only trick then is to 'include' GetInit.ew early in the program
> > (in the .exw file) and then load 'start_dir' with 'comm'...
> > 
> >   start_dir=comm
> > 
> > instead of how start_dir was loaded previously (as you suggested).
> > 
> > After binding the .exe file i tested several ways of opening
> > up a pic file using DSS3 and it worked great!
> > So...back to normal for me smile
> > 
> > I have a file in the archives that does this too, however,
> > sometimes you have to find two directories... the .exe
> > directory AND the directory where the target file is located.
> > This ends up being similar to working with an .ini file for a 
> > program.
> > 
> > 
> > Al
> > 
> > 
> > My bumper sticker: "I brake for LED's"
> 
> 
> Hello Al,
> 
> I'm sorry but I can't find GetInit.ew anywhere on my computer.
> 
> Don Cole

Hi there Don,

Oh no, the entire file "GetInit.ew" was shown in my post which i'll
repeat here...

This is the entire "GetInit.ew" file:

 --start file "GetInit.ew"
 
   global sequence comm
   sequence commline
   commline=command_line()
 
   comm=commline[2]
   for k=length(comm) to 1 by -1 do
     if comm[k]='\\' then
       comm=comm[1..k]
       exit
     end if
   end for
 
 --end file

Placed early on in the .exw file then 'comm' contains the
correct directory regardless of how the program is started
(Win Explorer double click or whatever).


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

9. Re: Don: Lost Mode of Operation in DSS

Al Getz wrote:


> 
> Hi there Don,
> 
> Oh no, the entire file "GetInit.ew" was shown in my post which i'll
> repeat here...
> 
> This is the entire "GetInit.ew" file:
> 
>  --start file "GetInit.ew"
>  
>    global sequence comm
>    sequence commline
>    commline=command_line()
>  
>    comm=commline[2]
>    for k=length(comm) to 1 by -1 do
>      if comm[k]='\\' then
>        comm=comm[1..k]
>        exit
>      end if
>    end for
>  
>  --end file
> 
> Placed early on in the .exw file then 'comm' contains the
> correct directory regardless of how the program is started
> (Win Explorer double click or whatever).
> 
> 
> Al
> 
> 
> My bumper sticker: "I brake for LED's"


O.K. Al thanks for that. I'll try it out.

I was running DSS by associating it with a .jpg file extention.

Then any time you double click a .jpg icon it opens with the Slide Show.

I haven't tried opening from the command line. But I will just to test.

The important thing is the EXE file must find SSdata.dat (which shold be in the
same

folder as as the EXE. file).

If your GetInit.ew file will find that folder no matter how it's started then

that would be cool.

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu