Category "winapi"

Windows notification with button using python

I need to make a program that alerts me with a windows notification, and I found out that this can be simply done with the following code. I don't care what li

How to use SendInput to simulate the UP arrow key press (or other extended keys)

I am trying to programmatically simulate the pressing of the UP arrow key on the keyboard for an end-to-end test. With the below code, the GUI control receives

JNA:com.sun.jna.platform.win32.Win32Exception- access denied

I use following code to control a windows service from java program public class PostgresService2 { public static void main(String[] args) {

Can't import dll module in Python

I've been stressin for a few days trying to compile a modified version of libuvc on windows and now that I've finally done it, I can't seem to load it on Python

Python send keys on windows

I'm trying to send keyboard commands through python 2.7 on a windows machine. I understand that the SendKeys module does not work with 2.7. So I use keybd_event

Distinguish between left and right shift keys using RAWINPUT

RAWINPUT provides two flags (RI_KEY_E0 and RI_KEY_E1) to check whether the left or right version of a key is pressed. This works great for CTRL, but not for lef

How to prevent TextBox auto scrolls when append text?

I have a multi-line TextBox with a vertical scrollbar that logs data from real-time processing. Currently, whenever a new line is added by textBox.AppendText(),

Can a thread call SuspendThread passing its own thread ID?

Can a Windows thread suspend itself with SuspendThread()? I can awake it from another one but, can it call SuspendThread(GetCurrentThreadId())?

Performance of Win32 memory mapped files vs. CRT fopen/fread

I need to read (scan) a file sequentially and process its content. File size can be anything from very small (some KB) to very large (some GB). I tried two tec

Delphi notification when a file gets updated

My app contains documents in its database. The users can open the documents in which case, the document gets saved to a temporary folder and gets opened on the