Announcement

Collapse
No announcement yet.

Splash screen

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

    Splash screen

    Is there a way to get rid of the opening splash screen in PB3.5?
    I am getting tired of hitting a key every time I open it
    Thanks in advance
    wakely

    #2
    NO official built-in way, sorry.

    You could always try writing a TSR that sends a keypress to the IDE...

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

    Comment


      #3
      It doesn't really take a TSR. Just place an escape character
      in the keyboard buffer.

      Here's your PB program to do it

      REM ASCII-CODE FOR ESCAPE - ESCAPE.BAS
      ASM MOV CX, 27
      ASM MOV AX, &H0500
      ASM INT &H16

      Here's your bat file to invoke it

      ESCAPE
      PB %1 %2

      That was so easy, I may start using it myself....



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

      Comment


        #4
        That is a good example of lateral thinking... I'm impressed!

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

        Comment


          #5
          Hey Woody . . . . . ! !
          That works !
          Sometimes you can't see the forest for the trees?
          I don't know why I did'nt think of that - thanks.
          I renamed pb.exe to pb-1.exe and use pb.bat to call pb-1.bat, and so that pb is in my path, I change my path.
          Example:

          @ECHO OFF
          SET OLDPATH=%PATH%
          PATH=C:\PB35;%PATH%
          escape
          c:\pb35\pb-.exe %1 %2
          PATH=%OLDPATH%
          SET OLDPATH=

          Thanks again Woody and Lance for your responses!
          wakely

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

          Comment


            #6
            Lynn:
            Can this technique be used to call dosedit and do a Control End?
            could you or someone show me an example?
            How do you enter a control character in a batch file?
            Thanks - Rick

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


            [This message has been edited by Richard L Bianchi (edited April 22, 2002).]

            Comment


              #7
              When sending extended keys, CL is set to 0, and CH is set to the scancode for the key.

              The extended scan code for CTRL+END is 117, so CL = 0 and CH = 117.

              However, in my test of EDIT.EXE, it does nothing mode than END (CH=79). According to the INT &H16 notes I have here, Int 16,5 "will not store attribute keys like Shift, Alt, Ctrl, etc..." which would probably explain the reason.

              Still, if you want to experiment, here is the code:
              Code:
              $COMPILE EXE
              !MOV CL,0
              !MOV CH,117
              !MOV AX, &H0500   ; Function 5 = Kbd buffer write
              !INT &H16         ; Int &H16   = kbd I/O
              BTW, for anyone lurking here, here are my INT &H16 notes for Function 5:
              INT 16,5 - Keyboard Buffer Write (AT+)

              AH = 05
              CH = scan code #
              CL = ASCII character

              On return:
              AL = 00 if success
              01 if buffer full

              - available on AT and PS/2 machines with extended keyboard support
              - stores normal keystroke into keyboard buffer
              - will not store attribute keys like Shift, Alt, Ctrl, etc...

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

              Comment


                #8
                Thanks Lance, it was well worth the try - Rick

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

                Comment

                Working...
                X
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎