Questions tagged [user32]

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.

547 questions
-1
votes
1 answer

Background Window not getting messages sent through PostMessage()

I'm trying to send a message to a background window using JNA. However, nothing happens. I thought that maybe this application behaved like Notepad (where you need to find the child windows to actually write text), so I tried sending the message to…
Tirafesi
  • 1,297
  • 2
  • 18
  • 36
-1
votes
2 answers

Find textbox on another form and write to it

Using VS2010 C# I am at a complete loss... I have a vendors program to export data in a proprietary format into a CSV file. I have about 20 disks and one of them has 255 such files... I want to automate the process... Which was fairly…
Mike Sr
  • 511
  • 1
  • 5
  • 15
-1
votes
1 answer

Function or library that helps to get selected text from different application

I've already realized application that can getting selected text by emulating ctr+c keypress. So, now I have 3 working methods: // Using InputSimulator library private static void CtrlC_inputSimulator() { var hWnd =…
Letfar
  • 3,253
  • 6
  • 25
  • 35
-1
votes
1 answer

How to check whether the Open/Save As dialog box is opened in VB.NET

I have written a vb.net application to start an external application (notepad.exe) and then open the txt file located in at "D:\test.txt". I have used keyboard events to achive this. Step1: Open the notepad Process.Start("notepad.exe") Step 2:…
Saravana Kumar
  • 3,669
  • 5
  • 15
  • 35
-1
votes
1 answer

Method with return value as boolean

I have the below code where ShellExecuteEx return a boolean value true or false when executed. And i am assigning that to a class level variable by converting it to string. strShellCallStatus = ShellExecuteEx(ref…
krrishna
  • 2,050
  • 4
  • 47
  • 101
-1
votes
2 answers

SetWindowPos API - Backward resizing?

I'm using Windows's SetWindowPos API to try to 'crop' a part of a window so a user will only be able to see the RIGHT part of it. Problem is, I can only 'crop' it, starting from the top left corner, and I would rather cropping a different part of…
Stavm
  • 7,833
  • 5
  • 44
  • 68
-1
votes
1 answer

How to find window's with same class User32.dll winForm

I need to find textBox's user name and password and button in windows form popup. I found the PopUp id ,but me textBox's inside of element/child that have the same classes and i cant find the specific text box that i need , look at image you will…
Vladimir Potapov
  • 2,347
  • 7
  • 44
  • 71
-1
votes
1 answer

Want to get input from Keyboard using windows api's

I want to get the keyboard input (single) using windows api's i have two found option 1. keybd_event() of user32.dll VOID WINAPI keybd_event( _In_ BYTE bVk, _In_ BYTE bScan, _In_ DWORD dwFlags, _In_ ULONG_PTR dwExtraInfo ); 2 …
AVIK DUTTA
  • 736
  • 6
  • 23
-1
votes
1 answer

How to find another program's MessageBox by WindowsAPI in C#?

I'm trying to find another (MFC) program's MessageBox using FindWindow/FindWindowEx in WindowsAPI. My code is infinite looping. How can I find it? I'm using this code: case 17: // target Program's Create Button // Click …
-1
votes
1 answer

How to avoid mouse move for 10 sec

I using User32.dll, running the application,pressing buttons getting information. My problem is when i pull some data ,but when i move my mouse over spesific element it can stop this process ,sow i need to move my mouse to safe place and make it…
Vladimir Potapov
  • 2,347
  • 7
  • 44
  • 71
-1
votes
1 answer

Why does RegisterHotKey return false? user32.dll

when i run RegisterHotKey, it returns false. what are possible reasons? internal void RegisterHotKey2(ModifierKeys modifier, Keys key) { _cID += 1; if (!RegisterHotKey(_window.Handle, _cID, (uint)modifier, (uint)key)) { …
iptq
  • 657
  • 1
  • 7
  • 15
-1
votes
1 answer

user32 and memory leak?

After some reading I found out that everything you code in C# is managed code, and shouldn't give memory leaks. Yet my program behaves in a manner which suggests some sort of memory leak. My entire program comes down to this: (currently I don't…
Jordy
  • 1,816
  • 16
  • 29
-1
votes
1 answer

user32 ShowWindow .net

Fixing third party controls that use user32.dll public partial class Form1 : Form { TheForm theForm;//empty form public Form1() { InitializeComponent(); theForm = new TheForm(); } internal const int…
-1
votes
1 answer

How to make Windows Desktop (Screen) blur or dull Using C# Unmanaged code

I want to make the desktop dull/blur in my application using c# unmanaged code like User32.dll and GDI32.dll. Which function do I need to call in the User32.dll and Gdi32.dll?
-2
votes
1 answer

How do I use one of the standard windows icons via the Win32 API?

For an app-supplied icon I know I can use LR_LOADFROMFILE, LR_DEFAULTSIZE flags with user32.LoadImageA, but for now I want to use one of the standard windows supplied ones, I think they live in a win32 dll somewhere (maybe user32 itself). How do I…
user1561108
  • 2,666
  • 9
  • 44
  • 69
1 2 3
36
37