Any ideas on how I can click on the Start button and then click on items in the start menu on Windows XP?
This is what my code looks like so far:
IntPtr shellTrayWnd = FindWindow("Shell_TrayWnd", null);
int explorerProcessId = 0;
GetWindowThreadProcessId(shellTrayWnd, out explorerProcessId);
Application explorer = Core.Application.Attach(explorerProcessId);
List<Window> windows = explorer.GetWindows();
However, GetWindows() does not find any windows for that application (explorer.exe).
Can I create an instance of Window from a window handle (IntPtr)?