Message box to use with CMM Program

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

  • Message box to use with CMM Program

    Message Box info has been moved to here: Link

    Results:

    edit: I guess you cant see the picture anymore so follow the link.

    Features:
    It will
    -Display:
    ....a picture
    ....a text message(with different font sizes and justification)
    ....different colored backgrounds
    ....up to 2 buttons(OK or Cancel or both) and create a file on the CANCEL button for testing if canceled
    -Auto-close after delay(in conjunction with any other feature)
    -Play a wave file(With any other feature)

    Also...
    New parameter to point to an INI file that is not saved in the default location.
    Last edited by cmmguy; 06-14-2013, 03:12 PM.
    Links to my utilities for PCDMIS

  • #2
    Fixed seconds autoclose - seems it was picking up 10 seconds by default.

    Added remote ini file redirection using |i command line parameters. This will let you create specific INI files for each program and then use those for each one. and it lets you keep the parameter list short in the CMM Program. You could use two or three for progressive instructions.

    The sound will play after the window is closed if the wave file is longer than the close delay. So if you have a long wave file, it should play after CMM program continues to run.
    Links to my utilities for PCDMIS

    Comment


    • #3
      Originally posted by cmmguy View Post
      Fixed seconds autoclose - seems it was picking up 10 seconds by default.

      Added remote ini file redirection using |i command line parameters. This will let you create specific INI files for each program and then use those for each one. and it lets you keep the parameter list short in the CMM Program. You could use two or three for progressive instructions.

      The sound will play after the window is closed if the wave file is longer than the close delay. So if you have a long wave file, it should play after CMM program continues to run.
      So, now it displays a timer on the left. But, it's still defaulted to 10 seconds. Can't seem to change that. I'm not quite understanding I guess???
      ~Josh~ Giles Rescue "Ut ceteri vivant"

      Comment


      • #4
        Originally posted by jkb_mcg View Post
        So, now it displays a timer on the left. But, it's still defaulted to 10 seconds. Can't seem to change that. I'm not quite understanding I guess???
        You know, you just cant hire good programmers anymore.... I guess I need to farm this out to India... Give me a few minutes on this....

        Update:
        Ok...corrected.
        Added: When OK is pressed, it creates the file pmresult.txt in the folder where the picmsg.exe is located. The file contains "OK". can be used to test if/when message box is closed. Similar to when Cancel is pressed.
        Last edited by cmmguy; 06-12-2007, 02:15 PM.
        Links to my utilities for PCDMIS

        Comment


        • #5
          Originally posted by cmmguy View Post
          You know, you just cant hire good programmers anymore.... I guess I need to farm this out to India... Give me a few minutes on this....

          Update:
          Ok...corrected.
          Added: When OK is pressed, it creates the file pmresult.txt in the folder where the picmsg.exe is located. The file contains "OK". can be used to test if/when message box is closed. Similar to when Cancel is pressed.
          No, No...what i meant was....I can't change the timer from 10 seconds to like 3 or 5 seconds. Also, what is wrong with this line?

          EXTERNALCOMMAND/NO_DISPLAY, NO_WAIT ; C:\PCDMIS3.7MR3\PICMSG.EXE |T POSITION AS SEEN IN PIC. |P C:\pcdmis3.7mr3\Images\FO5703012_1.JPG |S03 |B0|F16
          ~Josh~ Giles Rescue "Ut ceteri vivant"

          Comment


          • #6
            Originally posted by jkb_mcg View Post
            No, No...what i meant was....I can't change the timer from 10 seconds to like 3 or 5 seconds. Also, what is wrong with this line?

            EXTERNALCOMMAND/NO_DISPLAY, NO_WAIT ; C:\PCDMIS3.7MR3\PICMSG.EXE |T POSITION AS SEEN IN PIC. |P C:\pcdmis3.7mr3\Images\FO5703012_1.JPG |S03 |B0|F16
            Doesnt look like anything is wrong with it... why, what happens when you use it? Is the one where the timer doesnt work?

            Get the lastest version. There was an earlier version that had defaulted to 10 seconds but was fixed.

            Also, I dont know if PCDMIS has issues with long command lines like that so that is one reason that I added the ability to reference an external file so that you can make up instructions for each part program and edit it without going into the program itself.

            So for you example, use notepad and create a file called "FO5703012_1.ini" that is saved in C:\setups\ (Just an example)

            Put the following text in the file.
            ---------------------------------------------------------
            [Parameters]
            A=CENTER
            B=0
            C=BLUE
            F=16
            P=C:\pcdmis3.7mr3\Images\FO5703012_1.JPG
            S=3
            T=POSITION AS SEEN IN PIC
            W=
            ---------------------------------------------------

            Then reference your file like this:
            Code:
                        EXTERNALCOMMAND/NO_DISPLAY, NO_WAIT ; C:\PCDMIS3.7MR3\PICMSG.EXE |i C:/setups/FO5703012_1.ini
            NOTE: The backslashes in the path for the INI file are reversed so that PCDMIS doesnt try to process it.

            Another thing, it might be easier to create a folder just for setups and instructions. This would help to keep paths shorter and simpler. This is just an example.

            C:\Setup\
            Put the picmsg.exe file in here

            C:\Setup\Images\
            Put your image files in here

            C:\Setup\Sounds\
            Put your sound files here

            C:\Setup\INI\
            Put your instruction files here

            If you create a folder for each part program, then it might be easier to put all the related files in that folder instead. There are many ways to do this.
            Last edited by cmmguy; 06-20-2007, 04:28 PM.
            Links to my utilities for PCDMIS

            Comment

            Related Topics

            Collapse

            Working...
            X