Tool development question
Posted: Wed Mar 28, 2012 8:30 am
Hi,
I'm currently trying to write a tool in C# to help with some formatting issues that I'd like to programatically solve. Following the XMLTidy route and getting the input text from the clipboard, I'm now struggling to write the output back out to the document window.
I've got the document window handle passed in, and have navigated to what I think is the correct handle to write to. I'm trying to use SendMessage from User32.dll, with a WM_SETTEXT param, but it doesn't seem to be working.
Is anyone able to offer any pointers?
Thanks,
PK.
I'm currently trying to write a tool in C# to help with some formatting issues that I'd like to programatically solve. Following the XMLTidy route and getting the input text from the clipboard, I'm now struggling to write the output back out to the document window.
I've got the document window handle passed in, and have navigated to what I think is the correct handle to write to. I'm trying to use SendMessage from User32.dll, with a WM_SETTEXT param, but it doesn't seem to be working.
Is anyone able to offer any pointers?
Thanks,
PK.