[Closed] .mse file error
Im trying to get .mse files to work, but everytime I run a .mse script it gives an error. Syntax error bladibla.
First I tried putting .mse files in the scripts/startup folder but on startup every script gave an error.
Next I tried running scripts with the filein() command, but again, error.
The scripts are all completely valid. Here’s an example script before encrypted:
macroScript VPReset
category: "_PapiGiulio"
icon:#("papigiulio",1)
(
viewport.ResetAllViews()
viewport.setGridVisibility #all false
viewport.SetShowEdgeFaces true
actionMan.executeAction 0 "370"
max tool zoomextents all
)
Clearly Im missing an essential part.
Is it even possible to run .mse scripts by linking it like you would with an normal .ms button?
thnx
hello,
You cannot encrypt macros…
You need to have the macro in clear text, and ‘filein’ your encrypted script.
macroScript VPReset
category: "_PapiGiulio"
icon:#("papigiulio",1)
(
filein @"C:\\VPReset.mse"
)
then you can encrypt the VPReset.ms to generate VPReset.mse:
( viewport.ResetAllViews()
viewport.setGridVisibility #all false
viewport.SetShowEdgeFaces true
actionMan.executeAction 0 "370"
max tool zoomextents all
)
put the code in a .mse, then call it from a unencrypted script.
so the code is encrypted seperately, but called from un encrypted script.
This is how we had to do it.
in un encrypted script you have this:
fileIn “encryptedscript.mse”