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
-1
votes
2 answers
Why am I unable to navigate into a new window with the Selenium Webdriver?
I am unable to navigate into a new window, as it is showing the same window for both parent and child. I use this code. What is the problem?
String parent_Window = driver.getWindowHandle();
Set handles = driver.getWindowHandles();
…

Fazz
- 101
- 10
-1
votes
1 answer
IsWindow returns false for existing window handle
In a VB6 application I am checking if a certain VB.NET WinForms window exists:
Public Declare Function IsWindow Lib "user32" (ByVal hwnd As Long) As Long
If Not IsWindow(102937) Then
MessageBox("Window not found!")
End If
The messagebox is…

Maiken Roskilde
- 447
- 3
- 14
-1
votes
3 answers
Closing new window in Selenium
I have written the following code to open a google map window get it's url then close it and perform the actions on my previous window:
try
{
String winHandleBefore = driver.getWindowHandle();
…

Rishu Saxena
- 171
- 1
- 3
- 19
-1
votes
1 answer
Unable to handle newly opened GrandChild window (Lookup) from a child window
In my project i tried to automate Creating a new employee , for that i need to click a link which will open a child window from main window and in that child window i need to click on a lookup button, to select a report manager for that employee .…

Sivashankar Mani
- 1
- 1
-1
votes
1 answer
How to get window title from it's process path
I have a path of a process, I would like to get it's window title in C++.
Let's assume that this process has only one window.
So for example my process path is :
C:\Program Files\My Program\program.exe which is a running process's path, and I would…

rdanee
- 109
- 1
- 1
- 9
-2
votes
1 answer
I am getting a no such element exception when I switch to other window to operate
when I switch to other window and I want to edit from text box then the xpath of text box giving no such element exception even xpath is correct
please guide me why I am getting a error

Ankesh
- 1
-2
votes
1 answer
Show a list of all "Alt+Tab windows" (even full screen UWP windows) and retrieve the handle of the one picked by the user
I need to retrieve the handle of a window selected by the user and then retrieve its handle. This window must be one of those shown when ALT+TAB is pressed.
I tried enumerating the windows using EnumWindows, but it does not enumerate the full screen…

Sthealt01
- 19
- 9
-2
votes
1 answer
Is it possible to get handle of address bar in open file dialog using c# window handle?
I need to retrieve address if user is selecting a file for email attachment. is there any way to use window handle to get handle of address bar of open file dialog?

user2771590
- 1
- 1
-2
votes
1 answer
GetFocus() returns null for MS Word
I am writing a Keyboard application that hooks the keyboard and remaps the keys. For this, I have created two projects, one .exe and .dll. In the .dll project, I detect the Handle of the Window in which the user is typing by GetFocus(). However, it…

bhattji
- 19
- 5
-2
votes
1 answer
manipulating window / process by its handle (even if there's no title or a window)
I want to check on this code and see if you can help me implement it
if so ,
is there a way to query faster getting only
process that starts with "a" and process starts with "b"
(is it by using the filter parameter )
could it be done via other…

LoneXcoder
- 2,121
- 6
- 38
- 76
-3
votes
3 answers
c++ Injector runs but is not injecting DLL
I am using visual studios 2017 on windows 10 and I wrote a c++ program to open a handle to a process. The program runs and opens the process. I ran the program in the debugger and it looks like all the functions passed. However I know the DLL is not…

User
- 363
- 7
- 24
-3
votes
1 answer
how find name window from .exe?
I have window Rules of Survival title: "Rules of Survival 1.120471.124472".
HWND window = FindWindow(NULL, "Rules of Survival 1.120471.124472");
how to find title name in rulesofsurvival.exe
pleas give me example
P.S. sorry for my bad English

pCoder
- 21