Jump to content

When you select an Icon, what information is available?


---
 Share

Recommended Posts

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

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

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

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

 Share

×
×
  • Create New...