Debugging textedit (gathering its content)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ElseCZ
Newbie
Newbie
Posts: 2
Joined: Sun Jun 19, 2011 9:09 am

Debugging textedit (gathering its content)

Post by ElseCZ »

Hi guys,

I'm new in wine debugging, but i need to get content of textbox to console. I tried

Code: Select all

WINEDEBUG=+edit ./app.exe 2>&1
It gets content of lineedit, but not textedit.

Do you have some idea how read content of textbox from win app in wine?

Thanks
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Debugging textedit (gathering its content)

Post by jjmckenzie »

On 6/19/11 7:12 AM, ElseCZ wrote:
Hi guys,

I'm new in wine debugging, but i need to get content of textbox to console. I tried


Code:

WINEDEBUG=+edit ./app.exe 2>&1

It depends on the type of edit box. You might want to try this:

WINEDEBUG=+richedit,+edit ./app.exe &> file.txt

if you are using bash as your shell.
ElseCZ
Newbie
Newbie
Posts: 2
Joined: Sun Jun 19, 2011 9:09 am

Post by ElseCZ »

Thank jjmckenzie for your answer, but richedit doesn't help. I can see every message from lineedit below:

Code: Select all

trace:edit:EditWndProc_common hwnd=0x50150 msg=102 (WM_CHAR) wparam=66 lparam=210001
trace:edit:EDIT_EM_ReplaceSel L"f", can_undo 1, send_update 1
trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 35, strl 1, selstart 35 (L""), text L"vgfgdfgdfgdfgdfgdgdfgdfgdfgdfgdfgdg")
trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x3013e
trace:edit:EDIT_SetCaretPos 36 - 194x0
trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x3013e
trace:edit:EditWndProc_common hwnd=0x50150 msg=102 (WM_CHAR) -- 0x00000001
trace:edit:EditWndProc_common hwnd=0x50150 msg=f (WM_PAINT) wparam=0 lparam=0
trace:edit:EditWndProc_common hwnd=0x50150 msg=14 (WM_ERASEBKGND) wparam=a60 lparam=0
trace:edit:EditWndProc_common hwnd=0x50150 msg=14 (WM_ERASEBKGND) -- 0x00000001
but textedit doesn't show any message in debug output. In fact it's chat so lineedit + textedit under.

I'm trying gather text from pokerstar client. There's screenshot:

Image

any other idea?
Thanks
Locked