Page 1 of 1

what is the counter parts of taskmgr in 98 and so ?

Posted: Tue Mar 07, 2006 11:44 am
by doodlemunch
hi why i can not run taskmgr in window 98 ? how is it called in there??

Re: what is the counter parts of taskmgr in 98 and so ?

Posted: Tue Mar 07, 2006 12:40 pm
by PB
This works for NT, 2000 and XP... but I haven't tested it with a REAL Windows
95, 98 or ME machine. (I only run them under Virtual PC, and the code below
doesn't seem to work with it). Maybe you can verify? I assume it'll work by
simulating pressing CTRL+ALT+DEL to invoke the "Close Program" dialog.

Code: Select all

; By PB.  Untested on a real Win 95, 98 and ME.

Procedure LaunchTaskManager()
  Select OSVersion()
    Case #PB_OS_Windows_95,#PB_OS_Windows_98,#PB_OS_Windows_ME
      If FindWindow_(0,"Close Program")=0 ; Don't do it twice or we reboot!
        keybd_event_(#VK_CONTROL,0,0,0)
        keybd_event_(#VK_MENU,0,0,0)
        keybd_event_(#VK_DELETE,0,0,0)
        keybd_event_(#VK_CONTROL,0,#KEYEVENTF_KEYUP,0)
        keybd_event_(#VK_MENU,0,#KEYEVENTF_KEYUP,0)
        keybd_event_(#VK_DELETE,0,#KEYEVENTF_KEYUP,0)
      EndIf
    Default ; NT-based systems (NT, 2000, XP).
      ShellExecute_(0,0,"taskmgr.exe","","",#SW_SHOW)
  EndSelect
EndProcedure

LaunchTaskManager()
You could also try this on 95, 98 and ME (works for NT, 2000 and XP):

Code: Select all

PostMessage_(FindWindow_("Shell_TrayWnd",0),#WM_COMMAND,420,0) ; 420 = Task Manager.

Posted: Tue Mar 07, 2006 1:14 pm
by doodlemunch
nothin worked :cry: :cry:

Posted: Tue Mar 07, 2006 7:22 pm
by LuCiFeR[SD]
it is "Taskman" under win9x IIRC

Posted: Tue Mar 07, 2006 7:53 pm
by doodlemunch
not really the real things
that is like a diferent task magnager not eth one ran by ctrl alt del !

Posted: Tue Mar 07, 2006 9:12 pm
by PB
As a suggestion: the Task Manager in Win 95/98/ME is really basic, so it should
be very simple to recreate it using a ListIconGadget and getting the list of tasks.

Posted: Tue Mar 07, 2006 9:16 pm
by Trond
PB wrote:As a suggestion: the Task Manager in Win 95/98/ME is really basic, so it should
be very simple to recreate it using a ListIconGadget and getting the list of tasks.
The thing you get with Ctrl+Alt+Delete is NOT the task manager in Windows 9x.

Posted: Tue Mar 07, 2006 11:05 pm
by PB
> The thing you get with Ctrl+Alt+Delete is NOT the task manager in Windows 9x

Well, for all intents and purposes, the CTRL+ALT+DEL thing is what we're
obviously referring to, and what doodlemunch is trying to invoke. :)

Posted: Wed Mar 08, 2006 5:57 am
by doodlemunch
oh do not make fun of my english anymore :cry:
it says on the titel '' close program '' or likes that
when i press ctrl alt delete i get it
but if we send teh keys it does not get opened
i do not know what to do wiht this :cry: :cry:

Re: what is the counter parts of taskmgr in 98 and so ?

Posted: Wed Mar 08, 2006 6:57 am
by va!n
doodlemunch wrote:hi why i can not run taskmgr in window 98 ? how is it called in there??
windows 9x are no longer supported by microsoft.
just use windows 2000 or better XP :wink:

Posted: Wed Mar 08, 2006 9:05 am
by doodlemunch
but i!!! want to support it!!!!
ppl still uses it !!! i want to support it !! :cry: :cry:

Posted: Wed Mar 08, 2006 11:59 am
by PB
> but i!!! want to support it!!!!
> ppl still uses it !!! i want to support it !! :cry: :cry:

http://www.purebasic.fr/english/viewtopic.php?p=131251

8)