excel - SendMessage can't get text with WM_GETTEXT -


i trying text of window sendmessage function. however, can length of text can't text. guess type of txt (string) not correct sendmessage. thanks.

const wm_settext = &hc const wm_gettext = &hd const wm_gettextlength = &he  dim hwnd long dim hwnd_child long dim result long dim txtlen long dim txt string   hwnd = findwindow(vbnullstring, "İngilizce türkçe sözlük") hwnd_child = findwindowex(hwnd, 0, "edit", vbnullstring) txtlen = sendmessage(hwnd_child, wm_gettextlength, 0, 0) s = space$(txtlen + 1) result2 = sendmessage(hwnd_child, wm_gettext, byval txtlen, txt)  msgbox txt 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -