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

Just starting out? Need help? Post your questions and find answers here.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

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

Post by doodlemunch »

hi why i can not run taskmgr in window 98 ? how is it called in there??
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

nothin worked :cry: :cry:
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

it is "Taskman" under win9x IIRC
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

not really the real things
that is like a diferent task magnager not eth one ran by ctrl alt del !
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post 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:
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

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

Post 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:
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

but i!!! want to support it!!!!
ppl still uses it !!! i want to support it !! :cry: :cry:
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply