Questions tagged [low-level-api]

is used in its general meaning, thus you are encouraged to use the tag of your programming environment as well, such as for example.

42 questions
11
votes
6 answers

Is there a cross-platform python low-level API to capture or generate keyboard events?

I am trying to write a cross-platform python program that would run in the background, monitor all keyboard events and when it sees some specific shortcuts, it generates one or more keyboard events of its own. For example, this could be handy to…
MiniQuark
  • 46,633
  • 36
  • 147
  • 183
7
votes
4 answers

Plotly: How to set a fill color between two vertical lines?

Using matplotlib, we can "trivially" fill the area between two vertical lines using fill_between() as in the…
an_drade
  • 664
  • 1
  • 5
  • 15
6
votes
3 answers

How to associate PHYSICAL_MONITOR with monitor DeviceID

I need help in associating PHYSICAL_MONITOR which i get from GetPhysicalMonitorsFromHMONITOR with monitors DISPLAY_DEVICE.DeviceID (e.g. "\?\DISPLAY#GSM59AB#5&932a802&1&UID261#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}"), which is from…
PuFF1k
  • 303
  • 4
  • 13
6
votes
1 answer

Low level Bluetooth Programming in C++

I need a library (or API, ...) to do some low level Bluetooth programming using C++. Any reference or rich link will be great! And i prefer to work in linux based opreration systems... Thanks in advance... :)
Jalal
  • 6,594
  • 9
  • 63
  • 100
6
votes
3 answers

Low level keyboard hook & keystrokes from rawinput

Currently, I'm making a program that intercept keystrokes from a specific keyboard (filtered using its HID). So to know which keystrokes have been sent by a specific device, I used the RawInput technic, inspired by this great…
Louisbob
  • 860
  • 3
  • 9
  • 22
4
votes
3 answers

How to track mouse X/Y position and print it to a label?

I know how to modify cursor position from examples on MSDN. My question is how to check position of mouse while mouse moves and then print X and Y position to representing labels? EDIT: Lets say I want to track my mouse position from my entire…
HelpNeeder
  • 6,383
  • 24
  • 91
  • 155
4
votes
1 answer

WARNING: This property should not be used in TensorFlow 2.0, as updates are applied automatically

I was running some code in Google Colab. I defined my own model "MyModel()" and some functions (not shown because it's too long), which is inherited from 'tf.keras.Model'. ''' save_model_path='./models' # path to save trained…
yuanhang
  • 91
  • 1
  • 7
3
votes
1 answer

STM32 SPI LL DMA Transmit

I have been trying to get SPI master transmit to work using DMA and STM32 LL drivers, on STM32G030C8. I did get the SPI to work with LL drivers without DMA, so I believe that at least my wiring is correct. What I have done: Set SPI to use DMA in…
Ou Tsei
  • 470
  • 7
  • 24
3
votes
1 answer

Swift getaddrinfo

POSIX getaddrinfo allocates memory that must later be freed using freeaddrinfo. See http://manpages.ubuntu.com/manpages/xenial/en/man3/getaddrinfo.3.html To simplify the API, I've created this function: import Foundation enum SystemError:…
Etan
  • 17,014
  • 17
  • 89
  • 148
3
votes
2 answers

Performance Byte[] to Generic

I'm in need to make a byte[] -> T extension method and need it to be fast (no need for it being pretty) This function will be called 100's of 1000's of times in very short succession in an absolute performance critical environment. We're currently…
Riaan Walters
  • 2,587
  • 2
  • 18
  • 30
2
votes
2 answers

capturing network packet in c

This question might sound fool, because I know there are bunch of frameworks that does it for you. What I want is actually get in touch with low level C API deeply and able to write a program that sits on computer and intercepts packets between…
REALFREE
  • 4,378
  • 7
  • 40
  • 73
2
votes
0 answers

Programmatically Add/Remove displays on macOS

I'm looking for an API to add and remove displays to/from the system. I've found the Quartz Display Services, but that API mainly lets you modify existing displays for the sake of fullscreen mode for apps and games. For example, I would like to (via…
Alexander
  • 59,041
  • 12
  • 98
  • 151
2
votes
1 answer

C++ FMOD Studio can't give values to FMOD_DSP_PARAMETER_FFT for freq. analisys

I'm trying to represent the spectrum of a sound in a 3D plane but I only can play the sound and can't get the dsp into the structure FMOD_DSP_PARAMETER_FFT, numchannels and length are always = 0 My code is something like this: FMOD::System …
Custodius
  • 63
  • 10
1
vote
1 answer

How load Entity data into object - GoogleAppEngine - Low Level API

How can I automatically read a Entity (com.google.appengine.api.datastore.Entity) into a object using GoogleAppEngine Low Level API? There is no magic way?
Victor
  • 8,309
  • 14
  • 80
  • 129
1
vote
1 answer

Detect if a hardware device is working or not in C#

Is it possible in C# to detect that any hardware attached to computer has stopped working! If yes then how?
Zain Ali
  • 15,535
  • 14
  • 95
  • 108
1
2 3