There's an app called 'UISpy' (or similar) that shows the handle (and other stuff) if you hover your mouse over a control (regardless which app). It uses the same technique; sending messages to a control. IIRC, then "WM_SETTEXT" would be the message to set a certain string in a foreign edit-control. It won't be as easy as looping all the controls; native apps do not use the .NET framework. You'd have to dive into the winapi.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]