Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to launch Task Manager?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00720758
Message ID:
00720771
Views:
12
>>
! /N taskmgr
>>
>>This works under NT/2K/XP. You could use SendKeys and AppActivate from the WSH to select the task manager window and select the Performance tab - you'd have to play around to find the correct window title for AppActivate() and which keystroke to send to select the performance tab.
>
>Thanks, this works:
>
>
>WshShell = CreateObject("WScript.Shell")
>WshShell.Run("TaskMgr")
>
>
>But as the tab captions don't have hotkeys and the dialog has memory (it displays using the last configuration used) it seems that it will be impossible to show the performance tab programatically.

If the dialog has a memory, I'd go hunting around for a registry key to set for enabling the tab; it's likely to be platform-specific, though.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform