Results 1 to 3 of 3

Thread: Filtering keystrokes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Bangladesh
    Posts
    74

    Arrow Filtering keystrokes

    Friends,

    I am from Bangladesh. In our language (Bangla) some alphabets change their shapes according to previous alphabets.

    If I want to type Bangla in various applications I must filter each keystrokes i.e.; if a user press "S" key in an application, my application(which is already running) will interpret it as chr(122) or chr(124) or chr(151) [of a Bangla font developed by me] depending upon the previous alphabet and send that character to that application.

    Could anyone show me the way?
    'Nothing lasts forever, even cold November Rain'

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    This probably isn't the best way but it works
    VB Code:
    1. If Len(Text1.Text) > 1 Then
    2.     'change S to whatever needs to be before S
    3.     If Right(Text1.Text, 2) = "ss" Then
    4.         'replace the last character with something else
    5.         'if you need to change the last 2 characters then change the
    6.         '1 to a 2
    7.         Text1.Text = Left(Text1.Text, Len(Text1.Text) - 1) & Chr(124)
    8.         'set focus back to the end
    9.         Text1.SelStart = Len(Text1.Text)
    10.     End If
    11. End If

  3. #3
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Its probably possible yes...but it will be slower than its C++ counterpart, and it will be hard to write.
    You just proved that sig advertisements work.

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