There is no direct way for a Qt application to detect a trigger triggered by a batch script. However, there are a few ways it can be done indirectly:
Use a system call in the batch script to send a signal to the Qt application. For example, you can use the "kill" command to send a signal to the Qt application process.
Use a file or socket to communicate between the batch script and the Qt application. For example, the batch script can create a file containing a certain message, and the Qt application can monitor that file for changes.
Use a network socket to communicate between the batch script and the Qt application. For example, the batch script can send a message to a specific network port, and the Qt application can listen on that port for incoming messages.
Overall, the method chosen will depend on the specific requirements of the application and the environment in which it is running.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-11-29 11:00:00 +0000
Seen: 10 times
Last updated: Jan 17 '22
Is it possible to globally install System.Data.OleDb?
How to debug NextJS application in VSCode?
Why does the app shut down when switching to the Google Maps section in a Flutter application?
How can an application Manager be put in place to manage the system?
How can I execute a React Native application on my Android device?
What conditions could cause Wildfly to automatically undeploy an EAR?
How can an application be run with parameters from the context menu?