public static Win32_Handle_Hijack hijack_Process_Into_Panel(this API_Chrome_Hijack chromeHijack, Panel targetPanel, Process targetProcess) { var hijackGui = targetPanel.add_Handle_HijackGui(false) .hijackProcessMainWindow(targetProcess); return(hijackGui); }
public static API_Chrome_Hijack hijack_Chrome(this API_Chrome_Hijack chromeHijack, Panel targetPanel, bool hijackJustViewer) { if (chromeHijack.notNull() && chromeHijack.ChromeProcess.notNull() && targetPanel.notNull()) { chromeHijack.Panel_Chrome = targetPanel; var hijackGui = chromeHijack.Panel_Chrome.add_Handle_HijackGui(false); if (hijackJustViewer) { hijackGui.hijackProcessWindow(chromeHijack.ChromeProcess, (mainWindowHandle) => { // this doesn't work well now since the main chrome window (with the address bar) still gains focus) // need to look at how to capture and filter events from the child to the parent (and vice versa) // var targetWindow = mainWindowHandle.child_Windows().second(); return(targetWindow); //return mainWindowHandle; // for now hijack the whole thing }); } else { hijackGui.hijackProcessMainWindow(chromeHijack.ChromeProcess); } } return(chromeHijack); }
public static API_Chrome_Hijack add_Chrome_To_Panel(this API_Chrome_Hijack chromeHijack, Panel targetPanel) { var chrome_Panel = targetPanel.add_GroupBox("Chrome").add_Panel(); var chromeDriver_Panel = chromeHijack.Panel_Chrome.parent().insert_Below(150, "Chrome WebDriver"); return(chromeHijack.hijack_Chrome(chrome_Panel, false) .hijack_ChromeDriver(chromeDriver_Panel)); }
public static API_Chrome_Hijack hijack_ChromeDriver(this API_Chrome_Hijack chromeHijack, Panel targetPanel) { if (chromeHijack.notNull() && chromeHijack.ChromeDriverProcess.notNull() && targetPanel.notNull()) { chromeHijack.Panel_ChromeDriver = targetPanel; chromeHijack.Panel_ChromeDriver.add_Handle_HijackGui(false) .hijackProcessMainWindow(chromeHijack.ChromeDriverProcess); } return(chromeHijack); }
public static API_Chrome_Hijack add_WebDriver_ScriptMe_To(this API_Chrome_Hijack chromeHijack, Panel targetPanel) { chromeHijack.WebDriver_Script_Me = chromeHijack.ChromeDriver.script_Me(targetPanel); return(chromeHijack); }