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?
Posted on 2001-09-08 06:56:24 by CRYO
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.... ;)
Posted on 2001-09-08 08:49:56 by LuHa
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.
Posted on 2001-09-09 15:06:06 by Vom-bonjour:-()
thanx.
I give it a try in the next days
Posted on 2001-09-10 01:04:23 by CRYO