Hi feirui445, the folder can be anywhere on your system where it is convenient for you to store a downloaded file.
One possibility would be to store it in the MoI appdata folder. To do that press Win+R to open the Windows "Run" dialog and put in: %AppData%\Moi and push Enter. That will open up the MoI appdata folder where some MoI files are already stored. It will be a path like: C:\Users\Michael\AppData\Roaming\Moi
Unzip the file attached above to get the UpdateRhinoClipboard.exe helper program and put it in that appdata folder.
Then you would set your Ctrl+V shortcut in MoI (under Options > Shortcut keys) to be (copy and paste the following into the "Command" part of the shortcut key):
script: moi.filesystem.shellExecute( 'C:\\Users\\Michael\\AppData\\Roaming\\Moi\\UpdateRhinoClipboard.exe', 'target=moi', true /*wait for finish*/ ); moi.command.execCommand( 'paste' );
Note - you would replace the "Michael" in the path with your user name. One thing to note is the path name in the script code needs doubled backslash characters. Instead of just one \ as the path separator it needs 2 like \\. That's because in JavaScript a single \ is an escape character for special characters like \t means tab or \n means newline. The \\ means make a single backslash in the actual string.
- Michael
|