How to access (write to) an EditBox in another application?
I tried SetDlgItemTextA and SetWindowTextA -> result is 01h
but it doesn't seem to work! No text-changes in the Editfield
are done!
handles & ID's of Controls are taken by two WindowSpyUtilities
WindowER by Alpine(for handle) & SMU Winspector (for ID of EditBox)
Perhaps the answer is sending a message via SendmessageA or
PostMessageA.
This is just a thought.
Anyone can help?
I tried SetDlgItemTextA and SetWindowTextA -> result is 01h
but it doesn't seem to work! No text-changes in the Editfield
are done!
handles & ID's of Controls are taken by two WindowSpyUtilities
WindowER by Alpine(for handle) & SMU Winspector (for ID of EditBox)
Perhaps the answer is sending a message via SendmessageA or
PostMessageA.
This is just a thought.
Anyone can help?
Yes, you are right, you have to manually send a WM_SETTEXT. Here is a quote from msdn help:
Remarks
If the target window is owned by the current process, SetWindowText causes a WM_SETTEXT message to be sent to the specified window or control.
If target windows is not owned.... ;)
Remarks
If the target window is owned by the current process, SetWindowText causes a WM_SETTEXT message to be sent to the specified window or control.
If target windows is not owned.... ;)
Hi,
Yeah, you must use sendmessage function with WM_SETTEXT.
And to retrieve the ID and the handle of a window or a control, you can download a prog I made (called "Get&Set") on my site. It uses hooking.
It's available on Iczelion's site: http://win32asm.rxsp.com/
or on my site:
www.vombonjour.fr.st
Of course, there is the code.
PS:SetWindowText function also works but not for Edit or static or maybe button controls.
Yeah, you must use sendmessage function with WM_SETTEXT.
And to retrieve the ID and the handle of a window or a control, you can download a prog I made (called "Get&Set") on my site. It uses hooking.
It's available on Iczelion's site: http://win32asm.rxsp.com/
or on my site:
www.vombonjour.fr.st
Of course, there is the code.
PS:SetWindowText function also works but not for Edit or static or maybe button controls.
thanx.
I give it a try in the next days
I give it a try in the next days