Announcement

Collapse
No announcement yet.

EMail Attachments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    I would say "Great minds think alike", but that is elevating me into a category that I don't belong in - ;-)

    Going to play around with this tonight.

    Thanks!

    Comment


      #17
      Jon:

      I installed your Remote Control plugin and installed the client app on the PC's around the house. (pretty slick app, btw)

      How would I incorporate the screensaver off/on toggle within the code you provided? Do I set up a macro to toggle all the PC's on the network, or do I need to turn each PC's screensaver on and off every time a picture is downloaded?

      GB

      Comment


        #18
        I don't know how many different PC's you want to run with screensavers. I also assume to load new pictures on to the screensaver gallery, you have to toggle it off then on again.

        After the email copy routine, just add the following code:

        Code:
        hs.Runex("Jon00RCCNM.vben","main","1||ssaveroff")
        hs.waitsecs(1)
        hs.Runex("Jon00RCCNM.vben","main","1||ssaveron")
        This assumes client 1

        If you have 2 PC's then it would be:

        Code:
        hs.Runex("Jon00RCCNM.vben","main","1||ssaveroff")
        hs.Runex("Jon00RCCNM.vben","main","2||ssaveroff")
        hs.waitsecs(1)
        hs.Runex("Jon00RCCNM.vben","main","1||ssaveron")
        hs.Runex("Jon00RCCNM.vben","main","2||ssaveron")
        This assumes client 1 and 2
        Jon

        Comment


          #19
          Thanks Jon.

          And to be clear, the number "1" in the function

          hs.Runex("Jon00RCCNM.vben","main","1||ssaveroff")

          is referring to the number in the first column called "Device" under the "General" heading, correct?

          Thanks again.
          Jim

          Comment


            #20
            Yes, that is correct.
            Jon

            Comment


              #21
              ...and I am placing it after the "end if" and before "end sub". I only want this to happen after all the files (if there are multiple e-mails with attachments)

              It's been a while since I programmed in Pascal...

              Comment


                #22
                Yes and no!

                The trigger script will always run on every email received so it will trigger the screensaver off/on with each email.

                You could make this bit a separate script and add it to the email recurring event or make the email checking duration short to reduce the possibility of more than one email being received.
                Jon

                Comment


                  #23
                  ...and finally (I think)...

                  How could I delete the emails after they are processed? The mailbox size for this email address is minimal, and I don't want it to get clogged up.

                  Comment


                    #24
                    Originally posted by GadgetBoySI View Post
                    ...and finally (I think)...

                    How could I delete the emails after they are processed? The mailbox size for this email address is minimal, and I don't want it to get clogged up.
                    Please see this post. Put the code at the bottom of the trigger script (just above the end sub)
                    Jon

                    Comment

                    Working...
                    X