[Ri...] Posted January 24 Share Posted January 24 I am trying to trigger an event for an App I'm writing (EXE file). It would be cool to be able to know any information of the Icon selected for the run prior to initiating the run. Can I get the path associated with the icon? Can I get the File Name? Link to comment Share on other sites More sharing options...
[Ma...] Posted January 24 Share Posted January 24 I don't think you can get anything from UI. How do you want to achieve this with? Any success yet? I am curious. Link to comment Share on other sites More sharing options...
[No...] Posted January 24 Share Posted January 24 The information is there of course, but it's not even clear if Autorun generates some kind of "icon selected" event that you might query. It could just as well read the information only after you clicked the run button. Link to comment Share on other sites More sharing options...
[Ri...] Posted January 24 Author Share Posted January 24 Please sign in to view this quote. I ended up settling for after the "Run" event that activates Pre-Settings to a text file by users "Stamp ID". //01.22.24 - Setup Last User information OpName=getRecordHead("u_OperatorName") OpWoID=getRecordHead("u_WorkOrderID") OpPartNumb=getRecordHead("u_PartNumb") OpSerNumb=getRecordHead("u_SerNumb") OpFam=getRecordHead("planid") //Program ID Opminiselection=miniselection //Mini Plan Name inspPath2 = "C:\Users\Public\Documents\Zeiss\CALYPSO\workarea\inspections\Zeiss 1 Block\Eaton Aerospace\PCM Program\" //end //fileName = OpName +".txt" fileName = OpName+".txt" deleteFile(inspPath2+fileName) addToFile(inspPath2+fileName, OpName) addToFile(inspPath2+fileName, OpWoID) addToFile(inspPath2+fileName, OpPartNumb) addToFile(inspPath2+fileName, OpSerNumb) addToFile(inspPath2+fileName, OpFam) addToFile(inspPath2+fileName, Opminiselection) //end Then I created a vb.NET App that reads the text file and provides information to the user. See image: Capture.PNG The App is opened by the user from a fixed folder location. The App stays on Top of everything. The user enters the Stamp ID and clicks on Search.Capture.PNG 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