topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 6:29 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [SOLVED] Ctrl+Alt+Del  (Read 14989 times)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
[SOLVED] Ctrl+Alt+Del
« on: June 10, 2014, 01:50 PM »
I develop kiosk software that goes onto systems at hotels, my client wants to disable Ctrl+Alt+Del and Ctrl+Esc. I have tried using AutoHotkey but it is not working for me. Anyone have some AHK code that does work or know of an app that can do this?

Thanks!

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,629
    • View Profile
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #1 on: June 10, 2014, 02:32 PM »
The Ctrl-Alt-Del key combination is caught at a very low level of Windows, and can't be caught without installing a specialized keyboard handler/driver, AFAIK.
Ctrl-Esc is a feature of Explorer.exe (AFAIR), and is also quite hard to intercept. Dunno about any AHK code for that, but I'm no AHK coder :-[

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #2 on: June 10, 2014, 02:45 PM »
I really don't need to disable it, poor choice of words. Just remap the Ctrl Alt Del and Esc keys.... which is what I have tried without any luck.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #3 on: June 10, 2014, 02:48 PM »
To get rid of Control Esc this should work

^Escape::
  ;msgbox,Control Esc Pressed
return

uncomment the msgbox line to test.  For control alt del I'd try the AHK Forums.

Also if not done already you should disable TaskManager so the user can't kill the ahk process.  You can use the #NoTrayIcon directive at the top of the script so they can't right click on the tray icon and kill it.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #4 on: June 10, 2014, 02:53 PM »
You can remap a key to nothing just by
Escape::


wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,190
    • View Profile
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #5 on: June 10, 2014, 02:57 PM »
A couple of articles on this:

https://stackoverflo...laltdel-on-windows-7

https://stackoverflo...d-shutdown-for-kiosk

Don't know if any of those approaches work.. .it appears this isn't something to be approached lightly.

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #6 on: June 10, 2014, 03:37 PM »
Yep - Scancode map worked - I used the info I found from http://www.northcode...s-For-Use-As-A-Kiosk

Thanks all

This can be marked resolved.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #7 on: June 10, 2014, 04:14 PM »
Nice.  :up:

(I was just about to suggest this article on codeproject.com).

TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • View Profile
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #8 on: June 10, 2014, 07:16 PM »
Heh sorry for always being the humanities kid in the coding room, but here goes:

What does Control-Escape even do? C-A-D I know, it's legendary. But I guess I'm a wee bit perturbed I've hung out on this forum for a couple of years and Slashdot for a *decade* and browsed my share of misc articles and I've never even *heard* of that combo!
:o

I get the gist easily, you wanna disable the "tricks" so that script-kiddie-level twerps don't go fiddling with embedded kiosk software, but I've just never run across that combo. (And have I missed a useful trick all these years?!)


hamradio

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 884
  • Amateur Radio Guy
    • View Profile
    • HamRadioUSA.net
    • Read more about this member.
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #9 on: June 10, 2014, 09:11 PM »
For me Ctrl + Esc does the same as the window key on windows 7 anyway. :)

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,777
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: [SOLVED] Ctrl+Alt+Del
« Reply #10 on: June 11, 2014, 05:09 AM »
You sure you didn't mean Ctrl-Shift-Esc? That brings up the Task Manager, which is what most people want to do when they press Ctrl-Alt-Del.