Not sure if this is a bug but I' think I've followed the instructions. when I create a SCEZ I get error when I try running it:
ReferenceError: Can't Find variable: UI_serialPortInfoListBox.
The SCEZ only comprise of a script and GUI file, so is veryu basic and I don't get any errors if I run the same script direct from Script Communicator.
Any ideas on what I'm doing wrong?
Thanks
Dave Adams
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the problem is that your UI file and your script file have not the same name and therefore ScriptCommunictor loads the UI file not autmatically for you. You have two possibilites:
- rename your scipt to Remote_Control.js
- load your UI file manually with scriptThread.loadUserInterfaceFile
I think I should add this to the manual.
Best regards,
Stefan
Last edit: Stefan Zieker 2018-10-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-10-24
Stefan,
Thanks for the solutions. I tried re-naming the script as suggestion but now I get the following error (See screenshot attached). Seems strange as the latest version is 5.08?
did you change the config file or the script which you uploaded here? Because I created a SCEZ file with your uploaded files and everything worked fine. Can you reupload your currents file please?
And yes the latest version is 5.08.
Best regards,
Stefan
Last edit: Stefan Zieker 2018-10-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-10-25
Stefan,
Yes I changed the name then re-created the config. I've attached the script, UI, Config file and my generated SCEZ file.
Think I've spotted the problem, the config file shows, minSCVersion="8.8".
Problem is if I change this manually to 5.8 and re-generate the SCEZ file, it changes back to 8.8.
you have set the wrong version in the Dialog (see image) and if you want ScriptCommunicator to load automatically you UI file then your ui file must reside in the same folder (see image).
your settings are correct now . Can you upload your current generated SCEZ file please and can you execute the SCEZ file from the attachment?
I can create and execute the SCEZ file (attachment).
PS: If you change the file-ending from scez to zip then you can open the file and see what ScriptCommunicator has created.
by the way, I have discovered a bug. If you load a configuration then the min. version is not loaded correctly. You always have correct it in the SCE file dialog.
Last edit: Stefan Zieker 2018-10-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-10-25
Stefan,
I tried your generated SCEZ file and get the same error.
I can execute your SCEZ file. This is really weird. What windows do you use? Can you load the user interface file manually (just uncomment loadUserInterfaceFile).
Regards,
Stefan
Last edit: Stefan Zieker 2018-10-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know what the problem is. The temp path contains a dot (david.adams, I can see it in the error message box). Therefore ScriptCommunicator cannot find you user interface automatically. I will fix this and create a new release this weekend.
Thx a lot for your posts and your time.
Do you need a prerelease?
Regards,
Stefan
Last edit: Stefan Zieker 2018-10-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-10-26
Stefan,
I can wait until next week for the released version.
Thanks for your support on this.
Regards
Dave
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Not sure if this is a bug but I' think I've followed the instructions. when I create a SCEZ I get error when I try running it:
ReferenceError: Can't Find variable: UI_serialPortInfoListBox.
The SCEZ only comprise of a script and GUI file, so is veryu basic and I don't get any errors if I run the same script direct from Script Communicator.
Any ideas on what I'm doing wrong?
Thanks
Dave Adams
Hi Dave,
could you upload your SCEZ-file and your SCEZ File Dialog configuration file please? I will have a look at it.
Best regards,
Stefan
Stefan,
Thanks for quick response, please find attached files.
Regards
Dave
Hi Dave,
the problem is that your UI file and your script file have not the same name and therefore ScriptCommunictor loads the UI file not autmatically for you. You have two possibilites:
- rename your scipt to Remote_Control.js
- load your UI file manually with scriptThread.loadUserInterfaceFile
I think I should add this to the manual.
Best regards,
Stefan
Last edit: Stefan Zieker 2018-10-19
Stefan,
Thanks for the solutions. I tried re-naming the script as suggestion but now I get the following error (See screenshot attached). Seems strange as the latest version is 5.08?
Regards
Dave
Hi Dave,
did you change the config file or the script which you uploaded here? Because I created a SCEZ file with your uploaded files and everything worked fine. Can you reupload your currents file please?
And yes the latest version is 5.08.
Best regards,
Stefan
Last edit: Stefan Zieker 2018-10-24
Stefan,
Yes I changed the name then re-created the config. I've attached the script, UI, Config file and my generated SCEZ file.
Think I've spotted the problem, the config file shows, minSCVersion="8.8".
Problem is if I change this manually to 5.8 and re-generate the SCEZ file, it changes back to 8.8.
Regards
Dave
Hi Dave,
you have set the wrong version in the Dialog (see image) and if you want ScriptCommunicator to load automatically you UI file then your ui file must reside in the same folder (see image).
Best regards,
Stefan
Stefan,
Finally managed to change it in the config file, but now I get the original error even with the both file named as Remote_Control
I've also tried manually loading the UI in the script and get the same error.
ReferenceError: Can't Find variable: UI_serialPortInfoListBox
It opens and runs from scriptCommunicator without a problem.
Regards
Dave
Hi Dave,
can you upload a screenshot of your SCE file dialog please?
Regards,
Stefan
Stefan,
screenshots attached of dialog and of error message and generated file location.
Regards
Dave
Hi Dave,
your settings are correct now . Can you upload your current generated SCEZ file please and can you execute the SCEZ file from the attachment?
I can create and execute the SCEZ file (attachment).
PS: If you change the file-ending from scez to zip then you can open the file and see what ScriptCommunicator has created.
Regards,
Stefan
Last edit: Stefan Zieker 2018-10-25
by the way, I have discovered a bug. If you load a configuration then the min. version is not loaded correctly. You always have correct it in the SCE file dialog.
Last edit: Stefan Zieker 2018-10-25
Stefan,
I tried your generated SCEZ file and get the same error.
Attached is my generated SCEZ file.
Regards
Dave
Hi Dave,
I can execute your SCEZ file. This is really weird. What windows do you use? Can you load the user interface file manually (just uncomment loadUserInterfaceFile).
Regards,
Stefan
Last edit: Stefan Zieker 2018-10-25
Hi Dave,
I know what the problem is. The temp path contains a dot (david.adams, I can see it in the error message box). Therefore ScriptCommunicator cannot find you user interface automatically. I will fix this and create a new release this weekend.
Thx a lot for your posts and your time.
Do you need a prerelease?
Regards,
Stefan
Last edit: Stefan Zieker 2018-10-25
Stefan,
I can wait until next week for the released version.
Thanks for your support on this.
Regards
Dave
Hi Dave,
I have created a new release (5.10). Thx again for your bug report and your time.
Regards,
Stefan