SphereCommunity
systray recovery - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: systray recovery (/Thread-systray-recovery)



systray recovery - ChaveS - 12-01-2012 02:23 AM

Is there a way to find Sphere.exe sysrtray icon when it desapear(example, when i close explorer.exe or when it crashes)
PS: there are systray aplication (such SphereService, this battery icon, and "H" icon)  that autorecovery when you reopen explorer.exe

[Image: systray.jpg]




RE: systray recovery - Mordaunt - 12-01-2012 02:36 AM

Sphere has a habit of disappearing into your "hidden items" in the systray.


RE: systray recovery - ChaveS - 12-01-2012 03:12 AM

Big Grin

it could had the same proprieties of SphereService!

No chances for how knows the sphere projects to make a vbs script which find the sphere exe systray?

or at least open up the sphere console again using this script or a new program


RE: systray recovery - Shaklaban - 12-01-2012 03:17 AM

well in the past i try to get mainwindowhandle from spheresvr.exe when it disappears but i think it is not possible.

maybe you can record window handle of the sphere in some integer in vb or another programming language when its active, and try to activate that window handle later. but im not sure handle will be same or not after disappear.


RE: systray recovery - ChaveS - 12-01-2012 03:40 AM

Thanks!

but i have no idea how to do it Big Grin

ill let the concept here hehe


RE: systray recovery - Shaklaban - 12-01-2012 05:17 AM

well i tried and it works if you can install visual c# 2010 express edition i can send you the codes you can edit them.

its concept is:

record window id of sphere to global integer when spheres window is visible

then use ShowWindow api function with that hwdn, its shows up.

here is the link for what i created:

http://www.dot.gen.tr/connector_files/spherewindow.rar

after download it just press record button when spheres window is visible, then minimize it the taskbar and press to get button. spheres name must be spheresvr.exe otherwise program will not recognize it.


RE: systray recovery - ChaveS - 12-01-2012 01:48 PM

Lol.. its perfect!

Thank you very much!

Big Grin

EDIT:
If you want, ill give a suggest!

You could make a control painel! Ill say what im doing...

Firstly i open the program AUTOHOTKEYS ( http://www.autohotkey.com/ ), and set an hotkey:
CTRL + LSHIFT + Z: open explorer.exe

Then when i leave the PC (my shard is running on my personal desktop), i run a batch file:
Code:
taskkill -im explorer.exe /f /t
taskkill -im LiveComm.exe /f /t
taskkill -im msnmsgr.exe /f /t

Then, when i get back, i press
CTRL + SHIFT + Z

And now, thanks to you ill use the your program to see the sphere window again!

So... what if you make a program to do what im doing, and able to customize everything (programs to close, hotkeys to open explorer, to open sphere, to close programs, open script folder, open sphere.ini) etc..?

And any other feature the people think later!

I think on version 10.0 we will have a powerful tool Big Grin

bye and thanks !!