+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    forsak3n
    Guest

    Red face How can I disable keyboard buttons?

    Hy guys... I need some help...
    How can I disable some keyboard buttons like the start button, ctrl button, tab button?
    Please reply.
    Thx

  2. #2
    Senior Member -silent-'s Avatar
    Join Date
    May 2005
    Posts
    1,374
    Disable task switching
    Using the SystemParametersInfo API function you can trick Windows into thinking that the screen saver is running. Doing so disables the Ctrl-Alt-Delete key sequence from displaying the "Close Program" dialog and rebooting the computer and Alt-Tab from switching to another application. It also stops Ctrl-Esc from opening the Start Menu.
    If you wish to disable those keys while your application is running call the following SystemKeys function (place it in the Implementation section of your unit's code - and call from any procedure in your application - where needed). When you call SystemKeys, if Disable is True, the keys will be disabled, False otherwise.

    procedure SystemKeys(Disable: Boolean);
    var OldVal : LongInt;
    begin
    SystemParametersInfo
    (SPI_SCREENSAVERRUNNING,
    Word(Disable),
    @OldVal,
    0);
    end;





    After a call to SystemKeys(True) the program runs, but you are unable to Alt-Tab to it nor switch to it in the task list. You can't invoke the Start button, either.

    hope this helps am sure there is a better way by hooking the keys i will look into it







    ---------------------------------------------


  3. #3
    Senior Member Snma's Avatar
    Join Date
    Feb 2005
    Posts
    549
    Yes, API's are fine to use, there are lists around that let you disable certain keys at a time...


    Kool Sig Silent, but is that your IP? Don't you think its a bad idea to put your IP up? If it's someone elses, I recommend you block it out...the webhost won't look nicely upon you showing that you've illegally connected to a remote host without permission.

  4. #4
    forsak3n
    Guest

    Red face Well...

    Thx... But that doesn't work. Don't know why. I tried it before but dunno.
    How did u get that logo? Nice one... In there something looks familiar...

    I'm sure u know what.

    Anyway... Can anyone please answere how can I disable somekeys?
    Ctrl, Alt, StartKey, Tab, ESC, F1, F4, Backspace, Del

  5. #5
    Senior Member -silent-'s Avatar
    Join Date
    May 2005
    Posts
    1,374
    lol nope its not my ip and its not a real trojan i just used institution kind of layout as it worked the easiest

    it should show your ip and your os and your browser time ect ect

    anyway back onto the subject


    i see what you want to do disable any key you want on the keyboard

    i will go and find this out for you

    i will post the answer when i get back from work about 6.00 today

    ---------------------------------------------


  6. #6
    Senior Member Snma's Avatar
    Join Date
    Feb 2005
    Posts
    549
    heh, well then its screwed up on mine...cause its not showing my ip (nor any proxies I use)...oh well.

  7. #7
    Retired Admin
    Join Date
    Feb 2005
    Location
    Norway
    Posts
    1,933
    this program can disable some keys, but I am sure if you put enough effort into it you can disable any key you want
    Attached Files Attached Files

  8. #8
    Senior Member -silent-'s Avatar
    Join Date
    May 2005
    Posts
    1,374
    @Snma
    does it show you the right ip now?



    nice find LttCoder i have been searching for something like that today with no luck

    i found plenty of sites selling there code to disable the keyboard!!!



    ---------------------------------------------

  9. #9
    Retired Admin
    Join Date
    Feb 2005
    Location
    Norway
    Posts
    1,933
    -silent- now I cant see my IP. victim -blank- winxp 80 IE.
    connected to -blank-

  10. #10
    forsak3n
    Guest
    thx... it works... thx man...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to disable XP SP2 Firewall
    By KiD_ZasTRe in forum General Programming Help
    Replies: 6
    Last Post: 04-05-2009, 10:43
  2. system restore disable??? HOW
    By luigi in forum Delphi Help
    Replies: 8
    Last Post: 02-12-2008, 00:18
  3. Windows Security Documentation
    By Snma in forum General Programming Help
    Replies: 5
    Last Post: 25-10-2005, 17:10
  4. Send keys
    By -silent- in forum General Programming Help
    Replies: 13
    Last Post: 09-07-2005, 21:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.