forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


tasklist and killtask Question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Thu Apr 20, 2006 2:57 pm    Post subject: tasklist and killtask Question Reply with quote

Anyone had problems listing programs with tasklist?

i can't seem to get it to see WoW.exe the World of Warcraft game exe

if I killtask explorer.exe explorer.exe restarts anyways to get it to STAY DEAD?

Thanks

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Apr 20, 2006 3:29 pm    Post subject: Reply with quote

I think explorer.exe is always running. It is not just Internet Explorer. It is the guts of Windows. Others with more knowledge about this - am I right?

I know whenever it has to close for an error, my screen goes blank, then explorer restarts.

_________________
Joe Floyd
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Thu Apr 20, 2006 4:26 pm    Post subject: Reply with quote

If you close explorer.exe (XP) continues working the system but the bar of tasks will be lost. From taskmgr.exe you can execute a new task, in this case explorer.exe and the task bar will return to appear.
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Apr 20, 2006 4:27 pm    Post subject: Reply with quote

Explorer.exe is your shell, it's the interface to everything you do, only way to be rid of it is to change to an alternative shell, which you can find plenty of in a search.
As for WoW, it might keep itself hidden from tasklists, to stop some kind of cheating.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Thu Apr 20, 2006 5:28 pm    Post subject: Reply with quote

Im not wanting to switch shells. im just wanting to write my program to close explorer.exe while World of Warcraft is running and restart it after it closes

explorer uses quite a bit a memory and closing it give better performance while i am gaming..

I usually do this manually by CTRL+ALT+DEL and end task "explorer.exe"
then restart it after i am done.

*^ that method keeps explorer.exe closed until i restart it myself.

but killtask ends it and it restarts in about 2 secs automatically

I have a way of testing if wow is running by using the @winexists()

only thing holding me back is killtask..

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sat Apr 22, 2006 3:10 pm    Post subject: Reply with quote

kOt,

Code:
Title Stop windows shell
#DEFINE COMMAND,STOPSHELL,STARTSHELL

LoadLib user32.dll
LoadLib kernel32.dll

StopShell
Wait 25
StartShell

FreeLib user32
FreeLib kernel32
STOP
:stopshell
%A = @winexists(#Progman)
If %A
  %%WM_QUIT = 18
  %B = @lib(user32,PostMessageA,DWORD:,@Strdel(%A,1),%%WM_QUIT,0,0)
End
Exit %B

:startshell
  %%SW_SHOW = 5
  %S = @lib(kernel32,WinExec,DWORD:,Explorer.exe,DWORD:%%SW_SHOW)
Exit %S



Have fun with your Game dude Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Sat Apr 22, 2006 5:50 pm    Post subject: Reply with quote

Thanks guys.. thats works wonders


Last question.. Is there a way to start up explorer.exe without startup programs?

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sat Apr 22, 2006 10:06 pm    Post subject: Reply with quote

kOt,
Hmmmm I don't know if that is possible. When Explorer.exe goes away so does the desktop, taskbar, and system tray but the programs are still running. The only reason Explorer.exe appears to restart everything is to get the system tray programs icons running. Really I don't know how you could alter the way Explorer.exe operates without hacking away at it's binary and we don't do that here at VDSWorld.com. There may be a registry entry but I am not sure about that?

My only other suggestion is to completely replace Explorer.exe and use a different shell that is less intensive. I know there are many Window Shells out there I used to use one called LiteStep which was a XWindows Look alike.
Also Garrett and I started on our own Windows Shell about 5 or 6 years ago but found that trying to do it with VDS was a bit too much work and we abandoned the idea. Actually it was the system tray that gave us heart ache I just could not get my head around when it was supposed to be called and I did not at the time have the knowledge of callback functions, managing memory, and structures in C as I do now. I guess if there were a demand for it I could write one but with the advent of Windows XP not many people have complained about the Windows Shell much. Actually this is the first post in over 4 years that I have seen anyone complain about Explorer.exe being a resource hog.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Sun Apr 23, 2006 12:08 pm    Post subject: Reply with quote

Very Happy.. i am in no way complaining about resources that xp uses Very Happy
just "Every little bit counts"

I have used Litestep quite a bit..
I used to use BBLean alot but since VDS written programs will not work
while bblean is running. "In the past, i dont know about now" i stopped using
it.

But switching shells for minimizing resources tends to make me "GO CRAZY"
and i end up going all out and since i have My fiance and two kids that also
use my pc (i dont know why... we have 3 here) thats not a good idea Very Happy

Anyways the example you gave me has suited just fine. Thanks

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sun Apr 23, 2006 12:35 pm    Post subject: Refresh Systray apps Reply with quote

kOt,
Your very welcome. It was a simple thing really. Good luck with your game.

This actually reminded me that someone else wanted a way to refresh the icons in the system tray. The code in the above post actually does just that. The only issue is that you are actually restarting the whole shell an not just refreshing the systray. You could also send a WM_PAINT to the taskbar and system tray windows this could cause those windows to repaint for you. The reason the icons show up like that is because the program did not shutdown properly and did not inform the system tray that was done. So when you hover over the icon and try to click on it the system tray goes to get the resouce that is attached and it cannot since the application is no longer in memory so instead of complaining with an error the system try just clears the icon.
There is another way I just thought of but I will get back with you guys later on that since it is very involved.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group