Write User Name on Plugins Registration/Authorization
-
-
const var Button1 = Content.getComponent("Button1"); const var Label1 = Content.getComponent("Label1"); const var Input = Content.getComponent("Input"); inline function onButton1Control(component, value) { local input = Input.getValue(); Label1.set("text", input); local data = { "Username": input }; Engine.dumpAsJSON(data,"../userInfo.js"); }; Content.getComponent("Button1").setControlCallback(onButton1Control);
This will save UserName as External JS file. Hope this will give a good starting point.
-
@Tania-Ghosh Sorry but everytime it is not loading the entered UserName. It only loads the Saved Projects UserNames.
-
@Tania-Ghosh said in Write User Name on Plugins Registration/Authorization:
Engine.dumpAsJSON(data,"../userInfo.js");
This method is deprecated and it's recommended to use the
File
API for this (you also get optional encryption for sensitive user data). -
@Christoph-Hart Sir, How can I do this? Very simple thing I want. User will put his her name via Label. Whenever plugins will be loaded it will Display the Username.
Any help is appreciated. :)
-
@Christoph-Hart @Natan @Tania-Ghosh @d-healey
HiseSnippet 1157.3ocsV17aaaCE.mxIJK1atnEa2KQNL3.j4Xm1tMfsg3ZG6MilO7pyR2gMTPK8rEQjIEjnhqQQwtr+v1eQC63.1AuGojhjSbBZ8vRtX99f7Ge58AGDJcfnHYHwp74yC.h0mXObtP40wiwEj9GYDDOZJWcN7FEo87.VTD3Rrr1360VXUdSh4u+5v1LelvAxEQHWH4Nvwbz6boCZ8BtueOlKbNeZAqeZq9NRQGouLFoYC6Fj.lykrIvoLsYkrIVa00kqjgCULEDg1zV5NenmblHw9K3Q7Q9fdQSxPbiRDS53w8cGjcSiHDqMGjeu2H4d+Y1mvc4WKO+9+PiBZtGEiAVkVFoMWBol2ER8j9t5M3Nvyp.dalf2irG5DxCT4Zzr8w18EJHbLCC6EwJwVRoOcC6NRzBgp9T1kPuPbw0dT6YMZrG8fFM18apVAC8QJ5UrPZeQPrh9czLGm.pNxoARAtn1NFs6rrGmEqtOWRTeCeRxotSeRTa7Q+OW3yE.cbrvQwkBpTjXf14PoeMmLO2C2b+XX2pUda0Jk6w8g5yB4JXnJjKlTaGbGo6uO8GjyntRZepQI0Eb7Yg.MHTF.gzHSz6P8A+NC.2Oi0ifLP5v78GgYs0tAfI2C7fOYNsuKvn7H5UP3bZaVD2g1U+aEVMPm4ABJiFGgXjvlGOZeObk.qBnXDaFV7PGAzHcRFFHxh9GyFA900GxqP+Pbo55lbyYWAtTtdyOhGBNXN675z946muDqHcoZ5ovx7D3GOA8TaQj4DLwOkLkvYbkG8TXFsW+i6RilGofoGV7a0oREbln1tUdakxUdWkaoZ73UpKM14CgqTst6Q384XMQ7zQPXVJQlgXI0x0ra89Uy5jjDTvPonufqNK.RWmWU2bEU0jzrH7W+T+iXJltPOU1.Shmhqww5H3JrqYRYeY6ifnKUx.j5qS8HVaqLZql0TfI.eBGO5ssM+tI4MEaCOu3hYbWk20BZ8as7.9DuBMn4sFMIqMb4sVrXQhT7qZtz81aue2Ht.TkWFJSBoApOx1z0nHSGzJmoV+XqTlrs1whPx3w15w25bynoHg+h+CLBU5AT3g8RlWr+RjU4tHaa6jpmhn8jBn8G+5+Mz911Ot.Z3HL.y7XljKqMJRX0DBePJgsiUJoHEwjNIEP7gwEiduJGwWPJh3meKD+6EOewMQ7OWbwhk+9dfVLJ4exHO2XTfwXc2j9hAg.15SeU.g9RomSdLvBEZQ7nSjSw6FKDY0pD41izvAqR2XelZ4os5mUjp.KmWZrldzkHhqlW7YGe.ifarxQvqrX88D2GYOfqb7VMukVAuXQ++27l9flp1cGOFazmC6l1894080Ke.n7RYrBG1dBCm4hIs1mFOcHl+3.HIBr4TjN4rjt2Qx5F505HyPP3ZVfkRKRU1Tu1JUYyLkjoLmP4qcRZzqexz1FIHSByqEKaehdMsIwz7G8ytQ8FjoXF5qcbzghu.Ye09bvZ3ySVCed5Z3yyVCe9x0vmuZM74quWezMGddrRNMoLAELnqYJnkUWS2CSFI4eAnoowwH
Help me please.
-
@DabDab You need to use the File and FileSystem APIs. There is a lot of info in the documentation and you'll find several example by searching the forum.
-
@d-healey Sorry.. I tried.. Filesystem very confusing to me. No luck.
-
@DabDab said in Write User Name on Plugins Registration/Authorization:
I tried.. Filesystem very confusing to me
Did you find some examples on the forum to use as a starting point?
-
@d-healey I am bit confused with FileSystem function and FILE function that you and @Christoph-Hart advised me to do. Actually in Doc there is no proper Example. as a beginner an Example is very essential.
-
@DabDab said in Write User Name on Plugins Registration/Authorization:
Actually in Doc there is no proper Example. as a beginner an Example is very essential.
Did you find some examples on the forum to use as a starting point?
-
@d-healey No Sir, I got your point. But unfortunately i am struggling how to declare File and Filesystem together.
-
-
-
@d-healey Can you please cover this topic in Your Youtube Tutorials? This will help us the most. File and FileSystem very confusing. And Doc is very very brief to understand.
-
Can you please cover this topic in Your Youtube Tutorials?
Yes, it's a very good idea actually. I might do this for next month's Patreon video.
If you keep searching you'll find this - https://forum.hise.audio/topic/2807/new-api-server-and-filesystem
This post also contains some good info - https://forum.hise.audio/topic/3355/loadencryptedobject-cant-manage-to-un-encrypt-file-data/3
-
@d-healey Why Patreon Sir? It will be good if you share your knowledge for non patreon users like me.
-
Why Patreon Sir
That's what my Patrons pay me to do. It wouldn't be fair to them to take their money and not give them what I've said I'd give them in return. Also I have to eat.
Like most of my other videos it will first be published on Patreon and some time later go public on YouTube and Odysee.
-
@d-healey to be honest we are ( musicians) very much suffering after the covid crisis. My arranging, music productions all are suffering. That's why i came to plugins development field. I hope you got my point.
-
Also I have to eat.
Sure.. One day i will definitely pay your fees.
Like most of my other videos it will first be published on Patreon and some time later go public on YouTube
That's a big relief to me.