Hello again.
Using your advice I managed to send keys to "Jump to File" window.
Below is the script that works perfect for me:
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace WindowsFormsApplication1
{
class test
{
[DllImport("User32.Dll", EntryPoint = "PostMessageA")]
static extern bool PostMessage(IntPtr hWnd, uint msg, int wParam, int lParam);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr FindWindow([MarshalAs(UnmanagedType.LPTStr)] string lpClassName,
[MarshalAs(UnmanagedType.LPTStr)] string lpWindowName);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
public static void comm()
{
IntPtr hwnd = FindWindow("BaseWindow_RootWnd", null);
IntPtr chwnd1 = FindWindowEx(hwnd, IntPtr.Zero, "BaseWindow_RootWnd", null);
IntPtr chwnd2 = FindWindowEx(chwnd1, IntPtr.Zero, "Winamp Gen", null);
IntPtr chwnd3 = FindWindowEx(chwnd2, IntPtr.Zero, "#32770", null);
IntPtr chwnd4 = FindWindowEx(chwnd3, IntPtr.Zero, "Edit", null);
PostMessage(chwnd4, 0x100, 0x43 , 0);
}
}
}
0x43 is the Virtual-Key Code for „C" key.
Thank you very much for your answer.