Announcement

Collapse
No announcement yet.

Two PBDOS questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Two PBDOS questions

    I have two questions regarding PB/DOS.

    * Is it possible to do a DOS graphics screen capture using PBDOS? So,
    read out the current graphics mode (1-12) and get all pixels on the screen?

    * Is it possible to create a TSR which runs unter 2000/XP - in a way that it
    is loaded each time a DOS program is started? So, somehow similar to using
    AppInit_DLL in Windows.


    ------------------

  • #2
    I have to add that I found a way to load a program when NTVDM starts using
    autoexec.nt file. However, it doesn't work with PB/DOS created programs. For
    example using the demo I have created a noname2.exe which just prints out "asdf".
    When I add the call to the EXE file inside the autoexec.nt, the autoexec.nt file
    is NOT processed at all. However, other things I add - like "echo" and the like -
    work perfectly.

    ------------------

    Comment


    • #3
      I have found my answer to question 2:

      Just modify HKLM\Software\Microsoft\Command Processor\AutoRun inside registry,
      and the TSR will be loaded.

      But about the screenshots: Do I need to access the hardware directly to grab the
      screen data (on any PB-supported graphics mode), or is there a built-in command
      for that?

      ------------------

      Comment


      • #4
        Grabbing the graphics from a DOS screen is dependant upon which
        screen happens to be in use. If, for example, you're using #12
        then the pixels are stored in 4 layers with one bit for each
        pixel on one of the layers. A total mess.

        Yes, to get the data out with any kind of speed requires that you
        access memory directly. I've got the routines laying around somewhere
        still (I think) if you don't find anything in POFFs give me a shout
        and I'll see if I can dig them out.

        ------------------
        --
        C'ya
        Don
        don at DASoftVSS dot com
        http://www.DASoftVSS.com
        I program better than those who program faster
        Faster than those who
        program better.
        C'ya
        Don

        http://www.ImagesBy.me

        Comment


        • #5
          Hi Don,

          Thanks for your reply. Great, so I found a way to do DOS fullscreen screenshots
          from a Windows application without having to write a kernel module.

          I don't need complete code, just some specification of the memory addresses. I don't have
          POFFs but I'll look into Google. And I need a way to detect the current graphics mode
          (I guess I have to use in/out for that)


          ------------------

          Comment


          • #6
            Lothar,

            D/load POFFs. It's only the greatest source of PB code out there!

            ------------------
            --
            C'ya
            Don
            don at DASoftVSS dot com
            http://www.DASoftVSS.com
            I program better than those who program faster
            Faster than those who
            program better.
            C'ya
            Don

            http://www.ImagesBy.me

            Comment

            Working...
            X