Results 1 to 4 of 4

Thread: How to trap keystrokes. Not for stealing passwords.

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Lightbulb

    I am trying to develop a program, which
    1) When a blind person hits a hotkey, it enables key trapping types, they then type in actual characters, not CTRL, ALT etc.
    it adds them into a text box, and then reads them the words back out again.
    2) When they hit a different combo of keys, it reads out each word, so basically it copies the current word being typed, then reads it out after a space is trapped.

    can anyone help me??
    plz???


  2. #2
    Member
    Join Date
    Jan 1999
    Posts
    41
    Can you give me more information?
    What kind of hot keys? All of them?
    What kind of combos you want to use?

  3. #3
    New Member
    Join Date
    Aug 1999
    Posts
    13
    Ok, here goes:

    Place a text box named "text1" on a form, set visiblity to false. Then:
    Code:
    Private Sub Form_KeyPress(KeyAscii As Integer)
    If KeyAscii = 32 Then
    GoTo spacePress
    End If
    If KeyAscii >= 32 And KeyAscii <= 122 Then
    a = Chr$(KeyAscii)
    Text1.Text = Text1.Text + a
    GoTo endit
    End If
    
    spacePress:
    Text1.Visible = True
    
    endit:
    End Sub
    Hope this helps!!

    -KnightM

    [Edited by KnightM on 04-28-2000 at 09:32 PM]

  4. #4

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    --> Mlana then ---> KnightM


    Can you give me more information?
    What kind of hot keys? All of them?
    What kind of combos you want to use?
    CTRL+SHIFT+A to Start Listening
    CTRL+SHIFT+S to Stop

    also for reading out current word
    CTRL+SHIFT+W
    to turn off
    CTRL+SHIFT+O

    can you help

    unfortunately, KnightM, this would not work if my application was not "on top" or activated....

    thanks any way

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