Announcement

Collapse
No announcement yet.

Popup Stuff

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

  • Popup Stuff

    Why does the PopUp Stuff Send The Letter D with this code POPUP STUFF chr$(&h44),0,0 This should be F10. I'm running MSdos 6.22 ? There is very little on the Popup Stuff command that I've ben able to find. I really need to stuff F3 but I have 3 programs that use F10. What a great way to test it. Can you Please Point me in the right direction. Thanks

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

  • #2
    That would be because CHR$(&H44) = "D", I expect. What you want to pass is the shift code and scan code. According to the appendix on keyboard scan codes, for F10, this should work:

    POPUP STUFF CHR$(0, 68)

    Note that the comma goes inside the CHR$ function.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      68 dec is &h44. In the power basic help screen of scancodes. Am I putting the code in the wrong place? There are three spots and i've tryed to find thid information.

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

      Comment


      • #4
        As Tom noted, you need to specify it as an extended key by adding a leading zero byte.

        Please review the Reference Guide on the POPUP STUFF statement (page 214 & 215 of the printed edition).

        Thanks!

        ------------------
        Lance
        PowerBASIC Support
        mailto:[email protected][email protected]</A>
        Lance
        mailto:[email protected]

        Comment


        • #5
          Thanks guys. I wasn't looking at the ref guide but was useing the example guide. So my Hex code is correct I just wasn't telling popup stuff to use the scan codes.
          On another subject do I need to set memory for a popup timmer program that will do renaming using the shell command?

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

          Comment


          • #6
            I haven't done much MS-DOS work for a while, but I seem to recall the using SHELL in a POPUP can be problematic. You might want to use the NAME command instead of SHELL REN to rename files from a TSR.

            MCM

            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment


            • #7
              Would i be better off using the stuff buffer with the rename command and the correct syntax?

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

              Comment


              • #8
                Would i be better off using the stuff buffer with the rename command and the correct syntax?
                To do what?

                I have a complete public domain application using POPUP STUFF, somewhere here, anyway. Data file to modify, documentation, etc in a ZIP archive.

                Drop me a note and I'll email it to you.


                Michael Mattias
                Tal Systems (retired)
                Port Washington WI USA
                [email protected]
                http://www.talsystems.com

                Comment

                Working...
                X