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
0
votes
0 answers

Using up/down-arrow keys in window User32.dll

dll for login to application all inserts/button click works fine the proble is in one window where i need to use up and down key(arrow NOT keyPressed) and i can't do that. here my code after i logined and find this window currChild =…
user3567884
  • 213
  • 1
  • 6
  • 19
0
votes
0 answers

User32.dll how to get all elements from Window

Hello making post/sendMessage, inserting user/password than click on application button.and.... After i connected to apllication i have Windows with info,ok until now all fine. My problem is i have one Window with folders (not like before…
user3567884
  • 213
  • 1
  • 6
  • 19
0
votes
0 answers

private static bool EnumWindow(IntPtr handle, IntPtr pointer) doesn't run

I have the following code that seems to work on one of my projects but it doesn't work on a different one. Code is exactly the same on both but the method EnumWindow never gets executed. Here is the code: …
user3587624
  • 1,427
  • 5
  • 29
  • 60
0
votes
0 answers

how to use user32.dll to change external window title

what i'm trying to do: i have source code of old game that built in c, and i want that this game process will change the title of external winform application, something like: int Handle; //Find The WinForm Window Handle …
0
votes
1 answer

How to pInvoke Button Control Macros in c#

The button control message BM_CLICK can be sent via defining a pInvoke method as follows: [DllImport("user32.dll")] public static extern IntPtr SendMessage(HandleRef hWnd, uint Msg, IntPtr wParam, string lParam); and then calling the method with…
NiloCK
  • 571
  • 1
  • 11
  • 33
0
votes
1 answer

how to press and hold a key C#

What I am trying to accomplish in this console program is to be able to press and hold a key, by using user32.dll. I know I am not sending an extended key. But I dont think sending it as a scancode is right either. And I think I am passing it the…
hurnhu
  • 888
  • 2
  • 11
  • 30
0
votes
1 answer

SetForegroundWindow is being ignored

I'm writing a little utility to allow me to multiplex input to multiple terminal windows; Any input received by the form (in the centre) is relayed to all terminal windows it manages. This works well but a problem occurs if I another window moves…
Basic
  • 26,321
  • 24
  • 115
  • 201
0
votes
1 answer

Collect all windows handlers

How do I collect all windows handlers in C#. I need all the windows (not just the parents) Thanks,
Guy
  • 325
  • 2
  • 6
  • 14
0
votes
1 answer

default MINMAXINFO values?

I am currently working on a piece of code to circumvent the modal loops for moving and resizing Windows by effectively re-implementing DefWindowProc for the process. The first snag I've hit is with MINMAXINFO. It seems that Windows fills this in…
nfries88
  • 374
  • 6
  • 7
0
votes
1 answer

ListBox flashing on horizontal scrolling when item selected

I have a owner drawn ListBox and it's flicker free on resizing when done from dragging the parent window and when adding items and when vertical scrolling but when an item is selected and I try to horizontal scroll the item selected flickers really…
Col_Blimp
  • 779
  • 2
  • 8
  • 26
0
votes
0 answers

TCM_GETITEMRECT + TCM_ADJUSTRECT to get Tab client area

I'm trying to get the client area of a tab control using TCM_ADJUSTRECT + TCM_GETITEMRECT, I call TCM_GETITEMRECT giving it the tab index then with that Rec filled in, call TCM_ADJUSTRECT passing either true or false but when ever I move the only…
Col_Blimp
  • 779
  • 2
  • 8
  • 26
0
votes
2 answers

Using GetActiveWindow()

I have a timer in my application (timer1). When this timer goes off, it calls a sub that refreshes my datagridview. Before calling the refresh sub, I use GetActiveWindow() from user32 Lib to check If the form is the active window. This works as…
Spencer Waz
  • 155
  • 8
0
votes
1 answer

How to control windows application focus in .NET

I'm using pinvoke "user32.dll" to send my application to back (behind all other apps) so it sits on desktop and vice versa. At the moment it just toggles - back/front. Is there a way to detect if my app is at the back and bring it to front or if…
David
  • 830
  • 3
  • 13
  • 25
0
votes
1 answer

Way to use User32/GDI32/Kernel32 in NaCl module

I have ActiveX and NPAPI Plugin using Win32 API. I'd like to port that plugins to NaCl module. But I can't find way to build with Win32 libs. Can I use User32/GDI32/Kernel32 APIs in NaCl?
0
votes
0 answers

Enumerate all windows in Windows 8

I'm looking for a simple code to enumerate all windows on Windows 8, in order to look for a Desktop window with a specific title (example: "Untilted - Notepad"). I used: BOOL WINAPI EnumWindows( _In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM…
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105