This is what I´m trying to do: Hjälper du någon annan eller? Har försökt att skicka EM_SETSEL och sedan WM_COPY men det fungerar inte heller, jag håller på att stånga mig blodig på detta!Extract text from editbox
I have another application that I don´t have the source code for so I´m trying to get the text in the edit box from within that app, I use spy++ to se the handle of that edit box (see picture). I know I have the right handle of the editbox because when I use the commands:
Dim lRet = SendMessage(hwndFind, EM_GETLINECOUNT, 0, 0)
Dim lRet2 = SendMessage(hwndFind, EM_GETLIMITTEXT, 0, 0)
Dim lRet3 = SendMessage(hwndFind, EM_LINELENGTH, 0, 0)
I get the right values of that edit box.
But I can´t get the actual text from the box. I tried to get the text from the window where the editbox is and it works fine but I can´t get the text from the editbox itself.
See this link for a picture:
http://www.vbcity.com/forums/topic.asp?tid=96637Sv: Extract text from editbox
Försök hitta API:et som kopierar text till klippboken. Då ligger markerad information centralt och kan nås från alla applikationer.Sv:Extract text from editbox