@DabDab Thanks bro, I appreciate your help:folded_hands:
Best posts made by xsaad
-
RE: preset browser scroll bar
-
RE: preset text is hidden
@d-healey It seems that GBT T knows nothing :grinning_face_with_smiling_eyes: :grinning_face_with_smiling_eyes: I appreciate your advice. I will start learning from your YouTube channel. Thank you
Latest posts made by xsaad
-
RE: Enter the serial number every time
@bendurso Hi brother I was able to find out the cause of the problem I had to deactivate "saveInPrest" for the submitbutton and it worked for me
I would also like to thank you for your time. I really appreciate your help. Thank you. -
RE: Enter the serial number every time
@bendurso I am using Windows and I have enabled "Use Global App Data Folder" and after searching I found that the file containing the serial number is saved in users/Hp/AppData/brand/plugin but the problem is still with me even though the file is in app data
-
RE: Enter the serial number every time
@bendurso I found that the file is not created when adding the serial number, I tried it on another computer and the file was not created.
-
RE: Enter the serial number every time
@bendurso Ah I understood whether I should create this file myself or it should be created automatically when exporting plugin?
-
RE: Enter the serial number every time
@bendurso Yes The file is within the project files
It contains serial number. -
Enter the serial number every time
Hi, I tried this serial number code that worked well for me, but when I export the plugin, every time I opened the plugin, I was asked to take the serial number. Can anyone help me?
const var serials = { "Data": [ "O83X-AT20-040F-8MJ5", "K0XE-06PP-31T0-5EUM", "8B6P-57Y5-8D1M-NYY7", "6BPO-6YAN-QE85-AH4M", "1HP8-6XKO-K3TS-WU2V", "L0Q5-T56B-7VHW-ED11" ] }; // 2. Main authorization system namespace Authorisation { const var SerialInput = Content.getComponent("SerialInput"); const var Description = Content.getComponent("Description"); const var SerialStateLabel = Content.getComponent("SerialStateLabel"); const var AuthorisationDialogue = Content.getComponent("AuthorisationDialogue"); const var GlobalMute = Synth.getMidiProcessor("GlobalMute"); /** Checks if the serial input is valid and stores the result if successful. */ inline function onSubmitButtonControl(component, value) { if(!value) // Just execute once return; local v = SerialInput.getValue(); Console.print(v); // Checks if it's in the input if(serials.Data.contains(v)) { Console.print("Serial number found"); local data = { "Serial": v }; // Stores the file to the hard drive. In HISE it will be the project folder // but in the compiled plugin it will use the parent directory to the // user preset directory (which is usually the app data folder). Engine.dumpAsJSON(data, "../RegistrationInfo.js"); setValidLicense(true); } else { Console.print("Invalid serial number"); Description.set("text", "Invalid serial number. The number you supplied does not match"); setValidLicense(false); } }; Content.getComponent("SubmitButton").setControlCallback(onSubmitButtonControl); inline function setValidLicense(isValid) { // Do whatever you want to do here. I suggest a MIDI muter... GlobalMute.setAttribute(0, 1 - isValid); if(isValid) { // Change this to any other visual indication... SerialStateLabel.set("bgColour", Colours.greenyellow); AuthorisationDialogue.set("visible", false); } else { SerialStateLabel.set("bgColour", Colours.red); AuthorisationDialogue.set("visible", true); } } inline function checkOnLoad() { // Clear the input SerialInput.set("text", ""); // Load the serial from the stored file local pData = Engine.loadFromJSON("../RegistrationInfo.js"); Console.print("Checking serial"); if(pData) { local v = pData.Serial; Console.print("Restored serial: " + v); if(serials.Data.contains(v)) { setValidLicense(true); return; } } setValidLicense(false); } // Call this on startup checkOnLoad(); } // 3. Optional serial number generator /** This namespace contains the logic to create a new list of serials. Feel free to remove this when not needed. */ namespace SerialGenerator { inline function getNewRandomChar() { // ASCII, fuck yeah! local a = String.fromCharCode(Math.randInt(65, 90)); local b = String.fromCharCode(Math.randInt(48, 57)); return Math.random() > 0.5 ? a : b; } inline function createNewSerial() { local s = ""; s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += "-"; s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += "-"; s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += "-"; s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); s += getNewRandomChar(); return s; } const var NUM_SERIALS = 1000; inline function createNewSerials() { local d = []; d.reserve(NUM_SERIALS); for(i = 0; i < NUM_SERIALS; i++) { d.push(createNewSerial()); } local obj = { "Data": d }; Engine.dumpAsJSON(obj, "../Serials.js"); } // Uncomment this line to regenerate serials. //createNewSerials(); }
-
RE: Slider strips
@ustk The picture was just for clarification. I filled the settings, worked well with me, i saved as xml, but when I come back, don't work with me.
-
RE: Slider strips
@ustk yes the slider image is in the folder (Images)
But I didn't put any script, I just modified these settings. -
Slider strips
Hi everyone, I've added a Slider with 101 strip.
When it is first added, it works normally, but when I get out of Hise and come back, Slider becomes rigid and shows the numbers.
When I exported my vst, I saw the same problem.
Can anyone help me? Thank you.