Jump to content
Sign in to follow this  
James

Disable Task Manager Control

Recommended Posts

James

Hey,

Why can I never actually make something for myself? Ahh well.. I got payed £2 for it (Thats a lot of money coming from my Dad, he's just jealous)

Anyway, at his work he has some people who "accidently" close things through Task Manager. So he asked me if I could fix it. Well, here it is.

; Disable Task Manager without Popups!

Opt("WinWaitDelay",1)

While 1
    WinWaitActive("Windows Task Manager")
    ControlDisable("Windows Task Manager", "", "&End Process")
    ControlDisable("Windows Task Manager", "", "SysListView321")
    ControlDisable("Windows Task Manager", "", "SysTabControl321")
    ControlDisable("Windows Task Manager", "", "SysHeader324")
    WinWaitClose("Windows Task Manager")
Wend

See ya,

James (Thanks Kip!)

Share this post


Link to post
Share on other sites
November

Simple and functional!

Better than working in the local policies! :)

hehehehehe

Good job Secure_ICT

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites
FiNAlzFiNAle

o.0 .. if you use your arrow keys on the Processes List, the End Process button comes back on.

Might help if you put the ControlDisables in a While loop

Share this post


Link to post
Share on other sites
TehBeyond

I think he means...

Opt("WinWaitDelay",1)

While 1
    WinWaitActive("Windows Task Manager")
    Do
        ControlDisable("Windows Task Manager", "", "&End Process")
        ControlDisable("Windows Task Manager", "", "SysListView321")
        ControlDisable("Windows Task Manager", "", "SysTabControl321")
        ControlDisable("Windows Task Manager", "", "SysHeader324")
        Sleep (20)
    Until WinExists("Windows Task Manager")=0
Wend

I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog

Share this post


Link to post
Share on other sites
WeMartiansAreFriendly

maybe this?

Opt("WinWaitDelay",1)

While 1
    WinWaitActive("Windows Task Manager")
    ControlHide("Windows Task Manager", "", "&End Process")
    ControlHide("Windows Task Manager", "", "SysListView321")
    ControlHide("Windows Task Manager", "", "SysTabControl321")
    ControlHide("Windows Task Manager", "", "SysHeader324")
    ControlHide("Windows Task Manager", "", "Button1")
    ControlHide("Windows Task Manager", "", "DavesFrameClass1") ;doesn't seem to hide the menu :(
    ControlHide("Windows Task Manager", "", "msctls_statusbar321")
    WinWaitClose("Windows Task Manager")
Wend

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

Share this post


Link to post
Share on other sites
Generator

Doesn't work on my computer, it's in Chinese lol. :D

Good job and this is useful for me in some cases.

:)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×