Windows OS is full of windows, even objects inside windows as we know them are also windows. Each window has a handle that is a pointer to the memory in which information about the window is stored.
Questions tagged [window-handles]
252 questions
2
votes
2 answers
Open a link in a new page opening in the existing tab/window using selenium and python
I want to enter a search term and then move to next page.In the new page click on a link. How to do that using selenium and python.I tried using the code given below but it gives the error index "ElementNotInteractableException".The code I am using…

Mohua
- 63
- 2
- 7
2
votes
1 answer
Selenium WebDriver hungs or gets stuck while switching from child window to parent window using IE11 in Win 8.1
Selenium WebDriver- hungs or stucks while switching back from child window to parent window. If I change the specific page in parent window Manually on debug mode,Successfully switch is happening from child to parent window. Guessing that specific…

karthick
- 21
- 3
2
votes
1 answer
GDI Handles in Windows Service vs Interactive Application
I have a code that is used in an Winforms application. The same code is also used in a Windows Service (exe running as Windows Service). The code grabs the handles to ICONs. But what I found is that, in Task Mangaer (and GDI View), when I ran the…

Ram V
- 724
- 1
- 8
- 18
2
votes
1 answer
How to close all neural network diagrams in MATLAB?
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,…

saastn
- 5,717
- 8
- 47
- 78
2
votes
1 answer
RSelenium: Switching Windows using Window Handle
I've been working with RSelenium all day and still hitting road blocks here and there. My current issue is using the code WebElemReports$clickElement() which clicks a link and a new window opens. I tried to adjust Firefox settings in "about:config"…

d84_n1nj4
- 1,712
- 6
- 23
- 40
2
votes
1 answer
Is it somehow possible to get a HWND of a JavaFX window in Java 9?
Java 9 will restrict any access to private API. That means that the known methods of retrieving the window hwnd using Reflection won't work anymore.
Is there still a way to get them? I ask because I have a library that offers an API for manipulating…

SirWindfield
- 117
- 2
- 8
2
votes
4 answers
How to get the main window handle of a process using JScript?
Is there any method in JScript to get the handle of the main window of a process by providing the process name? The Process.MainWindowHandle property works only in JScript .NET. Is anything similar available in classic JScript?

satya
- 2,537
- 9
- 33
- 43
2
votes
4 answers
Handling invalid window handle
The application retrieve window handles, using Enum* routines.
It happens that in the while the application manage the handle (get class name, window statistics...) of an enumerated/created window, the handle is no more valid. The code managing…

Luca
- 11,646
- 11
- 70
- 125
2
votes
0 answers
How to get raw notification in background
How does messenger like whats app is saving data when WhatsApp is not running? Suppose a scenario: a message is received by the user but at that time he/she didn't act upon. A few minutes Later he/she got disconnected from the internet then opens…

amit goyal
- 21
- 1
2
votes
2 answers
Increasing no of file handles in Windows 7 64 bit
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…

rahuljain1313
- 141
- 1
- 1
- 8
2
votes
1 answer
Failed to get the handle of the Windows Internet Explorer main window
Background:
I am creating a IWebBrowser2 and navigating to a URL. This is the short version of the code:
IWebBrowser2* pWebBrowser = NULL;
hr = ::CoCreateInstance(CLSID_InternetExplorer, NULL, CLSCTX_LOCAL_SERVER, IID_IWebBrowser2, (void…

Rotem Varon
- 1,597
- 1
- 15
- 32
2
votes
1 answer
How to get the image of a window when we only know its window handle
I am developing an application in C# and want to know how to get the screen shot image of any window when we only know its window handle. The functionality I am trying to achieve is to be able to just copy the screen shot of any window (it can be a…

ResVic
- 117
- 4
- 11
2
votes
1 answer
C++: Send Mouse Click using PostMessage/SendMessage
I'm at the moment trying to send a right click to a computergame without affecting my visible mouse pointer.
I'm not sure if the game just doesn't like it or if I'm doing something wrong.
Here is the short-version of my code:
WORD tx = 500;
WORD…

Forivin
- 14,780
- 27
- 106
- 199
2
votes
1 answer
GetForegroundWindow throws Win32Exception Access Denied
public partial class Form1 : Form
{
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
private static extern IntPtr GetForegroundWindow();
public Form1()
{
InitializeComponent();
var proc =…

Perry
- 2,250
- 2
- 19
- 24
2
votes
2 answers
Get the window handle of an externally running program through C++
There is an externally running program that i need the capability to resize. The kicker for me is that part of the title is the version and other specific information related to that instance. I know the substring that should be consistent across…

Jason
- 2,147
- 6
- 32
- 40