Hello making post/sendMessage, inserting user/password than click on application button.and....
After i connected to apllication i have Windows with info,ok until now all fine. My problem is i have one Window with folders (not like before textBoxs,buttons that was very easy to use),and in side of each folder there a file that i need to select and press enter.
I want to do this:
1.Find this form
2.Press WM_KEYUP/WM_KEYDown (i think like this PostMessage(currChild, WM_KEYUP, 0, 0);
)
3.To know each folder(name) is selected and press Enter if i need
4.Then go to sub files select one by one and press Enter
Ok i am on step 2 and dont know what to do
My code
if (connected)
{
prevChild = 0;
intWhdr = FindWindow("WindowsForms10.Window.8.app.0.33c0d9d","Finance");//Main Window
currChild = FindWindowEx(intWhdr, prevChild, "WindowsForms10.SysTreeView32.app.0.33c0d9d", "TreeView");//This my Window with folders
currChild = FindWindowEx(intWhdr, prevChild,"WindowsForms10.SysTreeView32.app.0.33c0d9d", "");
do
{
currChild = FindWindowEx(intWhdr, prevChild, "WindowsForms10.SysTreeView32.app.0.33c0d9d", "TreeView");
currChild = FindWindowEx(intWhdr, prevChild, null, null);
if (currChild != 0)//here i trying to find my folders
{
byte[] buffer = new byte[256];
string text = null;
int rs = SendMessage(currChild, WM_GETTEXT, 256, buffer);
text = System.Text.Encoding.Unicode.GetString(buffer);
text = text.Replace("\0", "");//Trying to read text from folder
prevChild = currChild;
PostMessage(currChild, WM_KEYUP, 0, 0);
}
}
while (currChild != 0);