Jump to content

Disable Task Manager Control


James
 Share

Recommended Posts

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!)

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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()
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...