what is the counter parts of taskmgr in 98 and so ?
-
- Enthusiast
- Posts: 237
- Joined: Tue Apr 05, 2005 11:20 pm
what is the counter parts of taskmgr in 98 and so ?
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
Re: what is the counter parts of taskmgr in 98 and so ?
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.
You could also try this on 95, 98 and ME (works for NT, 2000 and XP):
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()
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.
"PureBasic won't be object oriented, period" - Fred.
-
- Enthusiast
- Posts: 237
- Joined: Tue Apr 05, 2005 11:20 pm
-
- Enthusiast
- Posts: 237
- Joined: Tue Apr 05, 2005 11:20 pm
> 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.
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.
"PureBasic won't be object oriented, period" - Fred.
-
- Enthusiast
- Posts: 237
- Joined: Tue Apr 05, 2005 11:20 pm
Re: what is the counter parts of taskmgr in 98 and so ?
windows 9x are no longer supported by microsoft.doodlemunch wrote:hi why i can not run taskmgr in window 98 ? how is it called in there??
just use windows 2000 or better XP

va!n aka Thorsten
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
-
- Enthusiast
- Posts: 237
- Joined: Tue Apr 05, 2005 11:20 pm
> but i!!! want to support it!!!!
> ppl still uses it !!! i want to support it !!

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

> ppl still uses it !!! i want to support it !!


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

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.