Results 1 to 3 of 3

Thread: Oh, the keyboard

  1. #1

    Thread Starter
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266

    Cool

    man! i hate it when i cannot do with windows what i want.

    i need something to remap keys on the keyboard.
    that goes system wide. not only for one application.
    i also want to disable certain keys on the keyboard.
    i want to disable task switching, cause i'm writing
    a program that works with computer security.
    that means windows NT is onvolved. that means i will
    have to find a way to disable CTRL+ALT+DEL.
    with windows 95, 98 and so, this is EZ. but NT is always
    a *****. i want to be the master over the keyboard and
    windows. i tried system wide hook procedures, but
    windows NT is 2 clever. CTRL+ALT+DEL will always work.

    can someone tell me of a way to manipulate the keyboard
    without having to learn lots of assemlby an vicious C++?
    i know some C++, but i ain't a master widdit ya noo.

    thanx again.
    jovton

  2. #2

    Smile Might Help...

    Dont know much of C++ but, I do know how to disable "CTRL ALT DEL", and "CTRL ESC"

    Here Ya Go..

    ---------------Declarations--------------------

    Private Declare Function SystemParametersInfo Lib _
    "user32" Alias "SystemParametersInfoA" (ByVal uAction _
    As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
    ByVal fuWinIni As Long) As Long

    -----------End Declarations--------------------

    -----------START CODE--------------------------

    Sub DisableCtrlAltDelete(bDisabled As Boolean)
    Dim X As Long
    X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    End Sub

    -----------END CODE----------------------------

    'How you use it is up to you.
    'I usually stick it in the Form_Load()
    'You use it as a buttons command


    -----------USE OF CODE-------------------------
    Private Sub Form_Load()
    'Disable Ctrl Alt Delete
    Call DisableCtrlAltDelete(True)
    End Sub
    -----------END USE-----------------------------

    Replace the following code with old to Enable Ctrl Alt Delete.

    To enable Ctrl-Alt-Delete:
    Call DisableCtrlAltDelete(False)



    Hope that could help...



    "You Face, Your @$$ Whats the Differance!"

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    (Note: This also affects all other windows key combos )

Posting Permissions

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



Click Here to Expand Forum to Full Width