Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. tack snap shot with windows service

tack snap shot with windows service

Scheduled Pinned Locked Moved Graphics
helpcsharpvisual-studiosysadmin
4 Posts 4 Posters 35 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sa11144
    wrote on last edited by
    #1

    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.

    OriginalGriffO T 2 Replies Last reply
    0
    • S sa11144

      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.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      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!

      "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

      Q 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        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!

        Q Offline
        Q Offline
        qnnitzx
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S sa11144

          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.

          T Offline
          T Offline
          tena lena
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups