Example Keystroke Codes for Window Hook

This code snippet reveals some of the keystroke commands that can be captured by a window hook function. I have extracted it here from the Scroll Traces package. In the interest of being brief, I excluded the actions for each case statement.

if (sh.eventCode == 11)
    //print sh.keycode
    switch(sh.keycode)
        case 31:    // up key
            break
        case 30:    // down key
            break
        case 29:    // right key
            break
        case 28:    // left key
            break
        case 97:    // a key
            break
        case 99:    // c key
            break
        case 102: // f key
            break
        case 104: // h key
            break
        case 107: // k key
            break
        case 114: // r key
            break
        case 111: // o key
            break
        case 108: // l key
            break
    endswitch
endif

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More