ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Script Hotkey - Change File Path

Solved!
Go to solution

I moved the location of all my scrips, which others use. What I would like to do is create a script that will modify the file path of hotkeys that have been programmed by the user to match the new path.

 

Is there a way I can access the hot key file paths?

0 Kudos
Message 1 of 6
(4,158 Views)

Hi,

 

Can you clarify what file paths you mean? Is this a dialog hotkey?

0 Kudos
Message 2 of 6
(4,126 Views)

DIAdem has the "hold shift and then press a function button" that calls a script that the user has programmed.

0 Kudos
Message 3 of 6
(4,114 Views)

OK, have you seen this forum post:

 

Programatically assigning scripts to Function keys
https://forums.ni.com/t5/DIAdem/Programatically-assigning-scripts-to-Function-keys/td-p/478872

Message 4 of 6
(4,101 Views)

This almost gets what I need. Is there a way that I can get what the current file path is for F1-F12?

0 Kudos
Message 5 of 6
(4,092 Views)
Solution
Accepted by topic author BrianCT

GlobalFnScriptGet would work for what I need to find the current file path.

 

Call GlobalFnScriptSet works to set the path.

0 Kudos
Message 6 of 6
(4,091 Views)