The title is partially static with an variable suffix. For example \"Window Title {- user_id}\".
How can I get the handle without knowing the exact title?
Look through all the Processes and check the MainWindowTitle. (You can use regexps, or StartsWith, etc)
StartsWith
foreach(Process proc in Process.GetProcesses()) { if(proc.MainWindowTitle.StartsWith("Some String")) { IntPtr handle = proc.MainWindowHandle; // ... } }