Hello everyone
I am unable to find a child window by using the findwindowex fuction .Please help me
Printable View
Hello everyone
I am unable to find a child window by using the findwindowex fuction .Please help me
maybe you could post some code of how you are attempting this?
i presume you are calling FindWindow first?
Yes I first find the main window handle.The Main window which has client window.I used findwindowex to retrive the handle of client.The child which I am trying to find appears only after the application connects to server.
Maybe you could post some code because it will be incredibly difficult to answer your question if we can't see code. It's like this, if my code wasn't working and i couldn't see it do you think i would be able to find the problem?
oh2 is the client window handle.When the application connects to a server a child window can be opened by pressing some hotkey.Until then there will be no child window.Even menu bar also chnages.Some additional menus will appear.HTML Code:Dim oh1, oh2, oh3, oh4 As IntPtr
odpro.StartInfo.FileName = "c:\programfolder"
odpro.Start()
odpro.WaitForInputIdle(100000)
oh1 = odpro.MainWindowHandle
oh2 = win32.Fichi(oh1, oh2, "MDICLIENT", "")
I don't see findwindow or findwindowex anywhere...
Cameron
Found method.But when I send message thru Sendmessage function to copy the window is not reponding.any help?
Again i am struggling to work out what your problem is because i can't see your code. Please post your code which executes the findwindow, the sendmessage and the code which causes the window to not respond.
Cameron
Thanx for ur reply.My aim is to copy the listview of a child window to excel sheet.I found the handle of the child window which I have to copy and paste into a excel sheet.The child window accepts CTRL+c
when the window is active.I have to make my appliction to copy the listview of the child window automatically by sending a message to the region of the childwindow and paste the copied data to excelsheet seamlessly.Hope I am clear