Macro programming?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crazytegger
    New Member
    • May 2006
    • 22

    Macro programming?

    How easy would it be to program a macro that would:

    1 Go through each subfolder in a specified folder
    2 Open a file where the filename is file##DOC.vlm wih the appropriate program
    3 do a CRL+A and then a CTRL+C
    4 Open a graphic program such as MS Paint and do CTRL+V
    5 Save that file as a monochromatic bitmap with the name file##.vlm (## is an integer)

    Please let me know, im supposed to do this to almost 400 files at work. I figured a macro would be easier to do. Hope somone can help.

    Thanks,

    Justin
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Sounds like you need Windows Recorder (a program that recorded mouse and keyboard macros in Windows). Unfortunately the last version of Windows to ship with this utility was Windows 3.11 which I suspect you are not running.

    There are comercially available programs to do the same thing though try typing "windows macro recorder" into Google.

    Another possible alternitive is to print to bitmap, you can get bitmap printer drivers and a lot of programs support the command line

    <program> /p <file>

    to print to the default printer. Google for "print to bitmap"

    Apart from that what you suggest is very hard to do as it involves sending messages to multiple programs.

    Comment

    • Egypt_81
      New Member
      • Jul 2006
      • 25

      #3
      I had similar task one year ago. I suggest u use SendKeys() in VC++
      it's easy to use. if u need help let me know
      Regards
      hesham el ebrashy

      Comment

      • danp129
        Recognized Expert Contributor
        • Jul 2006
        • 323

        #4
        Is the original file a picture? If so you might check out Irfanview http://www.irfanview.com/. It can do batch conversions of images. Check out the plugins available for it too.

        Comment

        Working...