View Full Version : Message box to use with CMM Program
cmmguy
06-09-2007, 12:07 AM
Message Box info has been moved to here: Link (http://www.cmmguys.com/forum/showthread.php?t=151)
Results:
http://www.cmmguys.com/downloads/programs/picmsg/ScreenPicMsg.JPG
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.
cmmguy
06-09-2007, 12:10 AM
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.
jkb_mcg
06-12-2007, 10:01 AM
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???:confused:
cmmguy
06-12-2007, 01:13 PM
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???:confused:
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....:D
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.
jkb_mcg
06-19-2007, 01:24 PM
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....:D
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
cmmguy
06-19-2007, 01:45 PM
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:
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.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.