Article View: borland.public.cppbuilder.nativeapi
Article #15357Re: Looking for an example of mouse- or keyboard-hooks for BCB5
From: MR
Date: Mon, 07 Jul 2003 06:44
Date: Mon, 07 Jul 2003 06:44
34 lines
2262 bytes
2262 bytes
Michael, thanks for your answer. >I have an article on my web site about using hooks with a working >example using a mous hook. Maybe it might be of some help for you. >http://www.leunen.com/cbuilder/hook.html > I checked you example-program and it works, but unfortunately there is no communication back to the caller-progarm. Probably this is where I finally failed. To be more specific what I wanted the mouse-hook for, was that the main-application all xx seconds execute a function, which is realized by a TTimer-component. This execution should be stopped as long as the LMB is pressed and should be continued when it has been released. This could be handled by a stop-flag, but it seems that we therefore need shared memory inside the dll (i.e. somehow the OS creates more than one instance of the DLL, but this id (stop-flag) should exist only once, like a static var inside a function). The second thing is, we have to be able to access to this stop-flag from our application-program, i.e. the OnTimer-event. As said, I tried it for some time with no final success, perhaps anyone has another example... Thanks a lot, Michael
Technical Details
Message-ID:
<3n4igvok5ctvibr5jlefp461k524q83cqk@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!peer2.news.opaltelecom.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<0oidgvgc9issuibu3369ebkd7u3h6hfh9d@4ax.com> <3f06da13@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,c8028aaaabe6faee X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-07 00:10:30 PST From: M_R <> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Looking for an example of mouse- or keyboard-hooks for BCB5 Date: Mon, 07 Jul 2003 08:44:32 +0200 Message-ID: <3n4igvok5ctvibr5jlefp461k524q83cqk@4ax.com> References: <0oidgvgc9issuibu3369ebkd7u3h6hfh9d@4ax.com> <3f06da13@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.93/32.576 Deutsch (Standard) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.80.34.127 X-Trace: newsgroups.borland.com 1057560272 217.80.34.127 (6 Jul 2003 23:44:32 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!peer2.news.opaltelecom.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail