How to get input events from desktop?

I am developing an application which requires to record users 
interaction with other display windows or desktop.  I have no 
requirements of having actual display window, since this is just 
recording.  Is there a way of doing that through MFC, or a dll that I 
can use?
0
fchoupani (2)
11/13/2006 1:57:49 AM
vc.mfc 33608 articles. 0 followers. Follow

2 Replies
498 Views

Similar Articles

[PageSpeed] 25

Look into SetWindowHookEx.  
				joe

On Sun, 12 Nov 2006 17:57:49 -0800, Farhad <fchoupani@comcast.net> wrote:

>I am developing an application which requires to record users 
>interaction with other display windows or desktop.  I have no 
>requirements of having actual display window, since this is just 
>recording.  Is there a way of doing that through MFC, or a dll that I 
>can use?
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15975)
11/13/2006 2:09:35 AM
That works just fine.  One problem is the key codes are too low level. 
For example When I type "P" I get integer 80 (0x50) and when I do 
Shift+P I get 160+80 (0xa0+0x50) and Ctrl+P is 162+80 (0xa2+0x50) while 
"p" is 0x70 and "P" is 0x50.  So how do you get from 0xa0 AND 0x50 to 0x70?

Joseph M. Newcomer wrote:
> Look into SetWindowHookEx.  
> 				joe
> 
> On Sun, 12 Nov 2006 17:57:49 -0800, Farhad <fchoupani@comcast.net> wrote:
> 
>> I am developing an application which requires to record users 
>> interaction with other display windows or desktop.  I have no 
>> requirements of having actual display window, since this is just 
>> recording.  Is there a way of doing that through MFC, or a dll that I 
>> can use?
> Joseph M. Newcomer [MVP]
> email: newcomer@flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
0
fchoupani (2)
11/13/2006 11:39:12 PM
Reply:

Similar Artilces:

How to get attributes from other entities in JScript
I have 3 entities In one of them I need an onChange script on an attribute that requires variables pullled from other entities. AFAIK, you cannot include variables in Jscript that are not attributes in the entity. Is that right? What ar ethe alternative solutions? pre-callout? Thanks -- Paul Doyon CRM Consultant ...

How do I change the US date setting in the event schedule planner
Help! I'm using a lovely little template called event schedule planner - however it shows the date in US date format and I need the UK format (dd.mm.yyyy) how do I change it in this template please? If this is Word 2007/2010 then the chances are that it uses date content controls to display the dates. You can change them all with a macro Sub Macro1() Dim oCC As ContentControl For Each oCC In ActiveDocument.ContentControls If oCC.Type = wdContentControlDate Then oCC.DateDisplayLocale = wdEnglishUK oCC.DateDisplayFormat = "dd.MM.yyyy" End ...

MSEchangeIMC event log error
Hi- I'm running Exchange 5.5 on win2k server and just starting getting the following event log error. Lots of info out there on this, but not my particular error code. Event Type: Error Event Source: MSExchangeIMC Event Category: SMTP Interface Events Event ID: 4029 Date: 12/22/2003 Time: 10:25:29 AM User: N/A Computer: EXCHANGE Description: The following message could not be delivered. The destination server reported: 550 Security violation From: <> Subject: Undeliverable: Re: XSGMXE, to run over Any idea what error 550 means? Thanks in advance for any help. Best- Brian An...

Error message in event log
Server running Exchange 5.5 SP4 and W2K. I get the following error meesage in the event log. Event Type: Error Event Source: MSExchangeIS Private Event Category: Rules Event ID: 1147 Date: 3/12/2005 Time: 2:07:19 PM User: N/A Computer: RIEXCH06 Description: Error --- while disabling rule on public folder with rule ID 21. The folder ID of the public folder is in the data section of this event. How can I see which public folder is using rule id 21 ? Or does anyone have seen this error before ? -- JDA ...

HOW TO GET DATA FORM FORMS FIELDS
Hi! How can i get a hold of all the fields in Access form...basicly all the controls. I'm developing in Visaul Basic .Net framework 2.0. So far i only know how to find the right form (appAccess.CurrentProject.AllForms(x)) but i cant get information from its fields. -- .... but the beer is still good! On Mon, 1 Oct 2007 09:09:04 -0700, Antinsh <Antinsh@discussions.microsoft.com> wrote: >Hi! > >How can i get a hold of all the fields in Access form...basicly all the >controls. I'm developing in Visaul Basic .Net framework 2.0. >So far i only know how to find...

Get PCI Bus/Function/Device Number
Hi All, Is there a way to get the PCI bus, function and device number on which my current driver is installed. I could only find bus number in DEVICE_REGISTRY_PROPERTY. I had used WdfDeviceQueryProperty to retrieve this data. How can I get the function and device number? Thank You. Regards, Sushma Sushma <sushma.yella@gmail.com> wrote: > >Is there a way to get the PCI bus, function and device number on which >my current driver is installed. Why? That information is not very useful. >I could only find bus number in >DEVICE_REGISTRY_PROPERTY. I h...

Can't get automatic updates to work
I get this message: [Error number: 0x8DDD0018] The site cannot continue because one or more of these Windows services is not running: Automatic Updates (allows the site to find, download and install high-priority updates for your computer) Background Intelligent Transfer Service (BITS) (helps updates download more quickly and without problems if the download process is interrupted) Event Log (keeps a record of updating activities to help with troubleshooting, if needed) To make sure these services are running: 1. Click Start, and then click Run. 2. Type servic...

Excel Save As getting "folder is read only" error.
I'm getting a "folder is read only" error when trying to use "save as" to save a file. I can use save as from another computer, logged in to the network the same without the error. The machine getting the error can copy and paste files to the folders without error, just happens when using the "save as" from the file menu. Is there someplace to change folder attributes that only office 2003 is using? OK, I've figured this one out myself. When using a Novell server and Office 2003, it would seem that it is necessary to use Novel Client 4.83 sp...

Pivot Table Report: Getting average of difference of two date columns
Hello I have data in excel sheet as: WORK_ID PROJECT START_DT END_DT 1001 P1 1/1/2006 1/10/2006 1002 P1 1/25/2006 2/20/2006 1003 P1 3/15/2006 3/20/2006 I want to have a report that will give me average time taken to finish a work in a project. That is, I have to take average of (end_dt - start_dt) for a project group. How do I do this in a pivot table report. When I use a calculate field to get the days worked for a work_id using DATEDIF(START_DT, END_DT, "D") then excel computes only sum on that (pivot table report ...

Offline DB has corrupted, can't get back to main DB
Hi guys. We have a customer who suffered a powercut earlier today. When the power came back up, the offline databases kicked in for a while until a connection with the server returned. On one till the offline database was fine but when the connection to the server was restored, it wouldn't sync. It can be connected to manually in Store Adminstrator, but when we try to run a Check on it, it comes back with an error saying it's been found suspect and can't be opened. There's obviously something going on in the system that says before the main online database can be r...

How to get Table Description Field Text to show on Forms? Hovering? Right-Click?
Can I get the fioeld description I enter in the Table Design View to show on Forms or Queries? When the mouse hovers over the field or field name?? When the user right clicks on the field or field name?? At the bottom of the screen when the mouse hovers? How? Thanks for any help. Mel Ken, I've done some programming but not much in Access. How do I (where do I click) to add a function to the "standard module" ??? And, am I correct in understanding that the first function would be called each time the db opened? And the 2nd function would be called each time the form op...

on_change() event for text fields
Is there really no way to assign an event to a text field? We want to be able to have the format saved correctly for phone numbers when they're entered in (###)###-#### I've read some threads about this already and it looks like it cannot be done unless you write an app to constantly check and replace the phone numbers within the database itself. I can do this but it would be nice to know if there was any simpler way of going about this. Thanks in advance. nope, not at all,.....only picklists its kinda stupid too because under text boxes they have the ability to select &qu...

FrameWnd not getting WM_NCMOUSEMOVE
Hello everyone, I am implementing my own custom sizing functions for a child FrameWnd that has only the WS_BORDER style (no sizing border.) The problem is that this window does not receive a Non- Client Mouse Move message when the Left mouse button is pressed. It receives the message just fine as long as the button is NOT pressed, but not when it is. Now, as we know, the usual procedure for sizing a window is to press the mouse button when the pointer is over the Non-Client area, and then drag the window to the new size. But this makes it impossible if it doesn't receive a WM_N...

Add no. of days to a workday to get new workday?
Looking for a formula so I can add a number of workdays to an existing date to get the new workday (i.e. existing date + workdays = new workday). Here's an example: 1) Starting point: 4/15/10 2) Add: 4 3) Result: 4/21/10 (because it's 4 workdays after start date -- skipped weekend) Look in Help for details on the WORKDAY() function "blswes" wrote: > Looking for a formula so I can add a number of workdays to an existing date > to get the new workday (i.e. existing date + workdays = new workday). > > Here's an example: > 1) Starting po...

Getting Started Section in Office 2003
whenever I open an Office application like Excel, there is that section to the right 'Getting Started.' I am using Office 2003. this happens in Word as well. How can I remove them? I've looked in Tools > Options but wasn't able to find anything myself. I don't want them open when I intially open the application. Thanks in advance. Hi dsimoens! No need to post to more than one group. Press any key to continue on opening the file Make a couple of minor changes The save the file and re-open If created in an earlier version of Excel I think that saving will produce a di...

How to get rid of the update now extra sceen
When I perform and update now function in Money 2005, it pops up a warning screen that has a check box to "hide the pop up" on future runs of the function. This does indeed occur for subsequent runs on the same Money 2005 session, but if I close Money and re-open it, the box re-appears. How can I permanently get rid of the box. I assumed that this would be in the FAQ, but was unable to find it. Thanks Art McClinton Hi, there's a registry fix to remove it. It can be gotten from http://money.mvps.org/patches.aspx -- Glyn Simpson, Microsoft MVP - Money http://money.mv...

MSExchangeIMC
If anyone can help me solve this I would appreciate it. It seems several people are having difficulties with Event id: 4118, but as of yet this is all I have been able to come up with. I know the error is in the DATA expressed in WORDS. Event Type: Error Event Source: MSExchangeIMC Event Category: (6) Event ID: 4118 Date: 12/16/2003 Time: 10:50:09 AM User: N/A Computer: ExchangeServer Description: The description for Event ID ( 4118 ) in Source ( MSExchangeIMC ) could not be found. It contains the following insertion string(s): ZAWS9Z3M. Data: 0000: 00010227 80004005 MAPI Error Code ...

event 3092
I have a customer who is receiving the following warning in Event Viewer on their Exchange 2003 server. Source: MSExchangeIS Public St Category: Replication Errors Event ID: 3092 Description: Error 1129 occurred while processing a replication event. Folder: (2-FFFFFFF0003) IPM_SUBTREE\Internet Newsgroups Any ideas on how to get rid of this warning? They only have one Exchange server. They did remove an Exchange 5.5 box and followed the KBs to do so. Everything works fine. They would like to get rid of these warnings. Any ideas are greatly appreciated. DF Are there any server...

event and delegete
Hi! Is it possible to rewrite this code in such a way that I get something like event AlarmEventHandler myEvent; I'm not so used to code when it is written in this way. //Here is the Code If AlarmEventArgs e = new AlarmEventArgs(1,2); AlarmEventHandler handler = Alarm; if (handler != null) { handler(this, e); } //Tony public event AlarmEventHandler myEvent; The subscriber should: myEvent += MyHandler; Then the publisher should call it when appropriate: if (myEvent != null) { AlarmEventArgs e = new AlarmEventArgs(1,2); myEevent(this, e); }...

Quit creating duplicate desktop icons when doing upgrades/hotfix #2
Upon any sort of upgrade or hotfix, RMS creates a whole new set of desktop icons. What a pain! Pls fix. Ask if we want to create new desktop icons, pls. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft.com/Businesssolutions/Community/NewsGroups/...

Publishing to Web
I published my website to web then uploaded the index.htm file and created directory for the index_files then uploaded all of the files created by Publisher 2003 to it. However, none of my graphics will display on the website. All that is displayed are the alternate text. The url for this is wsitinc.com Can some one help explain what I did wrong and where to put the graphics to get them to display? thanks! > I published my website to web then uploaded the index.htm > file and created directory for the index_files then > uploaded all of the files created by Publisher 2003...

Get everything you need for a successful Marketing Campaign Today!
Get everything you need for a successful Marketing Campaign Today! Marketing Software - Promotion Center - Guaranteed Visitors - Guaranteed Signups Solo Emails - 1 Million Opt In Leads - Banner ads - Website Submission and Lots More http://www.typeinternational.com/idevaffiliate/idevaffiliate.php?id=3736_34_3_74 ...

customer on hold should get warning on recurring batch posting
If a customer is put on hold after a transaction for it is saved in a recurring batch, the system will still let the user post the batch without any warning. Please include the GP functionality to get a message prompt or warning that the user is posting a batch that includes transaction(s) for batch recurring. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion ...

XSLTransform & using XML Resolver to get images
I am transforming xml using XSLTransform which works fine. The xsl file is stored on eg. C:\temp1 and the xml is loaded from c:\temp2. All image files referenced in the stylesheet file are stored on the same path as the stylesheet and are not used in the transform. How do I use an XMLResolver to transform using the images without having to move the files, is it possible??? Images are referenced as eg. <img src="image1.gif"/> in the stylesheet. Thanks * Pat Buxton wrote in microsoft.public.dotnet.xml: >I am transforming xml using XSLTransform which works fine. The xsl >...

how do i get 4 postcards on one page?
I have created a postcard in publisher 2007. I cannot get it to print 4 per page. I have publisher 2003 at home and can get it to work fine. Help! Use one of the built-in Avery page setups, they work. Select postcard, Scroll down to Avery US letter, expand, 3263 landscape is a good start. -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "LiteracyLady" <LiteracyLady@discussions.microsoft.com> wrote in message news:6A296F77-95DB-42ED-A471-1FE14BA8EC58@microsoft.com... >I have created a postcard in publisher 2007....