> > I would like to be able to close PowerPro such that, at the next 
> > startup, it loads the same programs as were running at the 
previous 
> > shutdown. > 




If you are just interested in visible windows, you could try something 
like this

1.  Use win.handlelist to get a list of all visible windows.

2.  Go through the handlelist with a for loop and use win.exefullpath 
to get the full path to the handle.  Store paths in a vector with 
vec.bininsert to automatically eliminate duplicates.

3. Go through the vector and write the paths to a file.  You could use 
something like file.writeall("path",vec.makelines(yourvec))

4.  Once you have this working, then create a script which is run at 
startup to read the file and run each line in the file, eg with do 
command.

(Or, even trickier, you could change 3 to write the do commands into 
the file itself and then just run the file at startup).

Note that this just starts the programs; it won't re-open any files 
that were in process (no way to do this that I know except by 
Hibernate function of Windows).









------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to