public static API_WebScarab loadConversations(this API_WebScarab webScarab, Control hostControl, string conversationsSavePath) { // open menu webScarab.bringToFront(); webScarab.InputSimulator.set_XY_OffsetToWindow(webScarab.WebScarab_Process); // this will make the mouse_MoveTo below to be relative to the current webscarab window webScarab.InputSimulator.mouse_MoveTo(20, 30).click(); // save button webScarab.InputSimulator.mouse_MoveTo(20, 80).click(); hostControl.sendKeys("").sleep(1000); hostControl.sendKeys(conversationsSavePath).sleep(1000); // this API is more robust for WebScarab Application.DoEvents(); hostControl.sendKeys("").sleep(1000); webScarab.InputSimulator.send_Tab().sleep(500); webScarab.InputSimulator.send_Tab().sleep(500); webScarab.InputSimulator.send_Enter().sleep(500); "API_WebScarab conversation load complete".info(); return webScarab; }