ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

SOLVED: Save Session for Windows (processes, open files, window positions)

<< < (3/5) > >>

tmpusr:
Just open the apps (like run app1.exe, run app2.exe, that were in the task list and the files that were open in them, if any (run app3.exe file.txt) and I'm happy... is there more to it? What?
Over at the AHK forum there's code that does window size and position save/restore.

f0dder:
Putting a filename on an application's commandline doesn't necessarily open it - works for a lot of apps, but not all. Also, there's the issue of figuring out which files the application has open. You can enumerate the files a process has open, but that's going to include a lot more than what you think you're working with :) - also, some applications only use the files while loading/saving, and thus the files you're working with isn't detectable without knowledge of the specific program.

Window size/position restoring, yes... you can reposition windows the application opens by itself, but you can't make it open child dialogs without specific knowledge of the app. And the window will appear at default location before you reposition, so there'll be a bit of flickering :)

MilesAhead:
Basically you would have to freeze the state of things to some storage.  Then later load it into memory, and have it thaw.  Only thing is, as f0dder points out, there are dynamic things that don't react well to being frozen.  Stuff like network connections etc..

Probably the best you could hope for would be a window tracker that would save the positions of all top level windows.  You may be able to get the desktop to come up with apps open at certain positions.  But in the case of things crashing, if you perfectly save the memory state of the app that crashed, chances are high you've reinstated the conditions that caused the crash. It will just crash again. Most crashes are memory issues.  Invalid access, uninitialized pointers etc..  you're just freezing it only to crash again when you thaw it out.

tmpusr:
Even a partial solution would be nice to have, just restarting the apps and repositioning windows, for which code already exists:

Save and Restore window sizes & positions
http://www.autohotkey.com/forum/topic55937.html

MilesAhead:
This PCMag utility looks like it may be helpful:

http://www.pcmag.com/article2/0,2817,2339650,00.asp

Usually on these things you can download free if you sign up for zdnet and let them send you emails. :)

Hmm, just took another look.  They don't seem as generous now.  But there must be some rough equivalents on sites like Softpedia, Snapfiles etc..

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version