EvilZone

Programming and Scripting => Projects and Discussion => Topic started by: Wolf on January 04, 2012, 03:10:35 PM

Title: Apple script/ automator
Post by: Wolf on January 04, 2012, 03:10:35 PM
So I had an idea for a project, but am not yet familiar enough with any of the languages I'm learning to follow through with the idea, so I ended up using apple script and automator. ( A little too user friendly :/ )
My idea was to Have my computer start a program upon log in that takes a screenshot every ten mins, then have that emailed to an anon email address. The problem I ran into was I'm not sure how to make this run in the back ground (where an unsuspecting user will not see it).
Any suggestions?
Title: Re: Apple script/ automator
Post by: Kulverstukas on January 04, 2012, 05:31:54 PM
No idea how to do it with whatever you want it to be done in, but it would be kinda easy with Delphi... maybe even Python.
Title: Re: Apple script/ automator
Post by: Wolf on January 04, 2012, 05:39:15 PM
Still learning python, so far I'm liking it a lot better than some other languages.
Title: Re: Apple script/ automator
Post by: ande on January 04, 2012, 06:30:43 PM
Perl got a win32 screenshot module.

Code: [Select]
  use Win32::Screenshot;

  $image = CaptureRect( $x, $y, $width, $height );
  $image->Write('screenshot.png');

http://search.cpan.org/~psme/Win32-Screenshot-1.20/Screenshot.pm
Title: Re: Apple script/ automator
Post by: Wolf on January 04, 2012, 07:04:15 PM
Ande,


Thanks, should be able to make this work. Never really gave much thought to perl after I started python.
Always on the move....