How do you identify a key events source (std keyboard or a USB barcode reader emulating keyboard)?

I have attached a USB barcode reader which essentially emulates a USB
keyboard. Having looked through the VC++ V5.0 documentation and some SDK
documents that I have, I could not find a library function that identifies
what device sourced the keyboad event.
Does know if this is possible ? Anyone have any ideas ?
Thanks.

If you over ride the "CWnd:reTranslateMessage" function you'll be able to trap keyboard messages.
ex:
BOOL CTestexecDlg:reTranslateMessage(MSG* pMsg)
if (pMsg->message == WM_KEYDOWN && (pMsg->wParam == 13 || pMsg->wParam == VK_ESCAPE))
// Enter or escape key was pressed; return TRUE to stop default handling
return TRUE;
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x30)
BringWindowToTop( );
return TRUE;
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x31 && m_DisplayObject1 != NULL)
// Enter or escape key was pressed; return TRUE to stop default handling
m_DisplayObject1->SetWindowToTop( );
return TRUE;
if (pMsg->message == WM_KEYDOWN && pMsg->wPa
ram == 0x32 && m_DisplayObject2 != NULL)
// Enter or escape key was pressed; return TRUE to stop default handling
m_DisplayObject2->SetWindowToTop( );
return TRUE;
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x33 && m_DisplayObject2 != NULL)
// Enter or escape key was pressed; return TRUE to stop default handling
m_DisplayObject3->SetWindowToTop( );
return TRUE;
return CDialog:reTranslateMessage(pMsg);
Steve

Similar Messages

  • How do you identify duplicates?

    Since a photo can be assigned to multiple albums, how do you identify duplicates and their source?  Upon moving over to Photos, I now see a lot of duplicates showing up and have no idea where they belong so cannot just delete them ;-(

    hello,
    it is nice when you can answer your own question...
    looked in 'common...media core...' and found the new blue trial plugins
    also had the duplicates of the new blue plugins in the AE plugins 'effects' folder
    deleted the plugins from the 'media core' folder
    no more warning signs...
    cool deal
    back to work,
    j

  • How do you add an application event to the Applications Panel

    How do you add an application event to the Applications Panel.
    My previous post referred to .ashx files, and the problem seems that Firefox, by default, does not recognize a .ashx format being read by Adobe Acrobat.
    Therefore there needs to be a way to add Applications and Events into the Applications Panel under Preferences

    domdp wrote:
    ...I have Theme L selected and I get 10 icons along the left side and bottom....
    ...I am thinking I may be limited to 10 icons....
    Gotcha... But actually its limited to 9 icons in the L theme as the Profiles icon is always present. From that screen hit the Menu key to display the bigger list of icons. Arange them so the first 9 icons are the ones you want to see on the L theme.

  • Simple question - How do you make an onchange event occur in a select list

    Simple question - How do you make an onchange event occur in a select list to fire a process?
    Thanks

    1) Using ApEx Selec list on Submit Item.
    You will create a PL/SQL Process after Submit. -> Conditional Type Request = Expression1. -> Expression1 is the name of your Select List. Process Source - > Procedure you like. For example depending of your select List value you will add rows in different tables.
    2) Javascript This example will change a System parameter value when changed
    <select id="P3_SUBSYSTEM" onchange="location.href='f?p=101:3:2164422329953284::NO::P3_SUBSYSTEM:'+this.options[selectedIndex].value;" size="1" name="p_t21">

  • How do you remove duplicate note events 1 or to ticks apart ?

    How do you remove duplicate note events 1 or to ticks apart ?
    my keyboard was putting out doubled note events durring a session.
    But the note events are between 1 and 3 cliks apart.
    in other words 1 might be at 1 3 151 and the other duplicate at 1 3 153
    So remove duplicate events does not work.
    I dont want to have to quatize all events either.
    thanks
    CC
    Logic X

    The only other option I can think of that may help you is the select highest/lowest notes.
    This will select the top or bottom notes for any notes that are overlapping.
    the key command is :
    **** up ( highest ) or shift down ( lowest )
    It may work on some blocks of notes, but it's a bit hit and miss.
    Other than that it's a manual editing job I'm afraid

  • How do you change the key of a Logic Pro X loop?

    Hi everyone,
    I am working on a song in Logic Pro X using one of the loops and I just wanted to know how to change the key of the loop to fit in with the key of the song? The key of my song is C Major while the Loop is in G Major.
    Any tips would be gratefully received.
    Many thanks.

    Jamiesroom wrote:
    How do you change the key of one specific loop using the Key/Transpose in the Inspector? Step by step instructions would be great.
    Many thanks.
    Here is the step-by-step instruction:
    Step 1: Select the MIDI Region and set the Transpose value in the Region Inspector to the left.
    Step 2: There is no Step 2
    If you are a newbie, then I would recommend to have a look at my Graphically Enhanced Manual "Logic Pro X - How it Works" where I explain everything in great details with lots of easy to understand diagrams and screenshots, including a separate chapter about Apple Loops.
    BTW: If you have a proper Apple Loop, then it should automatically adopt to the key of your Project. A transpose is not necessary, unless you want to overwrite a phrase to a specific key.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How to send Remote controller key event

    Hi Sir,
    Can anyone tell me "how to send key event from "Remote
    Controller" to Flex application?
    for example. I want to control the Flash player or my Flex UI
    application from remote controller such as use firefly
    controller/streamzap controller/Gyration controller. Normally user
    will use mouse or keyboard to enter/generate event, now I want to
    use "Remote controller" to generate the key event. In Flex, how can
    I capture the key event from "remote controller"? Any sample code
    to provide that will be good.
    Thanks.
    Lin

    Here's a couple related threads
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=583877
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=712386
    I'd also suggest exploring the Search Forums available on the left,
    which is how I found those threads:
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=focus+traversal+tab+text&subCat=siteforumid%3Ajava57&site=dev&dftab=siteforumid%3Ajava57&chooseCat=javaall&col=developer-forums

  • Multiple triggring events - How can you identify which one started the wf?

    Hi all,
    I would like to know if there is a way of identifying which triggering event started the wf.
    The situation is like this: i have a workflow that can be started by one of 6 triggering events (6 different situations for vendor master data - creation needed, extension needed, change needed and so on). I have to do different steps inside the workflow function of which event actually triggered the wf.
    Is there a container element that gets some sort of identification for the event that actually triggered the wf?
    I found a container element that holds the name of the event but it's a multiline container element (so i guess it holds all the event names) and i can't use it in a multiple condition.
    Thank you
    Cristina

    for those events, you can add want you want as abap dictionary
    it doesn't matter, just look in SE11, where you can find any kind of data element of type char1 and use that one.
    Those events, are those standard events or events that you trigger yourself with the function SWE_EVENT_CREATE?
    Edited by: Kristof De Bruecker on Mar 24, 2010 2:56 PM

  • How do you identify the Logical system in start routine of a transformation

    My scenario is this.  I have five r3 systems that I am extracting from.   In the start routine of the transformation from the r3 data source to my data store I  am going to delete data and I need to know the source system id.    How do I identify the logical system or source system id in the transformation.  Is there a system field that contains this information.    I do not want to hard code the source system id in the routine.

    hi
    have a lool at tables rsreqdone and rsbkrequest with a join you should be able to determine the source.
    regards
    Boujema
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).
    Edited by: Boujema Bouhazama on May 9, 2008 12:04 AM

  • How do you sort your Photostream Events in iPhoto?

    I have my photostream photos automatically imported to  iPhoto on my iMac - so I have lots of "events" with names like March 2013 photostream or July 2014 photostream. In each of these events, there are often a whole group of photos that belong together - like a birthday party. There are also some "one off" photos that just one or two shots of something I wanted to photograph (like a couple of pictures of a rainbow, or a picture of a recipe that I like to have on hand so that I can shop for ingredients). I am not sure how these are supposed to be handled. I can leave them all in photostream and add key words to the photos so that I can search for them perhaps (but then I have to manage a lot of key words. I cannot just add a key word "Birthday Party" since I attend many birthday parties. I would have to use a key work like "Bob's 30th birthday party" unless I wasted my search to turn up every picture ever taken at any birthday party!) i can create an event and call it "Bob's 30th birthday party. That seems to work ok - although I'm not sure if I should be doing this. As for the other photos, like the two of the rainbow and the one of the recipe, I don't know what to do with them. I can leave them in photostream with keywords. I can create an entire event called "Recipes" although the range of dates on such a folder might be quite wide since I am always saving recipes, which  means that when my events are sorted by date, my new recipes will appear in an early event along with the very first recipe I ever took a photo of!
    I would love to know how others arrange their events . Do you ever create an event based upon a subject (My Cat Missy) even if the photos span a good deal of time? Or do you leave Missy's photos spread over many events depending upon what date you snapped the photo??? Have you ever completely emptied out a monthly photostream event (for example, let's say all your photostream photos for the month were taken at one wedding, so you moved them all into a single event called "Kate's Wedding."
    See what I mean? Back in the windows days, when admittedly, I took fewer photos, I would create a folder for each big photo taking event (christmas, weddings, birthdays, a lovely walk in the park) and I would create just one folder with the year "Photos from 2008" to put in all the ones and twos photos that don't really belong with anything else. I also had a single folder with pictures of my cats and one that had photos of recipes. I added to these photos anytime I had a picture of my cat or a recipe to upload.
    What does everyone recommend? Sorry for being so long winded. I cannot find any info on "how to sort or manage monthly photostream event photos" so perhaps I am the only one with this issue.

    1. There is no right answer. There is no "should". There is the way that makes sense to you.
    2. You can keyword photos with Birthday party, but also Title them with Bob's 30th, that gives you two ways to search for them
    This might give you some ideas:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • How to implement "ALT + some key" event ?

    Hello,
    I'd like JDialog to catch key events only when user holds ALT button and presses some regular key (e.g. A,B,C, etc...).
    How this can be done ?
    Thanks for any advice !

    maybe you should use mnemonics?
    i don't know what is it you want to do.
    buti if you want for example to have JDialog, where are some buttons (OK & CANCEL) and want user to be able to click them by pressing ALT+O or ALT+C, then you might need to use mnemonics...
    if you want to enable some new kind of copy/paste/whatever combinations, then you might want to use keybindings
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    or see tutorial about using menus, and the part there which tells about enabling key operations
    http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#mnemonic
    or be more specific about your problem... what and Why are you trying to do.

  • How to handle Shift+Tab key event

    HI,
    This is Ramesh.I have added KeyListener to JTable. I am handling key events through key codes. But I am
    unable to handling multiple key strokes like Shift+Tab
    Can any one please give me suggestion how can I do it
    Thanks & Regards
    Ramesh K

    i dont know about Key BindingsWhich is why you where given a link to the tutorial in the first response.
    can you please give me suggestion.You've been given the suggestion 3 times. You can decide to learn to write code the way other Swing components are written. Or, you can do it the old way. The choice is up to you.

  • How do you identify your Mac mini 1.83Ghz between MB138LL/A and MA608LL/A?

    A friend of mine told me, in Taiwan, it is possible to have an old 1.83Ghz Mac mini when you wanted to buy a new 1.83Ghz Mac.
    If I decide to buy a 1.83Ghz Mac mini, how do I know if it's the 1.83GHz Mac mini (MB138LL/A), not a 1.83Ghz [MA608LL/A] one?
    How do I identify it?
    We don't have a CPUID software for Mac OS, do we?

    click on the apple button on the upper left hand of the screen.
    click the first option (my mac is in german, so I dont know what the word is in english)
    if it says "intel core 2 Duo" then you have a new one, and if it says "intel core duo" it is an old one

  • How do you carry out an event if a job finishes with a return code 4?

    Hi
    A job which would complete successfully in SAP via the SM36 scheduler completes with an 'Error' in Redwood CPS because there are errors within the spool and it ends with a return code 4.
    We don't want this to error in Redwood CPS, so we have set the return code mapping to Completed with entries of 0 and 4.
    I.e. whether or not there is an error in the spool, the job will complete successfully in Redwood CPS.
    However, we want to be alerted if there are errors in the spool.
    How do we do this? The manual says "A job can raise one or more events when the job gets a specific job status or return code" - where is this set? I can see on the 'Event' tab of a job definition you can raise an Event when the job enters a specific status, but I only want to raise an event (or carry out a step / send an email etc) if I get a return code 4 (none of the job statuses are relevant) - how can I do this?
    Thanks
    Ross

    Hi Anton
    Thanks for that. However, it's a bit more complicated...
    I have a job chain with 2 steps. Any one of the two steps can have an error in the spool which by default in Redwood CPS result in the job ending in status Error. I don't want this, as the second step should still run if the first step ran okay with with errors in the spool (but shouldn't run at all if the 1st step fails completely). I.e. setting 'on Error goto step 2' or having no dependancy at all is not what we want.
    Therefore, I set the return code mapping on Completed to return codes 0 and 4. I.e. if step 1 has an error in the spool (return code 4) it still ends as 'Completed' and step 2 runs.
    Our problem is that we want to be alerted if there is a return code 4 (error in the spool). I tried as you suggested by entering on the 'Raise Event' tab of the job chain to raise an event on status 'Error' with a return code of 4. But no event was raised. I think this is because the return code mapping is setting the status to 'Completed' (on return code 0 or 4) BEFORE the software checks the status; i.e. the status is actually 'Completed' (rc=4) and not 'Error' (rc=4) so an event is not raised.
    Ideally I want to set the Event to be raised on status 'Completed' with a return code 4 - but when I select 'Completed' the 'Error Code' box is greyed out.
    I.e. can't set this - I can only set on a generic 'Completed' and I don't want to raise a message if the status is Completed but the return code is 0....
    Any ideas??
    Ross

  • How do you sync photos or events from computer to iPad

    How do you sync selected photos or photo events from computer to iPad?

    The following has instructions: Sync photos to your iPhone, iPad, and iPod touch in iTunes - Apple Support

Maybe you are looking for