Howdy. I am trying to automate a way to open up a bunch of files that are in a Program.
These files are saved as text, but when opened in this Program, are pictures. These pictures are what we want to print, but they are only pictures when opened in this Program.
Is there any way to use VB to open up this program, navigate through it to these files, and open these files. The structure is like:
Inside Program Window
Project
- Controller
- Module
- Area
-Picture1
-Picture2
Kind of off the wall, but I appreciate yalls help.
Thanks,
Bobby
Well, firstly, I'm not quite sure what you are looking to do. Are you trying to extract the images, or cause the program to print them, or what? If you just want the images, a simple way would be to just take a screen shot. If the text files are base 64 encoded, you could probably decode them easily.
Perhaps you should post one of the text files.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
I was trying to get the program to open the file to print the image to a pdf file, but the screenshot idea might be much better. I think the text file is going to be a little hard to decode, for me at least, but I will go get an example and post it. I don't know how I would draw it, but all it will be is a bunch of rectangles connected by lines. The tricky part will be the placement of the text on the connection spots of the lines. I will hopefully get it up here this morning.
I was able to use shell to open the program, but cannot get the sendkeys to simulate going down or over or open a group of folders, etc. The only thing I was able to do was close it.
i'm dimly aware that you can right click a file, choose print, and windows opens the relevant app, prints to the default printeer with default settings, then closes... can you do this with your pdf?
Here is a sample file. I tried to clean it up as best I could without deleting the syntax. I don't know how good an idea it will be to recreate these, because there are 1300 of these files, although this one is a worst case sample.
I looked into using printscreen but I don't think I can use sendkeys to do that, and I don't know any other way.
I have been able to get into the program, navigate to the file. Then I open the File Menu and go down to Print. From here I am able to open up the normal Printer Menu. I am trying to then select to print to the pdf through Distiller, I hope. But what is the syntax for telling the Message Box the name of the File you want to print?
Once I get that I think I will be done. Again there are 1300 of these and I don't know how long this will take or if it will crash the computer. I am open to any suggestions if there is a better way. The whole purpose of this is to be able to call a file up, copy it into a report, paste its table below it, search for the next pdf, paste it into the report, paste the table, etc.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.