Page 3 of 3

Re: Noobish Python help pl0x

PostPosted: Wed Dec 01, 2010 1:39 am
by fashizzlepop
300+ folders? I would imagine that your script should be able to read the mail sent to a single folder and act on that. I assume that's what you are working on?

Re: Noobish Python help pl0x

PostPosted: Wed Dec 01, 2010 2:14 am
by sanddbox
centip3de wrote:
Vulpine wrote:
centip3de wrote:It uses mozilla thunderbird and an add-on for it. (If anyones interested I'll go into greater detail)


I'm very interested in this greater detail.



I think that means, "I'm very interested in this, go into greater detail" or something along those lines.

Anywho, I'm able to control my comp via text messages because of email. On Mozilla Thunderbird it has an option to sort your emails, i.e. if its from johniscool@epicprovider.com it will put it in the "john is cool" folder. Now there is an addon called, Mailbox Alert that whenever you get mail, it will do a specific action like play a sound or even start a program (get where I'm going ;) ). So basically I made a crap load (near 300) folders for all the different possible text messages, or commands I would want to do. And set the Mailbox Alert to a different batch program (I know, highly ineffective) that would write a text file, and start my mother program. This program would read the file, and depending on what it said, correspond properly. This could be anywhere to sending a text back to, starting a process, to taking a screenshot and sending it to me (if my friends didn't believe me :D ). And all I had to do , was send a text to my email. :)

Hope thats what you meant xD


Reminds me of a year or two ago when I was doing the same. I was using twitter (since you can tweet from your phone) and a script I wrote to automatically check my twitter account. The only problem was that I hate twitter :P

Re: Noobish Python help pl0x

PostPosted: Wed Dec 01, 2010 4:46 pm
by centip3de
fashizzlepop wrote:300+ folders? I would imagine that your script should be able to read the mail sent to a single folder and act on that. I assume that's what you are working on?



Haha how'd you know? :P

-- Wed Dec 01, 2010 1:46 pm --

sanddbox wrote:The only problem was that I hate twitter :P



+1 :ugeek:

Re: Noobish Python help pl0x

PostPosted: Mon Feb 07, 2011 3:30 pm
by shadowboy1505
What command did you use to take a screenshot?

Re: Noobish Python help pl0x

PostPosted: Mon Feb 07, 2011 7:37 pm
by Defience
shadowboy1505 wrote:What command did you use to take a screenshot?


I don't know what method he used, but in Python one way is:
Code: Select all
import ImageGrab
# you can change these coordinates to whatever section of the screen you want to snapshot.
im = ImageGrab.grab((0,0,850,750))
im.save("img.jpg")

Re: Noobish Python help pl0x

PostPosted: Tue Feb 08, 2011 12:50 am
by centip3de
Defience wrote:
shadowboy1505 wrote:What command did you use to take a screenshot?


I don't know what method he used, but in Python one way is:
Code: Select all
import ImageGrab
# you can change these coordinates to whatever section of the screen you want to snapshot.
im = ImageGrab.grab((0,0,850,750))
im.save("img.jpg")


And then sent it off, but pretty much that's what I did.