DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

List of USERCOMMANDS

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(1,168 Views)

Hi,

Maybe this commands can help you 

http://zone.ni.com/reference/en-XX/help/370858P-01/comoff/filenameget/

bhovhann
0 Kudos
Message 2 of 5
(1,116 Views)

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.

0 Kudos
Message 3 of 5
(1,113 Views)
Solution
Accepted by topic author Lukas_Doubek

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

 

0 Kudos
Message 4 of 5
(1,025 Views)

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

0 Kudos
Message 5 of 5
(1,019 Views)