Jump to content
IGNORED

Atari Automated Screen Shots


Bill Lange

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

Link to comment
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.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...