lock (SyncObjects.InputSyncer)
{
// click hello button
Emulator.ActiveWindow(instance.FormTitle);
Emulator.MouseClick(instance.ActiveTab.Handle, MouseButton.Left, MouseButtonEvent.Click, 105, 335);
string dialogCaption = project.Variables["caption"].Value;
string fileToUpload =...