Bill Lange Posted January 7, 2005 Share Posted January 7, 2005 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 Quote Link to comment Share on other sites More sharing options...
Zybex Posted January 7, 2005 Share Posted January 7, 2005 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... Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted January 7, 2005 Author Share Posted January 7, 2005 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 Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted January 7, 2005 Author Share Posted January 7, 2005 Try this. http://www.langesite.com/project1.zip Let me know if this works. It will take a screen shot of anything including "boot error", DOS screens and autorun.sys' menus. If an ATR boots to a game screen, it should work. Bill Quote Link to comment Share on other sites More sharing options...
Chrodegang Posted January 7, 2005 Share Posted January 7, 2005 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. Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted January 7, 2005 Author Share Posted January 7, 2005 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. Quote Link to comment Share on other sites More sharing options...
doctorclu Posted January 7, 2005 Share Posted January 7, 2005 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. Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted January 7, 2005 Author Share Posted January 7, 2005 Yep, WinPC. Quote Link to comment Share on other sites More sharing options...
devwebcl Posted January 7, 2005 Share Posted January 7, 2005 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 Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted January 7, 2005 Author Share Posted January 7, 2005 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. Quote Link to comment Share on other sites More sharing options...
Chrodegang Posted January 7, 2005 Share Posted January 7, 2005 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. Quote Link to comment Share on other sites More sharing options...
Bill Lange Posted January 7, 2005 Author Share Posted January 7, 2005 Here are the screen shots http://www.langesite.com/atari_screens.zip Bill Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.