10-19-2020 02:40 AM
Hi,
how can i see which usercommands i got registered?
Something like "scriptCmdList" is missing.
I only can check with ScriptCmdIsLoaded() if specific script is loaded, but im loading the scripts with my program with relative URL compare to users location of the program, so on each computer, the path is different.
How can i check if specifif usercommand file is loaded?
Solved! Go to Solution.
10-30-2020 09:11 AM
Hi,
Maybe this commands can help you
http://zone.ni.com/reference/en-XX/help/370858P-01/comoff/filenameget/
10-30-2020 01:21 PM
Can you expain more what you mean?
The functions you posted is to trigger dialog box for choosing files.
Diadem-SCRIPT-Settings-Extensions-User Commands
i need to check if if user command is loaded depending on filename, cause it varies on different servers our scripts are running so the path is different, but name of the scripts remains.
12-03-2020 03:09 AM
Hi Lukas_Doubek,
ScriptCmdIsLoaded needs a full path.
But if you would like to check whether a certain user command is loaded you can use ItemInfoGet:
if ItemInfoGet("MyUserCMD") then
msgbox ItemInfoType
else
msgbox "The command is not loaded"
end if
Maybe this can help.
Greetings
Walter
12-03-2020 03:55 AM
Hi,
thanks i could yout this to determine if the usercommand is loaded. as users got my program on different networks, the usercommands are saved in different paths, so function to give me list of usercommands with their full path would be very usefull, but i can check if its loaded with this command. works fine.
thanks again