![]() |
|
[C#] Hide chrome selenium browser by window handle - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Hide chrome selenium browser by window handle (/showthread.php?tid=5760339) |
Hide chrome selenium browser by window handle - Kyogo - Nov 29, 2017 I was able to hide the process(selenium chrome browser) by using FindWindow and the lpWindowname by changing the browser title with Javascript. But I want to be able to hide the process(selenium chrome browser) by a different handle since the window name changes everytime it navigates to a different page. Here is my code: Code [DllImport("user32.dll")]RE: Hide chrome selenium browser by window handle - Kyogo - Dec 4, 2017 bump still need help with this RE: Hide chrome selenium browser by window handle - totenkopf - Dec 4, 2017 Code [DllImport("kernel32.dll")]Look into OpenProcess() https://msdn.microsoft.com/en-ca/library/windows/desktop/ms684320(v=vs.85).aspx It returns the handle, you should be able to read/write even when you've changed the process name. You can also look into WriteProcessMemory() for changing the process name opposed to using JavaScript, and approach it using the typical read/write process methods. https://msdn.microsoft.com/en-us/library/windows/desktop/ms681674(v=vs.85).aspx |