How to run uf2 program file without USB connection [closed] - makecode

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I'm developping a little program that should watch at the download folder and automatically transfert UF2 file from https://makecode.mindstorms.com using a bluetooth connection and execute it. I'm using MonoBrick for that (http://www.monobrick.dk).
I don't understand how this UF2 file work. When I upload this file to the lego Mindstorms through an USB connection it automatically start (what is not very convenient as the cable is still connected).
But, when doing the same process with my code or using EV3Explorer (https://github.com/c0pperdragon/EV3Basic/tree/master/EV3Explorer) nothing happen. I can see the file with the file explorer on Windows but not directly on the Lego Mindstorms Brick.

Related

Reading input on c++ server in real time [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to write a server in C++, I would connect to this server via Netcat or Telnet. Server would send a menu to a client and client would navigate using the arrows to choose an option. My question is: how can I get char-messages in real time (not after clicking Enter) from client?
C++ standard library has no API for keyboard input. There is only API for streams, which do require pressing enter (or EOT).
Implementing direct keyboard input on POSIX shell is quite tricky, and I would instead recommend using an existing library.
In particular, an implementation of the curses library will have a getch function that you can poll in a loop.

C++ Windows API Syscall Hook Example [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Im just starting to learn C++ programming and for exercise I want to learn how to write Windows API Syscall Hook. For example, if I will try to delete a file with a specific name, for exmaple 'test.txt', then instead of deleting it a message would pop up. I tried searching for a tutorial on how to do something like that but I couldn't find anything.
Maybe someone could share a link to a tutorial on how to do something like this or maybe a very simple code example?
I am working on Windows 10 machine and Visual Studio 2015.
Write a File System (Mini-)Filter Driver.
https://msdn.microsoft.com/en-us/library/windows/hardware/ff548202%28v=vs.85%29.aspx
A file system filter driver is an optional driver that adds value to
or modifies the behavior of a file system. A file system filter driver
is a kernel-mode component that runs as part of the Windows executive.
A file system filter driver can filter I/O operations for one or more
file systems or file system volumes. Depending on the nature of the
driver, filter can mean log, observe, modify, or even prevent. Typical
applications for file system filter drivers include antivirus
utilities, encryption programs, and hierarchical storage management
systems.
The windows driver samples contain a minifilter driver to detect deletions of files or streams.
See: https://github.com/Microsoft/Windows-driver-samples/tree/master/filesys/miniFilter/delete

How to capture audio from specific application and route to specific audio device in Windows 7? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Ok, my question is this:
How can I programmatically capture audio from a specific application and then send it to a specific audio device in Windows 7?
I know for a fact this can be done, since SoundLeech captures audio from individual programs, and theoretically once you have the sound you can do what you want with it (including play it to any sound output device).
I'm a C++ programmer but I know very little about Windows programming. I need some pointers to capturing sound from individual programs. I work with audio recording very frequently and I would be willing to put in a large amount of work to develop a way to better handle sound in Windows given how difficult to use it currently is.
So how can I capture audio streams directly from applications without first routing them through Virtual Audio Cables or the like?
You cannot do it using standard user mode APIs. You need to either hook APIs or create virtual devices to accept application streams/sessions.
Intercepting and postprocessing all audio streams on Windows
Recording Audio Output from a Specific Program on Windows
Is it possible to caputre the rendering audio session from another process?
Capture audio of a single application on Windows 7

How can I find out what type of headphones are plugged? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have question about core audio system. Is there any way how to find out what type of headphones are plugged? Or get some information about that. How does iPod app detect it? Core audio is C type things, so is it any way how to do it in C? Any ideas? Thank you for replies.
You can use this open source class to determine if headphones are plugged and handle headphones plug or unplugging and audio route changes.
You cannot get programmatically the type of headphones plugged. iPod app detects if you hear from the speaker or from headphones, not the type of the headphones.

Open source RTP mixer/translator exe or sdk [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Hi I need opens source (win 32) sdk or free server with signaling protocol, which implements RTP translator or mixer. e.g receives RTP traffic from one connection and transmits it on the other. Does not have to have conferencing capabilities.
Server should implement some kind of protocol which opens, bridges, and closes connections.
Ready made server is much preferable than just common RTP SDK.
Use ffmpeg - ffserver
I haven't found nothing real.
RtpProxy approaches the goal but I wasn't able to use it because it is for linux only.
I tweaked Rtp Relay test program included in Live555
look at VLC
look at the command line option of VLC