window-handles

How to close all neural network diagrams in MATLAB?

流过昼夜 提交于 2020-01-13 19:27:23
问题 I need to show diagrams of some networks, but the problem is that close all doesn't close these windows, so I have several windows to close manually after a few runs. [x,t] = house_dataset; net1 = newff(x, t, [5, 3]); view(net1); net2 = newff(x, t, [7, 5]); view(net2); close all; However if I keep the handle of window, close function will close it: net3 = newff(x, t, [9, 7]); h = view(net3); close(h); But it's not easy for me to collect all those handles. How can I find all those handles

How to close all neural network diagrams in MATLAB?

雨燕双飞 提交于 2020-01-13 19:27:09
问题 I need to show diagrams of some networks, but the problem is that close all doesn't close these windows, so I have several windows to close manually after a few runs. [x,t] = house_dataset; net1 = newff(x, t, [5, 3]); view(net1); net2 = newff(x, t, [7, 5]); view(net2); close all; However if I keep the handle of window, close function will close it: net3 = newff(x, t, [9, 7]); h = view(net3); close(h); But it's not easy for me to collect all those handles. How can I find all those handles

Selenium webdriver window handles c# switchTo failed

纵然是瞬间 提交于 2020-01-12 05:50:08
问题 Here comes 2 windows pop out during the testing. my code: string BaseWindow = driver.CurrentWindowHandle; ReadOnlyCollection<string> handles = driver.WindowHandles; foreach(string handle in handles) { Boolean a = driver.SwitchTo().Window(handle).Url.Contains("Main"); if (a == true) { InitialSetting.driver.SwitchTo().Window(handle); break; } } I want to switch to the window which url contains "Main". But when the test is running, it switches between two windows continuously and it doesn't stop

Selenium with IE11 does not identify the other window opens using windows_handles in python

早过忘川 提交于 2020-01-06 07:19:13
问题 Currently i'm using selenium 3.6 with IE web driver version as 3.4. There is an area in my application where i have to click on a button which downloads an excel.When i do this in IE using selenium it opens a new window of IE (not happening when you do manually) along with normal download pop up. When i tried to identify the other window which was opened, using window_handles method in python i'm not able to identify the other window as the window_handles is only identifying the main window.

getWindowHandles return one window handle if multiple tabs are open in single window

不想你离开。 提交于 2020-01-04 02:29:07
问题 getWindowHandles returns incorrect value in firefox browser. When I opened multiple tabs in a single firefox window and tried to find out the number of window handles to check weather it's returning correct value, getWindowHandles still returns value as single window. If I open the tab in new separate window, getWindowHandles return correct value. Is this a bug? I tried the same with chrome and I.E its working as expected. Firefox version: 37 Selenium version: 2.45 OS: Mac and Windows I have

Get child window handles in C#

一世执手 提交于 2020-01-03 19:29:10
问题 I'm starting a process in C# and then sending Windows messages to that process with SendMessage. Usually I send the messages to Process.MainWindowHandle, but in some instances I might need to find a child window handle and send messages there instead. How would I do that in C# and what are the options for finding child windows (i.e. do a need to know the name of the window or are there other options)? 回答1: Take a look at EnumChildWindows (pinvoke.net) 来源: https://stackoverflow.com/questions

Selenium Python does not close the child window

£可爱£侵袭症+ 提交于 2020-01-02 09:32:47
问题 I have webpage which open new browser window on click. I am able to get 2 handles however driver.close() always closes the first/main window. from selenium import webdriver import time driver = webdriver.Chrome() driver.get("file:///D:/blackhole/print.html") han = driver.window_handles print("handles:", han) # gets 1 handle time.sleep(2) click_btn = driver.find_element_by_link_text('Print') click_btn.click() han = driver.window_handles print("handles:", han) # gets 2 handles driver.switch_to

Increasing no of file handles in Windows 7 64 bit

淺唱寂寞╮ 提交于 2019-12-31 04:04:44
问题 I have an application that has 10000 threads running at a time. Each thread opens the same file. The problem is whenever I launch the application with 10K threads, the application terminates after creating 500 threads( file handles ). I have tried the same application on Linux and is running fine after I tweaked the ulimit option. Is there any limit on the file handles a process can open in Windows? I have been googling and all I get is to change the entries in config.nt file in C\Windows

C++: Best way to get Window Handle of the only window from a process by process id, process handle and title name [duplicate]

£可爱£侵袭症+ 提交于 2019-12-29 06:57:51
问题 This question already has answers here : How to get main window handle from process id? (7 answers) Closed 6 years ago . I'm looking for the best way to get a Window Handle in the following situation: I have the process id and process handle , I know the window titlename and I know that the process has only one window . So how would I do it? FindWindow ? EnumWIndows ? 回答1: Using FindWindow requires that you either know the window class or the window title. Both of these are not necessarily

C# Process.MainWindowHandle always returns IntPtr Zero

让人想犯罪 __ 提交于 2019-12-28 03:00:12
问题 this is my code: using (Process game = Process.Start(new ProcessStartInfo() { FileName="DatabaseCheck.exe", RedirectStandardOutput = true, CreateNoWindow = true, UseShellExecute = false })) { lblLoad.Text = "Loading"; int Switch = 0; while (game.MainWindowHandle == IntPtr.Zero) { Switch++; if (Switch % 1000 == 0) { lblLoad.Text += "."; if (lblLoad.Text.Contains("....")) lblLoad.Text = "Loading."; lblLoad.Update(); game.Refresh(); } } Problem is, that game.MainWindowHandle is always IntPtr