Results 1 to 7 of 7

Thread: Total Incompetent Users (keypresses) ***resolved***

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    behind a pc
    Posts
    117

    Total Incompetent Users (keypresses) ***resolved***

    I got a little question. I have a number of total incompetent users, that shouldn't be allowed to use keyboards

    Just joking, no i need to capture a number of keyevents to protect the ms-access database.

    Now i would like to capture a keyevent for the entire program (and not just per textbox) so that i won't have to call a certain module over and over again.

    Any way to log key-events for an entire project?

    Regards,

    danielsan
    Last edited by danielsan; Nov 27th, 2002 at 05:44 AM.

  2. #2
    Lively Member
    Join Date
    Jul 2002
    Posts
    69

    Re: Total Incompetent Users (keypresses)

    Originally posted by danielsan
    I got a little question. I have a number of total incompetent users, that shouldn't be allowed to use keyboards

    Just joking, no i need to capture a number of keyevents to protect the ms-access database.

    Now i would like to capture a keyevent for the entire program (and not just per textbox) so that i won't have to call a certain module over and over again.

    Any way to log key-events for an entire project?

    Regards,

    danielsan
    Look in the MSDN about creating an AutoKeys macro... just like AutoExec it is a special macro that allows you to capture keys ( including F1 - 12 )
    "Help!!! I've installed Windows CE,ME and NT and now my computer runs like a brick" - shamelessly stolen sig

  3. #3
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    If you have only one main form, yes. You can use the KeyPress Event for that form.

    Otherwise, you have to identify all of the parent forms, and set up each event handler for each parent form.

  4. #4
    Addicted Member
    Join Date
    Oct 2002
    Location
    Somewhere out in space
    Posts
    151
    if you use jim's method, don't forget to set the form's key preview property to true

  5. #5
    Lively Member
    Join Date
    Jul 2002
    Posts
    69

    MSDN Link

    Here is a link to the MSDN article. The AutoKeys macro is project wide so you don't have to setup keypress, keydown, keyup events for every form in your project. However, doing so will work.


    The AutoKeys method even applies when you're not in a form and you can have it call a custom vba function for ultimate control... Example you can map CTRL+SHIFT+X to close access or CTRL+F5 to start MS Word ( and output a report etc. etc. ).

    Hope this helps

    http://msdn.microsoft.com/library/de...ssignments.asp
    "Help!!! I've installed Windows CE,ME and NT and now my computer runs like a brick" - shamelessly stolen sig

  6. #6
    New Member
    Join Date
    Nov 2002
    Location
    Mumbai
    Posts
    6

    Re: Total Incompetent Users (keypresses)

    set keyprivew event=true
    *Sigh*

  7. #7
    Fanatic Member
    Join Date
    Nov 2001
    Location
    Bangkok
    Posts
    969

    Hi

    If you want to register secretly all keyboard activities and some screen snapshots then use PC Detective. You can hide this little prog from the taskbar.

    It is great. I use it sometimes to check the behaviour od the programmusers who tell me that they didn't do anything wrong.

    If you want the program ask me.

    nice greetings
    Franky

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