How to send a colon using keybd_event

Posted on 2006-05-17
Last Modified: 2012-08-13
Hi experts.

I'm currently working on a project at work and need to send a colon to my application using keybd_event. Im trying to find the hex value for the key. i.e. VK_Colon = &Hxx. Is there a list of all hex values?

Many Thanks

Question by:ljhodgett
    LVL 44

    Expert Comment

    Hello ljhodgett,

    for the keycodes you could check a page like this

    gives us

    integer VK_DIVIDE = 110

    for conversion

    MsgBox "&H" & Hex(110) 'convert to HEX gives &H6E

    hope this helps a bit
    LVL 26

    Accepted Solution

    LVL 35

    Expert Comment

    by:[ fanpages ]
    LVL 44

    Expert Comment

    sorry missed a few things while testing ..... EDDYKT is right there

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now