Article View: be.comp.programming
Article #5893HELP ME PLEASE VB6!!!!
From: Kelly Smith
Date: Tue, 25 Feb 2003 12:30
Date: Tue, 25 Feb 2003 12:30
31 lines
3198 bytes
3198 bytes
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:
<dlJ6a.8702$Dr1.2835259@amsnews03.chello.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newspeer1.nwr.nac.net!newsfeed.freenet.de!amsnews01.chello.com!amsnews03.chello.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 105f59,f25b9a6cff17f669,start X-Google-Attributes: gid105f59,public X-Google-Thread: f6d91,f25b9a6cff17f669,start X-Google-Attributes: gidf6d91,public X-Google-Thread: f9e6d,f25b9a6cff17f669,start X-Google-Attributes: gidf9e6d,public X-Google-Thread: 1125cc,f25b9a6cff17f669,start X-Google-Attributes: gid1125cc,public X-Google-Thread: fde1d,f25b9a6cff17f669,start X-Google-Attributes: gidfde1d,public X-Google-Thread: 113330,f25b9a6cff17f669,start X-Google-Attributes: gid113330,public X-Google-Thread: fcea4,f25b9a6cff17f669,start X-Google-Attributes: gidfcea4,public X-Google-Thread: fe030,f25b9a6cff17f669,start X-Google-Attributes: gidfe030,public X-Google-ArrivalTime: 2003-02-25 04:32:07 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newspeer1.nwr.nac.net!newsfeed.freenet.de!amsnews01.chello.com!amsnews03.chello.com.POSTED!not-for-mail From: "Kelly Smith" <power@cable.a2000.nl> 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 Subject: HELP ME PLEASE VB6!!!! Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <dlJ6a.8702$Dr1.2835259@amsnews03.chello.com> Date: Tue, 25 Feb 2003 12:30:01 GMT NNTP-Posting-Host: 62.108.15.164 X-Complaints-To: abuse@chello.nl X-Trace: amsnews03.chello.com 1046176201 62.108.15.164 (Tue, 25 Feb 2003 12:30:01 WET) NNTP-Posting-Date: Tue, 25 Feb 2003 12:30:01 WET Organization: chello broadband