user32 Questions
5
Solved
I'm in a research to find a way to take a screenshot of a window using Node.js, and I'm trying to do this with node-ffi, but I don't know how... at a time I'm stuck here:
var ffi = require('ffi');...
Asphyxiant asked 27/3, 2017 at 0:47
4
I have a Console / Form hybrid application in C#, and at the moment, i have to rely on user32.dll to show/hide the console window. But I can't seem to find a way in which i can determine if the con...
4
First, sorry if I sound arrogant/rude here.
All right, so everyone has run into this by now (I hope); I just haven't found any adequate answer anywhere. We start with a Common Controls 6 manifest ...
Destruct asked 15/8, 2014 at 1:13
0
Is there any way I can handle the WM_NCHITTEST message in the window procedure such that the mouse will "fall through" to the next application below?
Right now I draw a custom shadow deco...
Nobody asked 27/8, 2021 at 17:47
4
Solved
I have to implement a feature where the last position of the window is saved. When the application starts up this position needs to be obtained and restored.
Now it could be that a second monitor ...
Ossein asked 8/6, 2011 at 12:59
5
Solved
Is there a way using Win32, to register for notifications when a new window is created. I'm trying to keep a list of current open windows, but am now just polling the list of current windows using ...
1
Solved
I was trying to simulate (global) mouse click using SendInput() from user32 dll in C# .NET.
I have already tried SendInput() for keyboard input and it works fine. But for some reasons it doesn't wo...
1
Solved
I'm trying to automate some stuff on a legacy application that I don't have the source to. So I'm essentially trying to use the Windows API to click the buttons I'll need on it.
There is a toolbar ...
Heredia asked 29/6, 2020 at 12:27
3
Solved
I am using this board as a keyboard for demo purposes.
Anyways to make the long story short everything works fine except for very few cases. I send keystrokes with the SendInput function located in...
2
Solved
I am working on trying to close a specific MessageBox if it shows up based on the caption and text. I have it working when the MessageBox doesn't have an icon.
IntPtr handle = FindWindowByCaption(...
Tybie asked 6/3, 2019 at 2:11
4
Solved
Ive seen many solutions online but none does exactly what I want. What is the best/simplest way to get any keys pressed in a given process (not my console applicaton) while my application is runnin...
Glow asked 21/12, 2012 at 22:42
1
Solved
I'm attempting to find a minimized window and Show it.
The program can be downloaded from Samsung and it is titled "SideSync". To fully replicate my question you would need to install this and als...
1
Solved
Using user32.dll and C# I wrote the method that you see below. Using a process handle for a window, it will set the window position at a provided (x, y) location.
However, in a multi-monitored envi...
3
I know I should generally avoid messing up with such system settings, but my application do already use nonstandard colors and I have no influence on that. I would like to be able to add standard ....
Forked asked 7/7, 2009 at 12:3
2
Solved
Consider these two definitions for GetWindowText. One uses a string for the buffer, the other uses a StringBuilder instead:
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
p...
2
I am writing a small app that will among other things expand shortcuts into full text while typing.
example:
the user writes "BNN" somewhere and presses the relevant keyboard combination, the app w...
Ceiba asked 24/4, 2018 at 13:28
2
Solved
I've got an always on-top application (basically a status display) that I want to follow around another program and always sit just to the left of the minimize button.
I can get the Rect represent...
0
I am taking screenshots of Windows desktop with code such as
HDC hScreen = GetDC(NULL);
HDC hDC = CreateCompatibleDC(hScreen);
HBITMAP hBitmap = CreateCompatibleBitmap(hScreen, w, h);
HGDIOBJ old_...
Samal asked 17/7, 2017 at 12:3
1
Solved
I made a borderless windowed application and a "fake" title bar to drag it.
I'm using user32.dll,
This to start the window drag (triggered by unity IBeginDragHandler) :
public const int WM_NCLB...
Affluence asked 29/4, 2017 at 12:7
1
I had create a little program that simulate keyboard event that I used for filled data in Oracle but when I use keybd_event for introduce the character underscore, the output is wrong
If _ is not t...
Culminant asked 4/8, 2016 at 15:26
3
I do not have the ability to modify environment variables in windows 7.
However I have been granted permission to modify the registry settings.
So for example I can modify:
HKEY_LOCAL_MACHINE\SYSTE...
2
Solved
I am currently trying to find a way to check whether a window is open or not using Findwindow Function. I am able to find the window if i know the entire name of the window. In the below code i kno...
1
I currently use the WM_GETICON message in a C# Windows application to get the icon associated with a hWnd, but it won't get me the icon for ApplicationFrameHost (Windows Store Apps) processes (whic...
Pucker asked 14/8, 2015 at 2:3
1
Solved
I want to resize and/or move some external windows from my application, mainly the On-Screen keyboardwindow. Here is the code:
[DllImport("user32.dll", SetLastError = true)]
internal static exte...
Biophysics asked 17/7, 2014 at 6:40
2
Solved
If I don't use WM_SETICON first to set the icon then WM_GETICON is always returning 0. This is weird. Please help.
This is my code, can copy paste into scratchpad and run.
When doing SendMessage(...
Must asked 4/6, 2014 at 21:0
1 Next >
© 2022 - 2025 — McMap. All rights reserved.