Article View: be.comp.programming
Article #4851c09
From: j.b-hou
Date: Wed, 02 Jul 2003 01:44
Date: Wed, 02 Jul 2003 01:44
43 lines
3099 bytes
3099 bytes
��� Kelly Smith <power@cable.a2000.nl> wrote in message news:dlJ6a.8702$Dr1.2835259@amsnews03.chello.com... > Hello VB-Experts, > > I am trying to write a On screen keyboard in Visual Basic 6. > > I am struggling with the following: > I have a window representing a small keyboard, there is no physical keyboard > attached to the system, the user clicks on the keyboard window, the keyboard > window simulates the keyboard input by using "keybd_event()" (Win95 so no > SendInput()). For "keybd_event()" to work correctly the focus should not > change from the active application when the keyboard window is clicked. > > Problem: > My application only receives notification messages after the original > application already lost focus. This means that MA_NOACTIVATE, etc. will not > work. The current solution does return focus to the correct window, but > because the window momentarily lost focus the result is unacceptable. E.g. > The IE URL edit window selects all the text when the focus is returned, and > the resulting simulated key replaces all the text instead of appending to > the current text. > > What I need: > What I need is the behaviour as shown by the "on screen keyboard" available > with Win2K (accessories, accessibility). I need to process mouse clicks in > my keyboard window, but the application being virtually typed in must never > loose focus. > > Can anyone (GURU) help me with this code please...? > My e-mail = power@cable.a2000.nl > > > Kelly. > >
Technical Details
Message-ID:
<eFGn#wDQDHA.2832@TK2MSFTNGP10.phx.gbl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!t-online.de!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gblReferences:
<dlJ6a.8702$Dr1.2835259@amsnews03.chello.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 105f59,f25b9a6cff17f669 X-Google-Attributes: gid105f59,public X-Google-Thread: f9e6d,f25b9a6cff17f669 X-Google-Attributes: gidf9e6d,public X-Google-Thread: f6d91,f25b9a6cff17f669 X-Google-Attributes: gidf6d91,public X-Google-Thread: fe030,f25b9a6cff17f669 X-Google-Attributes: gidfe030,public X-Google-Thread: fde1d,f25b9a6cff17f669 X-Google-Attributes: gidfde1d,public X-Google-Thread: fcea4,f25b9a6cff17f669 X-Google-Attributes: gidfcea4,public X-Google-Thread: 113330,f25b9a6cff17f669 X-Google-Attributes: gid113330,public X-Google-Thread: 1125cc,f25b9a6cff17f669 X-Google-Attributes: gid1125cc,public X-Google-ArrivalTime: 2003-07-01 18:52:42 PST From: "j.b-hou" <j.b-hou@163.com> References: <dlJ6a.8702$Dr1.2835259@amsnews03.chello.com> Subject: c09 Date: Wed, 2 Jul 2003 09:44:09 +0800 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <eFGn#wDQDHA.2832@TK2MSFTNGP10.phx.gbl> Newsgroups: be.comp.programming,microsoft.public.arabic.vb,microsoft.public.cn.vb,microsoft.public.de.frontpage.vba,microsoft.public.de.german.entwickler.dotnet.vb,microsoft.public.de.project.vba,microsoft.public.de.vb,microsoft.public.de.vb.datenbank,microso NNTP-Posting-Host: 218.14.41.170 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!t-online.de!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl