Copy-paste from Rhino 7 to MoI3d
 1-7  8-27  28-47  48-51

Previous
Next
 From:  Michael Gibson
9890.48 In reply to 9890.47 
Hi mdesign, it looks like the shortcut key is not quite right, there's a description for how it needs to be set up earlier in this thread here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9890.22

The key thing that you're missing:
quote:

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.

So where you have "c:\UpdateRhinoClipboard.exe", you instead need it to be "c:\\UpdateRhinoClipboard.exe" - note the doubled backslash.

There is probably a bug where if you give an invalid path to moi.filesystem.shellExecute() with the "wait for finished" enabled it ends up getting stuck waiting for a non-existent program to finish running and then running some other command cancels out from that wait. I'll see if I can fix that up.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9890.49 In reply to 9890.48 
Hi mdesign, also it looks like you may have 2 sets of quotes around the c:\UpdateRhinoClipboard.exe, one pair of single quote ' characters and another pair of double quote " characters. Modify that to have just one or the other in that spot.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mdesign
9890.50 In reply to 9890.49 
It works!!! Thank you Michael for your effort with solving my issue. I`ve changed single backslash to double and removed unneeded pair of quotes. It helped to solve that issue exactly as you said.

Cheers!!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
9890.51 In reply to 9890.50 
You're welcome mdesign, I'm glad that it's working now!

I have tuned up the shellExecute method for v5 so that if there was an error in launching the program it won't try to wait for it to finish.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-7  8-27  28-47  48-51