I Need a little Help to Add a Mutizer In Serial protection Script
-
-
Here is what I Got So Far
But Have no Idea, How to Stop The timer When the Serial is Valid, And Start Again If It Is Invalid :(HiseSnippet 2168.3oc0YstbabaEdoj1DQEqL1Y5z1ehx+TJWmUj5puLsQ1hxIL0xR0Twoo8GtP6BRhnk.aAvRYVOpieT5iRdTxiPeCbO.XIWrjKkUXl1od8L1D.Gbv24BNWfOUvCIRIW3Uo5YiRHdUtkemQLU+C6ioLu1s7p7K86PGjDSNjmL5TAWQBUTNy6IiRvRIIxqRkk+RMsUpthm46e+EOAGiYgj7o77dImFRdFc.UkO6oG7GowwOEGQNiNvg5cNncHmcHOlmB3ZY+FdI3vKv8HOGqIaIeuJezQQTEWzQgUDoWkUdBOZTm97KYV5eIUROOlnGzzqCvH6zOkGGoQrdVuC6SiiNcr7K8.tbZt1XYq13W3eLMhNY9bsxsMKfx2gq9nxRWG7Z5BuFkBuFkAuJNvaEK7tiemPAMQkuhFaehealhH5hASfKrrz5szudcezgbfDlJX.9BxSEvfIao9dMZbOztMZrwiVeM8e1bSJKLNMhTuVGhfhikAeurlcUvNIUngXAp0QGexqN9aNq8e4nWf98HiSTPOh5ntcAOl50bW2rYKEREVnzleQ8laomVP5g3LfCJQJICAquFCr7RvKffdbppOWPkXsW35q8l0WCAe43vBw1rjTEvjwhI.jC4CR3LXvXwvPiAJE4PKhznnnFXTNGbnoDNX4uw5+L74j32CPxIrDdUPdaATy6kRlKCKk5Ib092ad26hNrOI7BIh1Eo5SPRCLPTiRiJgyMlFgvrHjD7hIRCQv+lFqzaQlFp815lFGft6lVlRYwTFA0MkYBO.lvNomC21eRpRouKyTBdb8vwH8d5yHkrgcyYFQCe5V+2XWBs4lnuNEzBjWSBSUDfkgjbB0eBhJUvJHb5uXdHHMC0dg4FZsh5kZFWer1P+A.SxiIAIBJn9FpWpZ9p.BxUTT0uE9WlQWXzTE.sL6lQKrBG.VOEDnPBLbibpdSQvW7nybEPrzAmSDnt7TVTMWjVbyVQLBNLPJ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1B+bX37Dkh.9e8OmFv.i0wf0uiQFC9GYkVZp3zqKnxsuqvp9m75Q8H1o5.jkyiGcv3bS5tq2c2s2am62bq80FwI.r57j308cJCyUj+SNh7O7cSo5+ailQ0+U2bshUj+B+eV044M.Z3ipSMN1IN+fu07kVmbfNR6O7Wcj12Rl1QSNiz15mpztjuiw7N9c.qUHAR2DQzOSSIV0G5XUukeyl6uyNM1sYyGX3W9B6r09O.Vo4N6WlF3Syz.1ZPMp.XJmxRmmN3Gu3lKf43bM+l6s+96uUyc8nJx.WTde.gOX+sajoNVMCENzskkvl6r216zX666MiMfJOlO.PBVLxZxk3gj1rSM8UM9goxg6pyyI3y7mtBu4dUW8dC4L4FLXfyUDU+HOu28N66HNy6hca+i4QowXUwmrSmXHagoeBS8yewjT0H22w7m863UZf+aHbui+oT3RX43coRvKDA9+13M6UQW229pd4fcE+m9mWzm.s4h8DnqN48pMOO8WNFJepuaw.Wy6T640hDiKn.+1Bthde2Ak7R1PHUH27o7XrXZ0+xEk4kuYx764knudeDsHg9fwm9y7Mp7Oj.rwk3CG.eaen5u+O.tufmpfNJOFCUnCg98ed5.aBY8qb.kmpKttxR5xfsianGqATGBKxL3cvW1hM0iqjsXywK9+jyX.NTveUnssA8UyUMy.xMyTmQU+i0iQM8LsR.6yuQPCuAzH5qBC0AF+bP+T9d1ZA1y1Kvd1YA1ytKvd1aA1y9Kvdt+0tG8+ubPUT7AV+eXhSOxzeUkJGwvfmr4pf2+A7xcZ2J
-
I Got The Silence From @orange , But Have no Idea, How To Do This :(
-
@Natan I wrote serial protection system helps a couple of times before. Just look at the forum. One is here: https://forum.hise.audio/topic/1204/simple-copy-protection-done-right/106
-
@orange said in I Need a little Help to Add a Mutizer In Serial protection Script:
st look at the forum. One is here: https://forum.hise.audio/topic/1204/simple-copy-protection-done-right/106
Thank You Sir, But Could you please Check The Snippet, I Just Need To Know How To Stop The timer, Once The Serial IsValid.
And Start When The Serial Is Wrong :(That Thread Is Just For Bypassing The Global Mute, I Need It To Work Like Timer, 1 Sec Mute Every 10 Seconds
-
@Natan could you not just stopTimer when serial is accepted?
if (serial == true) { timer.stopTimer(); };
-
@ulrik
This thing really Ruined My Day :(HiseSnippet 2168.3oc0YstbabaEdoj1DQEqL1Y5z1ehx+TJWmUj5puLsQ1hxIL0xR0Twoo8GtP6BRhnk.aAvRYVOpieT5iRdTxiPeCbO.XIWrjKkUXl1od8L1D.Gbv24BNWfOUvCIRIW3Uo5YiRHdUtkemQLU+C6ioLu1s7p7K86PGjDSNjmL5TAWQBUTNy6IiRvRIIxqRkk+RMsUpthm46e+EOAGiYgj7o77dImFRdFc.UkO6oG7GowwOEGQNiNvg5cNncHmcHOlmB3ZY+FdI3vKv8HOGqIaIeuJezQQTEWzQgUDoWkUdBOZTm97KYV5eIUROOlnGzzqCvH6zOkGGoQrdVuC6SiiNcr7K8.tbZt1XYq13W3eLMhNY9bsxsMKfx2gq9nxRWG7Z5BuFkBuFkAuJNvaEK7tiemPAMQkuhFaehealhH5hASfKrrz5szudcezgbfDlJX.9BxSEvfIao9dMZbOztMZrwiVeM8e1bSJKLNMhTuVGhfhikAeurlcUvNIUngXAp0QGexqN9aNq8e4nWf98HiSTPOh5ntcAOl50bW2rYKEREVnzleQ8laomVP5g3LfCJQJICAquFCr7RvKffdbppOWPkXsW35q8l0WCAe43vBw1rjTEvjwhI.jC4CR3LXvXwvPiAJE4PKhznnnFXTNGbnoDNX4uw5+L74j32CPxIrDdUPdaATy6kRlKCKk5Ib092ad26hNrOI7BIh1Eo5SPRCLPTiRiJgyMlFgvrHjD7hIRCQv+lFqzaQlFp815lFGft6lVlRYwTFA0MkYBO.lvNomC21eRpRouKyTBdb8vwH8d5yHkrgcyYFQCe5V+2XWBs4lnuNEzBjWSBSUDfkgjbB0eBhJUvJHb5uXdHHMC0dg4FZsh5kZFWer1P+A.SxiIAIBJn9FpWpZ9p.BxUTT0uE9WlQWXzTE.sL6lQKrBG.VOEDnPBLbibpdSQvW7nybEPrzAmSDnt7TVT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HcK+ynpXaX+qAG1B+bX37Dkh.9e8OmFv.i0wf0uiQFC9GYkVZp3zqKnxsuqvp9m75Q8H1o5.jkyiGcv3bS5tq2c2s2am62bq80FwI.r57j308cJCyUj+SNh7O7cSo5+ailQ0+U2bshUj+B+eV044M.Z3ipSMN1IN+fu07kVmbfNR6O7Wcj12Rl1QSNiz15mpztjuiw7N9c.qUHAR2DQzOSSIV0G5XUukeyl6uyNM1sYyGX3W9B6r09O.Vo4N6WlF3Syz.1ZPMp.XJmxRmmN3Gu3lKf43bM+l6s+96uUyc8nJx.WTde.gOX+sajoNVMCENzskkvl6r216zX666MiMfJOlO.PBVLxZxk3gj1rSM8UM9goxg6pyyI3y7mtBu4dUW8dC4L4FLXfyUDU+HOu28N66HNy6hca+i4QowXUwmrSmXHagoeBS8yewjT0H22w7m863UZf+aHbui+oT3RX43coRvKDA9+13M6UQW229pd4fcE+m9mWzm.s4h8DnqN48pMOO8WNFJepuaw.Wy6T640hDiKn.+1Bthde2Ak7R1PHUH27o7XrXZ0+xEk4kuYx764knudeDsHg9fwm9y7Mp7Oj.rwk3CG.eaen5u+O.tufmpfNJOFCUnCg98ed5.aBY8qb.kmpKttxR5xfsianGqATGBKxL3cvW1hM0iqjsXywK9+jyX.NTveUnssA8UyUMy.xMyTmQU+i0iQM8LsR.6yuQPCuAzH5qBC0AF+bP+T9d1ZA1y1Kvd1YA1ytKvd1aA1y9Kvdt+0tG8+ubPUT7AV+eXhSOxzeUkJGwvfmr4pf2+A7xcZ2J
No idea, How to stop It :(
-
@Natan you have this in your code, can't you just set the stopTimer(); there?
// 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); timer.stopTimer(); <===== }
-
@ulrik I'll Check This Right Now :)
-
Okey, I Connected A TImer, Which Turns Mutes The Gain Modules For 1 Second, In A Loop Of Every 10 Secs.
And once The Serial Input Is Correct, It Stops The Timer And Bypasses The Gain Module.Can Someone Take A Look And Confirm That This Is Safe
HiseSnippet 2295.3oc0YstcaabDFPRvQTwJwNmdZ+6V9mR45.Qpq9xoMxVTNgoVWhnhSSxObAAVRtQf6xtXAkX8Q83Gk9n3Gk7Hz2.2Y2EfXAHnLixw4TSerMwtyN62L6reyfgmvY93nHF2xtxYiGhsrusS6wTQ+866QnVsZZY+QNmQFf4VOc7PunHbfks8heobR6JKYo97e+hm5E5Q8wYCYY8BFwG+bx.hHazS16uQBCelW.Vpxrw2ZuV9L59rPVL.jEcpaMzy+bud3i7jhsfik8sNHfHX71BOANxxdomxBF2tO6BpV9WPhHcBwxGZX0FTjd3mwBCjHVNp098IgAmjZvQVfVNIy7WTa9+NmCIAjIim4FtiZBT1JL8G1KbcvqgI7pO+vy1.dKog2ccZ6yICEYyHw1G6zhJv7tdvQfIrzxZsf2m5f1mAhPEtC7NG+LN7vjkTam50uOZ650W6wqth7OquNg5GFGfqUsMlS7Bib+onp5YgyoHAZjGG07fCO9kG9sm05GN3TzeAohZb6gEGzsK1WTqp47pEarT7.VKZ.w2C7YvZSwFr58YCFxnvCfBLkpZJ333dHFEVjfGiSFKulUgqf.GP6QnXWeNFNTTCdbmeRBMoplHnaDVn9x9dggcfvtZcio9BBiVasUW4UqtRER2ZLJ78JxGpn16tfOQt4UpXnGgGWqoZMpqcl5omXCtQPDgzV4rvZMRDvvKIgxSDBNoSr.WK2LxKb2G84MR0KnkHVH1cHmHcUMPsw9JWTkqf+hAzkCuI9pqAtuS7V+Ff2Y.15FnEs5JWU37nDfk+OTfUHBXHvnmDK5y3jHO44k5zBAexBGzgusnCiEyLLyPFElxqgl3H0kHhxONq.0IxThFz5WwL7buN3v2APxDrDckydaBRy5EimoBKU5IZU+uqeu6g1uO1+7HDoKRzGihTv.QTNMRDrugj.jGM.EAwD3HkPv+GGJjKIJ1WxD0MNzEcu00JkPCgadn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