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
4
votes
4 answers
Selenium Switch Tabs
Since Firefox does not support Control + T anymore for the tab, I started using
driver.execute_script("window.open('URL', 'new_window')")
I am trying to display the title of the different tab I open and switch between them. For the example…

tada23
- 73
- 1
- 7
4
votes
3 answers
What to do about "Error creating window handle" errors in a C# application?
I've already looked at this question, and I've already checked out the suggestions that were made there. My program creates and destroys a lot of UI controls (a lot of UI controls), and anything that makes controls hang around after they're…

Robert Rossney
- 94,622
- 24
- 146
- 218
4
votes
2 answers
How to programmatically exit from a second message loop?
I'm trying to create a second message loop to process/filter low level messages asynchronously in C#. It works by creating a hidden form, exposing it's Handle property to be hooked, and run a second message loop in a separate thread. At the moment…

ceztko
- 14,736
- 5
- 58
- 73
4
votes
1 answer
Get handle of the MainWindow in WPF
I just created an empty WPF app in VS 2015.
It has
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
var mainWindowHandle = new WindowInteropHelper(this).Handle;
}
}
But…

NoWar
- 36,338
- 80
- 323
- 498
4
votes
1 answer
SQL Server 2008: Error creating window handle
I have N number of tables in my database, which holds around 0.6 million records. I've created a SQL script which copies this data into same tables (basically it's a script to generate more data). I've tested the script it runs fine for small data…

Kylo Ren
- 8,551
- 6
- 41
- 66
4
votes
1 answer
selenium window_handles not correct when new window is opened wtih Python
I want to use selenium with Python to open multi-tabs in one browser and scraping the real-time betting odds simultaneously with multi-tabs.
The website home page generate a list of games. However, there is no way to get the link of game unless you…

Johnson
- 491
- 1
- 3
- 13
4
votes
3 answers
Who's responsibility is it to call CloseHandle() for Thread handle
I have a class Class in which there's a member property HANDLE handle to a thread (We can assume it is set to NULL at that point) . at some point , a method within Class dispatches one of it's own methods Class::threaded() (using another function…

Edgar James luffternstat
- 451
- 1
- 5
- 16
4
votes
1 answer
Get Window Handle of Chrome Tab from Within Extension?
I've written a Chrome Extension (w/ NPAPI as well) that allows my application and Chrome to communicate with each other. That is all mostly working fine.
What I'm trying to do now is be able to tie the HWND of a Chrome window to a particular Window…

Tim
- 14,999
- 1
- 45
- 68
3
votes
1 answer
Detecting whether Skype is in "Compact View" or "Default View"
The way my application functions, is determined by Skype's view mode, due to the fact that my application is looking for windows of class TConversationWindow, which if in Default View is a child of tSkMainForm, and if in Compact View, it is not a…

Jeff
- 12,085
- 12
- 82
- 152
3
votes
2 answers
WebScraping JavaScript-Rendered Content using Selenium in Python
I am very new to web scraping and have been trying to use Selenium's functions to simulate a browser accessing the Texas public contracting webpage and then download embedded PDFs. The website is this: http://www.txsmartbuy.com/sp.
So far, I've…

theflavster
- 33
- 1
- 4
3
votes
3 answers
How to wait for the ready state of a newly opened window using selenium-webdriver
I am new to selenium. My application is very old application developed in 2004-2006 and every other action opens up a new window. I am using selenium web driver for internet explorer for writing the automated test cases.
I switch between opened…

Chetan
- 4,735
- 8
- 48
- 57
3
votes
1 answer
How to handle mutliple windows through selenium webdriver while switching from second to third window
I am trying to switch from second window to third window .But not able to handle third window.could someone please help me to resolve this issue.
I have used logic of compare the title of window but its not…

demouserabcd
- 37
- 1
- 1
- 10
3
votes
1 answer
How to change console window style at runtime?
I'm making a game in console application and I want to prevent user resizing and maximizing window. How can I do this using HWND?

Ovidzikas
- 113
- 11
3
votes
1 answer
getWindowHandles return one window handle if multiple tabs are open in single window
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…

Bharathan Kumaran
- 981
- 10
- 22
3
votes
1 answer
Is Excel's Application.Hwnd property usable from 64 bit VBA?
I need to obtain the Excel 2013 x64 window handle from 64 bit VBA code running in a spreadsheet. There are a couple of options to do this:
Read Application.Hwnd (MSDN Application.Hwnd Property (Excel))
Call FindWindow, imported from user32, e.g. as…

R Hoffmann
- 67
- 3
- 7