I have a program that causes windows to snap into slots that specify a location and size. You can drag a window and then it will snap to the closest slot when you finish the drag. What I want to add is an overlay of the slot that the window will be moved to as the drag is happening.
The snapping and the overlay work fine. My problem is ...
we have a weird requirement where our apps executed in the Sandbox environment are manipulated by some other app. The outer app modifies the visual style of the windows using ShowWindow() of the user32 dll.
When a .net app with MODAL windows opened is Minimized and maximized by the Outer app, it loses all the modal windows which were op...
I am attempting to retrieve information on all the various monitors (and their adapters) present on a system. So far, my attempts at using EnumDisplayDevices to list all the monitors has worked great - it found two, the first being "\\.\DISPLAY1\Monitor0" (the second is just 2 and 1, respectively, but it's irrelevant to this question). A...
Hi all -
I have a third-party GUI program that I'm wrapping with a Python class (using ctypes).
Are there Win32 API functions that can do the following?
1) Obtain the window handle for a window at a given screen location.
2) Obtain the window handle for a Button or Static window with a given caption.
3) Send text to an Edit window.
...
I am trying to use sendmessage of user32.dll in an embedded windows ce5.0 computer
the same simple program that I made only for testing the user32 in embedded is working on my windows xp computer.
the app and the dll are in the same folder.
the message I get when it is in win ce5.0 is : Can't find Pinvocke DLL 'user32.dll'
the code : (...
Hi all
I'm currently involved in a project that is migrating some old VB6 code to C# (.Net Framework 3.5). My mandate is to just do the migration; any functional enhancements or refactoring is to be pushed to a later phase of the project. Not ideal, but there you go.
So part of the VB6 code makes a call out to the Windows API SetTimer ...
Hi
I'm trying to automate a hidden .NET application, with another .NET application (written in c#) using the easiest way possible. It's NOT for testing purposes, it's a way to fulfill the lack of scripting for this application.
I already tried white framework, but there is one major problems with it: the way it's working. It's slow and...
I have a situation like this.
I have the window handle of an application. I need to activate it. I tried all these functions but is not working always.(most of the time , it doesn't work the first time and I'll have to manually click on it to activate it. Second attempt onwards it works fine)
The reason why I am doing this is because I ...
Hi,
I have been busy creating a screen capture function in Java using JNA (java native access).
So far I have been able to do a lot, but I am baffled about some things a bit. The OS is Windows, if you wonder....
I find it easy to capture, for example, a region, or a window, but find it hard to draw over it. The reason for this is the...
Hi,
I was wondering if there is a way to add (programatically, of course) an icon/button/whatever besides plain text to a window (Microsoft Windows window...)'s title bar or next to where the minimize/maximize/close buttons are. I could draw it myself and create an illusion it is a part of the window, but I wonder if in the user32 api t...
Hi, I have been trying to do the following thing in windows, using JNA: add a button to a window that I haven't created. First, however, I would like to create a WNDPROC listener so I know what messages are being sent.
The problem is that messages are not being sent/received in the message pump, while they should be (because windows co...