Jump to content
Sign in to follow this  
Bill Lange

Atari Automated Screen Shots

Recommended Posts

I received a couple of emails today about the automated screenshot program I wrote early last year.

 

For anyone else that is interested, here are the details:

 

1. The program runs in VB 6.0.

2. It requires that Atari800Win Plus is running.

3. Images are put in C:TEMPIMAGES

 

The images are output as .PCX. Sample image saved as .PNG for attachment purposes.

 

Here is the heart of the code:

 



Needs a little cleaning up, but should work as long as the C:TEMPIMAGES directory exsists.



Bill

Public Sub StartProcessing(strAppName As String)

Dim strAtariApp As String



strAtariApp = strAppName & ".atr"

   

   AppActivate "Atari800Win" ' set the active application

   SendKeys "%(1)", True ' send a Alt-1 to open Attach Disk 1 dialog

   Sleep (1000)  '// Pause for 1 second



   SendKeys strAtariApp, True ' type in name of application to open

   SendKeys "{ENTER}", True ' and press enter

   Sleep (1000)  'Pause for 1 second to attach disk



   SendKeys "+{F5}", True ' Reboot the emulator

   Sleep (3000)  'Pause for 3 seconds to allow reboot and app load

   SendKeys "n", True ' send a N incase of crash



   ' take a snapshot of screen

   SendKeys "{F10}", True ' Press F10 to take a screen shot

   Sleep (1000)  ' Pause for 1 second

    

   SendKeys "C:tempimages" & strAppName & "-r.pcx", True ' save file as

   SendKeys "{ENTER}", True ' and press enter

   Sleep (2000)  ' Pause for 2 seconds to allow for save

      

   SendKeys "{F4}", True ' send start

   Sleep (1000)  ' Pause for 2 seconds to allow for save

     

   ' take another snapshot

   SendKeys "{F10}", True ' Press F10 to take a screen shot

   Sleep (1000)  ' Pause for 1 second



   SendKeys "C:tempimages" & strAppName & "-s.pcx", True ' save file as

   SendKeys "{ENTER}", True ' and press enter

   Sleep (2000)  ' Pause for 2 seconds to allow for save



   DoEvents: DoEvents: DoEvents ' allow windows to process event

  

End Sub

post-188-1105069884_thumb.png

post-188-1105069885_thumb.png

Share this post


Link to post
Share on other sites

:D Nice idea.... Thanks for posting it !

 

Nobody can do this app in C++ and compile it or make a VB executable ??

 

I lost de Visual Basic CD's and i really need an app like this...

Share this post


Link to post
Share on other sites

I'll make you a VB exe with installer on Fri.

 

Right now, it only works on ATR files, but with a little modification, it should work on any type of file that Atari800Win Plus can open.

 

Bill

Share this post


Link to post
Share on other sites
:ponder: Correct me if I am wrong but Atari800Win (I use version 4.0) already has a screenshot feature (key F10) built in. You even can automatically capture sequences of subsequent screenshots (movies) using this emulator.

Share this post


Link to post
Share on other sites

That is true and I use that "F10"feature.

 

This program allows you to take screen shots of a directory full of ATR files. You can let it run over night and you'll have a few thousand screen shots in the morning.

 

The program loads an atr into the emulator, takes a screen shot, saves it then moves on to the next atr in the list.

 

You don't have to do it manually.

Share this post


Link to post
Share on other sites

So that runs on a WinPc right?

 

This is really awesome. I would just be content if someone put a zipped file of these screen dumps. That alone would be fun.

Share this post


Link to post
Share on other sites

 

The program loads an atr into the emulator, takes a screen shot, saves it then moves on to the next atr in the list.

 

cool feature, I was thinking to do something similar,

It's better that is already done :D

Share this post


Link to post
Share on other sites
I would just be content if someone put a zipped file of these screen dumps.  That alone would be fun.

 

I have a few thousand screen shots that I made last spring when I started working on this little program. I'm zipping them up now and will put them on my server for you.

Share this post


Link to post
Share on other sites

This program allows you to take screen shots of a directory full of ATR files.  You can let it run over night and you'll have a few thousand screen shots in the morning.

 

Ah, now I understand.

 

Very interesting.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...