[Zo...] Posted May 19, 2021 Share Posted May 19, 2021 hi all, I saw a nice function in another CMM programming software and would love to find out how to do it in Calypso. basically adding images to Prompts. _see example below_ this can be inside an "inquire" or "message" command I tried by adding a .bat file that opens the .jpg before prompt using "systemCallWithWait" but it doesn't look good and disappears too quickly systemCallWithWait("C:\Users\kzolfaga\Desktop\Attachments\C3.bat") Gage_ID = inquireNumber("input ID as per image") **C3.bat contains the path and name of the image I am sure there should be a better way to do this inside calypso 🙂 Link to comment Share on other sites More sharing options...
[Zo...] Posted May 19, 2021 Author Share Posted May 19, 2021 also wanted to add: code in that other software would let me create my own prompt/message box _see example below_ I can specify size and location of text, input box, image and button does calypso offer this option? PROMPT/0,0,320,310,TITLE,'Gage Internal Diameter',BUTTON,200,10,50,15,'OK',1,BUTTON,260,10,50,15,'Cancel',0,PICTURE,10,35,300,250,'K:\NGOM\Common\Wenzel\DMIS\Fixture\ID.bmp',EDIT,95,10,75,15,ID_Diameter,False,TEXT,10,10,75,15,'Gage ID' Link to comment Share on other sites More sharing options...
[No...] Posted May 20, 2021 Share Posted May 20, 2021 No, it doesn't. But it would certainly be a nice feature to be added to PCM. You may want to try your luck in the MyVoice section on the Zeiss portal 😉 Link to comment Share on other sites More sharing options...
[Zo...] Posted May 20, 2021 Author Share Posted May 20, 2021 Please sign in to view this quote. Calypso certainly has this capability in automated tool changer, when you run "define holder location" using any XXT holder, there are prompt with images. do you know how or where I can access this routine? i am sure someone smart in here can crack the code 😉 Link to comment Share on other sites More sharing options...
[No...] Posted May 20, 2021 Share Posted May 20, 2021 Ok, you're talking about an exploit of internal Calypso routines. Well, that may be a possibility, but I can't help you with that. Better ask Eric for things like that. 😃 Link to comment Share on other sites More sharing options...
[Zo...] Posted May 20, 2021 Author Share Posted May 20, 2021 Please sign in to view this quote. @ Norbert Bendl, thanks for taking an interest. i couldn't find MyVoice, can you direct me or provide a link? thanks @ Eric Moberg, please come and join my exploit of internal Calypso routine 😉 I really believe this is really nice option to have when it come to creating interactive measurement plans. Link to comment Share on other sites More sharing options...
[Er...] Posted May 20, 2021 Share Posted May 20, 2021 Aaaaaa leave me alone! 😃 Link to comment Share on other sites More sharing options...
[Zo...] Posted May 20, 2021 Author Share Posted May 20, 2021 Please sign in to view this quote. you are awesome! I managed to recreate this, only issue I seem not able to solve, is my image size I can expand as wide as the image but can't control the height ❓ this is my code response=executeCode("WinProcess shOneOEM: 'C:/Users/kzolfaga/Desktop/EnhancedMessage/message.exe TITLE,"Gage Internal Diameter" TEXT,"Gage ID",10,10 INPUT,70,10 BUTTON," OK ",210,10 BUTTON," Cancle ",300,10 IMAGE,C:/Users/kzolfaga/Desktop/EnhancedMessage/Height.bmp,10,50 SIZE,425,500"+"'") Link to comment Share on other sites More sharing options...
[Zo...] Posted May 20, 2021 Author Share Posted May 20, 2021 downloaded your new .exe file and it is working now I could duplicate the same prompt your help is greatly appreciated 2021-05-19_13-12-53.jpg2021-05-20_16-13-26.jpg Link to comment Share on other sites More sharing options...
[Er...] Posted May 22, 2021 Share Posted May 22, 2021 I re-worked this a bit, since I can imagine how this can be pretty useful. You can have as many inputs, images, dropdowns, buttons and checkboxes you wish now. (Lists are limited to 1) And the respone is even easier to take care of, without any string splitting. It's also returned in a specific, logic order. (buttons, inputs, dropdowns, checkboxes and list) There's a text-file explaining the functions in the attached 7z-file. But here is a line that use all functions, and creates the prompt above: executeCode("WinProcess shOneOEM: '%desktop%\msg\dist\message.exe SIZE,580,300 IMAGE,%desktop%\msg\pic.png,10,190 FORCED TITLE,"Example title" TIMEOUT,120 TEXT,"Write something",5,10 TEXT,"Write some more here",5,50 INPUT,150,10 INPUT,150,50 BUTTON,OK,5,100 BUTTON,CANCEL,90,100, DROPD,("Choose type";Staropramen;Guinness;Corona;"Any cheep beer will do!"),5,130 LIST,("+qm()+myList+qm()+"),350,5 CHECK,"Tick here if you are cool",180,103 CHECK,"Or here if you suck",180,123 ' ").asArrayOfLines Example list: myList="Choise number 1" for i = 2 to 20 myList=myList+";Choise number "+i next i *edit - Found a bug, fixed it. Link to comment Share on other sites More sharing options...
[Zo...] Posted May 26, 2021 Author Share Posted May 26, 2021 Please sign in to view this quote. seems you like a challenge 🙂 -latest i tried i could only load one image, having multiple image gives the chance to demonstrate options - even better if you could make images clickable you have already done more than i ever imagined and i am thankful for it. keep up the good work Link to comment Share on other sites More sharing options...
[Er...] Posted May 26, 2021 Share Posted May 26, 2021 Challange accepted... enhamsg.png Link to comment Share on other sites More sharing options...
[Zo...] Posted May 26, 2021 Author Share Posted May 26, 2021 Please sign in to view this quote. just to clarify the challenge: 😉 i want to create a window like pic below clicking on right image returns "Jgermeister" and click on the left image returns "Feigling" Link to comment Share on other sites More sharing options...
[Er...] Posted May 26, 2021 Share Posted May 26, 2021 Use IMBUTTON,c:/img.ext,function,x,y[,U or D or L, or R] *Update - New functions and fixed all (?) bugs. Link to comment Share on other sites More sharing options...
[Zo...] Posted May 28, 2021 Author Share Posted May 28, 2021 Please sign in to view this quote. I just used these to create a programing wizard. 😃 basically at the beginning of my parametric program, I check for parameter file and if it doesn't exist it will go through this wizard that walks you step by step and write values to a parameter file and at the end deletes all the junk and reads the parameter file and runs. Link to comment Share on other sites More sharing options...
[Er...] Posted May 28, 2021 Share Posted May 28, 2021 Yeah, go nuts! I only use it for a "automated" sequential subsequent evaluation (what a sentence...) that alters filter between the evaluations. I start a new job on monday, so I won't spend my last days implementing stuff that the rest can't figure out. (I've aldready done that for 10 years... 🤣 ) Link to comment Share on other sites More sharing options...
[Da...] Posted May 31, 2021 Share Posted May 31, 2021 Please sign in to view this quote. Selling Mimir software? Thank you for every line of code. I wish you all the best! Link to comment Share on other sites More sharing options...
[Er...] Posted May 31, 2021 Share Posted May 31, 2021 Please sign in to view this quote. Nah, I'll be a Metrology method manager, but I don't really know what I'll actually be doing. I'll figure it's somthing like a Senior Developer combined with project management. And that your words and recommendations no longer is a preferred way, it's now the law 🤣 Link to comment Share on other sites More sharing options...
[Da...] Posted May 31, 2021 Share Posted May 31, 2021 Please sign in to view this quote. För hur många kilo apelsiner/månad? Link to comment Share on other sites More sharing options...
[Er...] Posted June 3, 2021 Share Posted June 3, 2021 Räcker knappt till att pressa ett glas juice.... Link to comment Share on other sites More sharing options...
[Zo...] Posted June 3, 2021 Author Share Posted June 3, 2021 Please sign in to view this quote. good luck on new journey, they are lucky to have you wherever are you going 🙂 as long as you don't quite in here 😉 Link to comment Share on other sites More sharing options...
[He...] Posted June 5, 2021 Share Posted June 5, 2021 Please sign in to view this quote. Congratz!! Still at the same company I assume? You are aware that it is mandatory to inform the leaching former master - now apprentice about all changes regarding e-mail addresses right? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in