--- In [email protected], "evewebber" <[EMAIL PROTECTED]> wrote:
>
> 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. I assume that at Scheduler startup I would run a script of 
> the relevant program paths with the name PproShutdown created during 
> the previous session. However, I don't know where to find the paths of 
> running programs to create that script. I could capture them when I 
> call the programs but I would have to delete from the list any programs 
> that close before shutdown, and I can't see how to keep the list 
> coherent until shutdown. Can anyone help?
>

It may be helpful to assign the following script to PProShutdown
command list:

local numproc
local allproc=dll.create_array(200,"dword")
local size=dll.get_size(allproc)
dll.call("psapi|EnumProcesses|array* dword dword*
bool",allproc,size,"numproc")
for(i=1;i<=numproc/4;i=i+1)
local pid=dll.get_array_element(allproc,i)
win.debug(win.exename("p="++pid),win.exepath("p="++pid))
endfor
dll.release(allproc)

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/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