user32.dll implements the Windows USER component that creates and manipulates the standard elements of the Windows user interface, such as the desktop, windows, and menus.
Questions tagged [user32]
547 questions
0
votes
2 answers
C# KEYEVENTF_KEYUP doesn't work in specific app
I need to emulate some keys, here the code:
[DllImport("user32.dll")]
private static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
private const int KEYEVENTF_EXTENDEDKEY = 1;
private const int KEYEVENTF_KEYUP =…

CSharpRU
- 355
- 4
- 12
0
votes
0 answers
C# send keys to other aplication (Teamviewer or Ammyy)
I have my C# program. i want my program called teamviewer foreground and write some numbers. this time can call the teamviewer for foreground but can not write to it.
Already tried with senkeys but does not work!! the sendkeys works in notepad and…

Francisco Carvalho
- 4,123
- 3
- 16
- 12
0
votes
1 answer
Shell_NotifyIcon NIF_INFO not showing icons
Im having issues with balloons firstly they refused to show at all but having found this thread:
Why aren't Shell_NotifyIcon balloon tips working?
then changing cbSize to 504 the balloons show but without icons in them, all the standard icons won't…

Col_Blimp
- 779
- 2
- 8
- 26
0
votes
2 answers
user32.dll SendMessage: Strings sent converted in uppercase characters... but case-sensitive strings
I've made a program in C# that get the data info from an electronic ID card (Belgium), got no problem to do that but I need to put those informations in the registration form of a program... and that's where I got some issues...
I succeed to…

Zin
- 3
- 4
0
votes
2 answers
CB_SELECTSTRING ignored on some machines
I am using user32 library to automate some out of browser clicks on Windows, IE - "save as" dialog in particular. My solution works fine on my box however on other computers not really.
The problem is when I am setting download path in a combobox,…

Vojtiik
- 2,558
- 1
- 17
- 21
0
votes
1 answer
user32 GetClassName isn't correct
I have a routine that get's all open windows (processes) and then searches for it's classname with the GetClassName method in user32. But when for example Teamviewer is on the classnames of all applications get the teamviewer classname.
Example:…

Sam_vdd
- 686
- 1
- 6
- 19
0
votes
1 answer
how to capture clicks event on other window that has been minimized
i want to build an app that work in the background, and will capture all click events
on the minimize button, of all opened forms / windows that actually running. (not only in my current app)
it will be some sort of hook to add minimize handler…

foxdanni
- 199
- 1
- 19
0
votes
1 answer
alternate moving /hightlighting a control using x/y postioning
I'm looking for an api that can cause a windows select/highlight event to occur on a windows desktop, without actually causing the mouse cursor to move.. I can cause the mouse cursor to move with :
public static extern bool SetCursorPos(int X, int…

Robert Fleming
- 145
- 4
- 15
0
votes
0 answers
FindWindowByCaption function finding window handle that doesn't exist yet
I am writing a C# application that requires moving gnuplot graphs to specific positions on the user's screen. To do this I am using DllImport to bring in several functions into my program. Specifically FindWindowByCaption and MoveWindow and a few…

Jake Gearhart
- 297
- 7
- 21
0
votes
0 answers
Changing the Window Focus c# user32.dll (SetForegroundWindow)
oh i have been trying to make a program which looks to see if a program in this case chrome is running then switching to it, i have been trying to follow a similar thread (thread one, thread two) unfortunately I'm having issues with the handle as it…

Rhys
- 1
- 1
- 8
0
votes
1 answer
hosting win32 into wpf not working in windows 7
I developed WPF in Windows 8 and succeed to hosting win32 windows to WPF using pinvoke user32.dll. But when I build using Windows 7, non WPF application not hosting into Form Panel in WPF. It open another windows like launched that application.
this…

Akirayjin
- 657
- 1
- 7
- 11
0
votes
1 answer
How to force a textbox to update its text
So I've looked through maybe five to ten questions on stackoverflow about setting text into a textbox using a range of commands. I've tried SetWindowText, SendMessage with EM_SETSEL and EM_REPLACESEL, and a few others that I can't think of off the…

user1031745
- 13
- 4
0
votes
1 answer
What would cause this code to produce different results when running at the module level versus in the scope of a function?
I'm attempting to enumerate the available display monitors via Windows API's EnumDisplayMonitors. However, I'm getting some very weird behavior that I can't figure out. Namely, the function runs correctly, but only when it's not inside of a…

Zack Yoshyaro
- 2,056
- 6
- 24
- 46
0
votes
0 answers
values in PostMessage method
I tried to get process of the PowerPoint by two diferent methods. Both working, but i can't send the key to inactive window.
I took by the Microsoft Spy ++ the values:
When I push the right arrow button, i see 3 logs. I get first one,…

MyWay
- 1,011
- 2
- 14
- 35
0
votes
1 answer
Is there a simple way to a list of input event handler hooks subscribed to setwindowshookex?
Wasn't a useful method mentioned at:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx
beyond C# simple, I am also wondering if there is any way to get a list of the subscribed event handlers.

stackuser83
- 2,012
- 1
- 24
- 41