I'm working on a Photoshop plugin in JavaScript and I would like to be able to get a parameter that I send thanks to a custom url protocol when the user clicks on a button on a web page.
The html file looks like this :
<html>
<body>
Hey, I'm a web page !
<a id="href-custom-protocol" href="my-prot://params">Run Photoshop</a>
<script>
var params = 1;
var linkCustomProtocol = document.getElementById('href-custom-protocol');
var url = "my-prot://" + params;
linkCustomProtocol.setAttribute('href', url);
</script>
</body>
This is my custom url protocol :
reg add HKEY_CLASSES_ROOT\my-prot /t REG_SZ /d "My Description" /f
reg add HKEY_CLASSES_ROOT\my-prot /v "URL Protocol" /t REG_SZ /d "" /f
reg add HKEY_CLASSES_ROOT\my-prot\shell /f
reg add HKEY_CLASSES_ROOT\my-prot\shell\open /f
reg add HKEY_CLASSES_ROOT\my-prot\shell\open\command /t REG_SZ /d c:\Windows\photoshop.exe /f
I thought of going to search in the regedit for the data of the custom url (via the path) but I do not know how to go about it.