I want to make an application that starts another application and clickes on a LabelLink in that application. I have googled and found only how to do this kind of thing with clicking on a button. The event constant in button_Clicked is 245. So do I need to just know the event constant to LinkLable_LinkLabelClicked (I didn't find it in google)?
Here is the code for finding the link label and clicking it (but it doesn't work, probably only because I don't have the LinkLable_LinkLabelClicked constant):
Expand|Select|Wrap|Line Numbers
- //Get a handle for the LinkLabel
- hwndChild = FindWindowEx((IntPtr)hwnd, IntPtr.Zero, "LinkLabel", "MSN Messenger");
- //send LinkLabel_LinkLabelCLicked message. "MSN Messenger"-LinkLabel text.
- SendMessage((int)hwndChild, LinkLabel_LinkLabelClicked, 0, IntPtr.Zero); //LinkLabel_LinkLabelClicked- unknown constant.
By the way, I used this article:
http://www.codeproject.com/csharp/WindowsAPIsFromCS.asp
Thanks in advanced.