tack snap shot with windows service
-
hello every body.
I wanna to create windows service with c # that ,it able tack snapshot and send to server.
but my problem is when using "Screen.PrimaryScreen.Bounds" .visual studio cant know this.
I was so much search bout this problem but I cant get result.
thank you for help me. -
hello every body.
I wanna to create windows service with c # that ,it able tack snapshot and send to server.
but my problem is when using "Screen.PrimaryScreen.Bounds" .visual studio cant know this.
I was so much search bout this problem but I cant get result.
thank you for help me.You can't. Services can't access the screen, keyboard, mouse, or any other element of the user interface at all. They can't start an app that can access the UI either! Why not? Becauses services are designed to run when there is no user, and hence no user interface. I don't know what you are trying to achieve, but you will not get this to work at all.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
You can't. Services can't access the screen, keyboard, mouse, or any other element of the user interface at all. They can't start an app that can access the UI either! Why not? Becauses services are designed to run when there is no user, and hence no user interface. I don't know what you are trying to achieve, but you will not get this to work at all.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
Quote:
The game sent off in 2017 and from that point onward, players have been clamoring for codes in Roblox Greenville. It isn't so much that they are confidential, they basically have
https://qnnit.com/greenville-codes
never existed.It appears to be that the designers believe players should handle their game as it was done in the good 'ol days. They might feel that there is no requirement for codes, and presumably believe players should crush with next to no help.
-
hello every body.
I wanna to create windows service with c # that ,it able tack snapshot and send to server.
but my problem is when using "Screen.PrimaryScreen.Bounds" .visual studio cant know this.
I was so much search bout this problem but I cant get result.
thank you for help me.Taking a snapshot with a Windows service involves a nuanced approach due to the session isolation between the service and the logged-in user. Typically, services operate in a non-interactive session, which restricts their ability to directly interact with the user's desktop. To overcome this, you can create a user-mode application that runs in the user's session and handles the screen capture. The Windows service communicates with this application using inter-process communication (IPC) mechanisms such as named pipes, sockets, or message queues. The service sends a command to the user-mode application, prompting it to take a screenshot using graphics libraries like System.Drawing in .NET. This setup ensures that the screen capture is performed with the necessary permissions and context, while the service oversees the process and manages the communication. By structuring the solution in this way, you can effectively bridge the gap between the non-interactive service environment and the interactive user session, enabling reliable and secure screenshot functionality.