Questions tagged [win32gui]

NOT FOR GENERAL WIN32 PROGRAMMING QUESTIONS (use [winapi])! This is ONLY for questions about the "Win32GUI" library, which is a C++ library for Win32 GUI programming.

Win32GUI is a C++ generic library for Win32 GUI programming.

It features real GUI RAII (Resources Acquisition Is Initialization), event handling, easy manipulation of standard controls, thread-safety and simple menu handling.

865 questions
10
votes
2 answers

Get text from popup window

I'm trying to read the text from a popup window. The title is always the same. I've managed to identify the hwnd and get the title with the code below, but I can't figure out how to read the contents. import time import win32gui,…
Jesse Aldridge
  • 7,991
  • 9
  • 48
  • 75
10
votes
1 answer

Double Buffering? Win32 c++

I am trying to implement double buffering but it doesn't seem to work i.e. the graphic still flickers. The WM_PAINT gets called everytime when the mouse moves. (WM_MOUSEMOVE) Pasted WM_PAINT below: case WM_PAINT: { hdc =…
user1788175
  • 1,518
  • 4
  • 16
  • 20
9
votes
1 answer

win32gui MoveWindow() not aligned with left edge of screen

I am using win32gui to move a Notepad window to the origin of the screen (0, 0) with width and height equal to 500. The result is that the window is not moved to the true left border but ~10 px. to the right. Also the width and height do not equal…
9
votes
2 answers

What desktop does Metro stuff run in?

Just curious, from a standpoint of WinAPI developer, what desktop do Metro apps run in? This stuff:
c00000fd
  • 20,994
  • 29
  • 177
  • 400
8
votes
0 answers

C# : NotifyIcon is not raising event when the ballon tip is in action center on windows 10

Program.cs code - [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } For Form1 public Form1() { …
sant
  • 153
  • 1
  • 1
  • 8
8
votes
1 answer

Is there a Win32 API to monitor, location, and orientation of Taskbar "Notification Area"?

The windows taskbar contains an area called the "Notification Area" or "system tray", where small icons appear for apps that want to run in the background and/or show system notifications. When the taskbar is on the bottom or the top of the screen,…
David Jeske
  • 2,306
  • 24
  • 29
8
votes
1 answer

how do I close window with handle using win32gui in Python

I have obtained the handle of a window I want to target, with win32gui library in Python How do I close the window? I have the following code, the second line did what I intended to do but the last line seems to be wrong. handle =…
vikingshore
  • 165
  • 1
  • 2
  • 6
8
votes
1 answer

How to monitor the active window on a remote PC

I'm able to view the processes taking place on a remote computer on my network by using the wmi module. This is an example using wmi to monitor the processes created and deleted on my own PC. import wmi, multiprocessing def create(): while…
Phoenix
  • 4,386
  • 10
  • 40
  • 55
8
votes
2 answers

How to setup multiple radio button groups for proper tab-order and keyboard interaction (WIN32)?

First of all this is not MFC. Here is a cropped version of the GUI I have been working on: As you can see I have (attempted) to create two different groups, Icon and Button, using the code: index->hAddT.hwndIndex[2] =…
James
  • 236
  • 5
  • 18
8
votes
1 answer

How to get a window title and scan it every 100ms use python?

with python, I want to get a window title,a stock software window. the window's title will change when I browse another stock ,now I want to scan it every 100ms and return the new title,but the front text in the window title is the same text. I can…
sword
  • 225
  • 2
  • 5
  • 9
7
votes
3 answers

How to provide image data for embedded web control in C++

In my C++ app I'm embedding (via COM) a web browser (Internet Explorer) control (CLSID_WebBrowser). I can display my own html in that control by using IHTMLDocument2::write() method but if the html has element, it's not…
Krzysztof Kowalczyk
  • 3,513
  • 28
  • 28
7
votes
1 answer

Are Windows window classes case-sensitive?

MS docs being clear as mud (and the class name strings not referenced very often), I was wondering whether the class name of a Win32 window class is actually case sensitive?
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
7
votes
2 answers

Most efficient way to select all and copy in Windows

I've a script that scrapes data from a third party program. Currently I'm using emulated keyboard strokes to select and copy data: import win32com.client shell =…
jjjayn
  • 555
  • 5
  • 10
  • 19
7
votes
3 answers

python3 ctype CreateWindowEx simple example

I have googled for some time but could not find simple example of python3 ctypes and Win32 API for creating and showing window. Please point me to good link or show code here. Thanks in advance!
Darius Kucinskas
  • 10,193
  • 12
  • 57
  • 79
7
votes
0 answers

GetCursorPos ctypes vs. pywin32(win32api/win32gui) which to use?

I found those three ways to get the Mouse Coordinates in Windows: from ctypes import windll, Structure, c_long, byref class POINT(Structure): _fields_ = [("x", c_long), ("y", c_long)] def MousePosition_ctypes(): pos = POINT() …
Schmetterling
  • 121
  • 2
  • 8
1
2
3
57 58