Getting UI text from external app in C#

后端 未结 3 1231
小鲜肉
小鲜肉 2021-01-01 04:00

Is it possible to get UI text from an external application in C#.

In particular, is there a way to read Unicode text from a label (I assume it\'s a normal Windows l

3条回答
  •  一整个雨季
    2021-01-01 04:54

    didn't see the values for wm_gettext or wm_gettextlength in that article, so just in case..

    const int WM_GETTEXT = 0x0D;
    const int WM_GETTEXTLENGTH = 0x0E;
    

提交回复
热议问题