Click here to Skip to main content
15,896,503 members
Articles / Mobile Apps / Windows Mobile

Scraping Text from the Screen

Rate me:
Please Sign up or sign in to vote.
4.96/5 (36 votes)
17 Jun 2010CPOL8 min read 109K   8.6K   83  
How to programmatically read text from any process at any point on the screen
/////////////////////////////////////////////////////////////////////////////
//
// Menubars for standard dialogs declared in atlresce.h
//

ATL_IDM_MENU_DONE SHMENUBAR 
BEGIN
    ATL_IDM_MENU_DONE, 1,
    I_IMAGENONE, ID_MENU_OK, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, 
    ID_MENU_OK, 0, NOMENU,
END


ATL_IDM_MENU_CANCEL SHMENUBAR 
BEGIN
    ATL_IDM_MENU_CANCEL, 1,
    I_IMAGENONE, ID_MENU_CANCEL, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, 
    ID_MENU_CANCEL, 0, NOMENU,
END


ATL_IDM_MENU_DONECANCEL SHMENUBAR 
BEGIN
    ATL_IDM_MENU_DONECANCEL, 2,
    I_IMAGENONE, ID_MENU_OK, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, 
    ID_MENU_OK, 0, NOMENU,
    I_IMAGENONE, ID_MENU_CANCEL, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, 
    ID_MENU_CANCEL, 0, NOMENU,
END

ATL_IDW_MENU_BAR SHMENUBAR  
BEGIN
    IDR_MAINFRAME, 
    2,
    I_IMAGENONE, ID_ACTION, TBSTATE_ENABLED, TBSTYLE_AUTOSIZE, ID_ACTION, 0, NOMENU,
    I_IMAGENONE, ID_MENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, ID_MENU, 0, 0,
END


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) An engineering firm in Cedar Rapids, Iowa
United States United States
I'm also on the MSDN forums
http://social.msdn.microsoft.com/profile/paulh79

Comments and Discussions