@CatABC
No problem! :-) We are all here to help each other. :-) I'm glad it worked!
Posts made by Oli Ullmann
-
RE: How to set the text color of Combobox?
-
RE: Simple Copy Protection MacOS Issue
@Adam_G
Here is my project if you would like to take a look at it: -
RE: Simple Copy Protection MacOS Issue
@Adam_G
Ok, I took the time to create and compile a project based on the Simple Copy Protection demo.Everything works fine for me in the compiled plug-in. The “RegistrationInfo.js” file is also written without any problems.
I didn't have to change anything in the HISE settings or set any flags or anything similar.
Of course, I had to include the “Serials.js” in my HISE project.
And I had to create a variable in the “Serials.js” to which the serial numbers are assigned. As follows:
const serials = { “Data": [ “RURU-713P-63DR-7IJ4”, “QFS6-2FB5-CL8M-P4MU”, “E38Y-67M1-RUR4-FAT5”, ... ] }
-
RE: Simple Copy Protection MacOS Issue
@Adam_G
Can you please post a snippet of the corresponding code? -
RE: Simple Copy Protection MacOS Issue
@Adam_G
Ok, I don't quite understand you yet.Are you having problems writing the file from HISE? So Engine.dumpAsJSON(data, “../RegistrationInfo.js”); does not work? This has nothing to do with packages.
If you are inside HISE, the file should be created in the HISE project folder. If you are in the compiled plug-in, the file should be written here:
user/library/application support/company name/productAttention: The file is written to the USER library folder and not to the general library folder! Maybe you are looking in the wrong folder?
-
RE: How to set the text color of Combobox?
@CatABC
Here is a snippet where I did everything via LookAndFeel. :-)HiseSnippet 1079.3ocuV0uahbCD2aR1qGa+5No9.3xebhzRQPH4BmNU0KeQOTyGnC5oJEEcxXOv5FiMZWSHnpH0mj9n0mg9FzNdWVfzPSHn1xej346edlYmwMiLbHN1DQ7BZOd.P79D+Vi01vCBYRMowgDuOy+DVrEhnor1e7.VbLHHddq+8NFd41fj76O9t8YJllCyXQHu2H4vwx9R6LtMeyOHUp5LAzV1eNs29MM3F8AFkYHhm08KSFv3Wx5AmxbpslO4sr3Ph2W4WEDaUqFamsqVkW6U036xY0.dkN6VdKVWQ0ZfniX6c1lQ7dxQBo0D0xxrPL5z8MhwsBMizoA38xXYGE3HpPZgQNkM4fPoRzLK4DSHd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XGXR2J4u7zdiFO
-
RE: How to set the text color of Combobox?
@CatABC
You can do it with LookAndFeel.Here's a snippet. :-)
HiseSnippet 973.3ocsVssahbCF1CjYUY5ock165MS4hUjJDBBjMrJppaBIzE0PBpPW06VY77OLt3wFMimPPU4UoOZ8YnuAs+dFNVnYYQpbQh+O4uO6+Cd5EoXPbrJhX4LX1DfX8E18mI0AsBnbIoyUDquxtKMVCQtYptb1DZbL3Qrrx+iFEVENhj96u9gKoBpjAqTQHuWwYvM7Ptdk1du8m3BQapGLfGtl2MdaGlR1RITIHexaWkLgxFSGA2RMtkyl7NZb.w56rqCdmzrI8zF0qyZ9llryXzl.q1vypdB02qdSvanWiSaPIVO6ZOtVE0WS0PLtoWp7l0OPMUlAv64w7gBvHTizGQNSMoU.W30awkSLgXcTuUWU4ytpdocWtGeo9UWYOO0f6pHV+RyJ2SQoZeBTxZMJcTFkdgceVDehdkECe9b6NRLC5Swby5TIyWRtuIucKE5gTWIjNFZGgBKinzqqVsrK9miO2wAyOwZWA0286cWDBKBvSxMJFUbiRM9BoWa.DkV4dKU3P0kpGpsVPi.MpdhRhBkJtzihlnVJUIFzasuH3Fmv+UIBFwMklsSjLMWIKUzKhNsmZRxjtfLoiFBKV10eg0QkcUC+sic9cmB2SiboHcP4JTj+m6TvovnJ9Xc4EBQorZv3JCEXAHhFZJ1PXi1kFmFv0PlQCrWH3ijf2.3AcIy1pwEkcokcKxvyXD3YNaHJb+Ty73Ab1Xv6XmBHe1A1K29cB9PQxBi6O3OtA9uiOJ.CKPCdtu5Ute6dwpYfPnl9eRKDoCfUOd74KRRtJ4sJMbmrTZdx4QG2+sIe+cZyTYEoDBHZmlMiZhdp.KISBGBQkcumZtaW3H1ZsY+5y1u9UVVg9ZNpjcjb8cSf4xsUBOSenY81c2j4cJl974LDcUm1k+74c4KZTHbOSS9x9FR5QX8IyjeoyUTMcwlg6Kh0DHRyMGIqqf6wwzYiPJXeEDOVqlj567VT7XumP+.wx15OQPmYV7G3hPZpt73RrhNDw6qsuSBNClpbFDDA.9hvVCxvQnJuDAUu4bUyKNyMfIuMFlYFXIi45Yqet+DF1V8IG1tuT7E183ZVvt4XtcvQLk7+AGm+D0WZesuOvzqH3Q1s+0C88nOB7+rJQyki5R0QbSJ+1jv93TAFfnKkfH1TFjyTZmIW0HatA5CRuTg+F+M2XMir0bi0VXDKlXQpOvxZHLOB9YoZPNIS+HgB3Wqfxta0Cf0g3axefw1bq1JvSNz.qenA13PC7zCMvWenAd1gFXyOdflOY5hDsJLqsgP5165zYVVVWKoXEXZ0J4e.LmIClB
If you want to change the text color of the combo box itself, you can define this in the properties under “textColour”. Here is a screenshot:
-
RE: Simple Copy Protection MacOS Issue
@Adam_G
Did you use FileSystem.AppData? You should actually be able to write the data with this. -
RE: File.startAsProcess
@d-healey
Stupid mistake! I was referring to the zip file in startAsProcess(“”) and not the pkg file.
So the installer was not copied as I thought, but it was unpacked again.Thank you very much, David. The correspondence with you helped me to find the error.
-
RE: File.startAsProcess
@d-healey
Yes, there must be a different problem!Nevertheless, thank you very much for your help David!
-
RE: File.startAsProcess
I used the time to try this out in an empty project:
const dlfolder = FileSystem.getFolder(FileSystem.Downloads); const f = dlfolder.getChildFile("QUADRIUM_0_9_Beta_r0002.pkg"); if(f.isFile()) { f.startAsProcess(""); }
It works! So there must be another problem in my code.
const dlfolder = FileSystem.getFolder(FileSystem.Downloads); -
RE: File.startAsProcess
@d-healey
Thank you very much David! As always, you are a great help! -
RE: File.startAsProcess
@d-healey
Unfortunately, that doesn't work yet either. I have checked with “which open” where the open program is located and it is also located at the path you specified.I have also tried this variant, but it still does not work.
inline function installPlugIns() { local installerApp = downloadsFolder.getChildFile(fileNames[0]); local openCommand = FileSystem.fromAbsolutePath("/usr/bin/open"); openCommand.startAsProcess(installerApp.toString(0)); }
I also used if(openCommand.isFile()) to check whether the file really exists.
-
RE: File.startAsProcess
@d-healey
It says "zsh: command not found" so I guess it's not bash. But to be honest, I'm not really familiar with it. -
RE: File.startAsProcess
@d-healey
I work on the Mac and use the build in terminal. -
RE: File.startAsProcess
@d-healey
If I just type "QUADRIUM_0_9_Beta_r0002.pkg" it says "command not found".
Maybe because it is a pkg file?
And if so is there a way to start/open pkg files from within HISE? -
RE: File.startAsProcess
@d-healey
When I use "open QUADRIUM_0_9_Beta_r0002.pkg" in the terminal it opens the application.When I use "open -a" it says it is unable to find application. Maybe because it is a pkg file?
-
RE: File.startAsProcess
@d-healey
I have added this to my script:installerApp.setExecutePermission(true);
Still the same behavior...
-
File.startAsProcess
Hello to all,
how do I use File.startAsProcess()? If I give an empty string as a parameter (“”) the file is simply copied and the folder containing the file is opened. But I want it to be executed.
@d-healey I think you had implemented the function. Do you have a tip here?
This is my code:
inline function installPlugIns() { local installerApp = downloadsFolder.getChildFile(fileNames[0]); installerApp.startAsProcess(""); }
Thank you very much
Oli