Trying to trigger to run a macro I've already created on the browser

Hi,

I am not familiar to ui.vision. I created a macro. I want to trigger a macro inside a web page with jquery. I saw embedded examples but I just want to run a macro just one button click in a web page. Is there any way to do it?

Thank you for your answer David.
I couldn’t see an “Allow Web Access” option under Security tab.


I solved by generating “Auto Start HTML Page” under Settings>API. I uploaded it into my remote website. I am triggering the macro inside my webpage with jquery.

	$(document).on('click', '.btn', function () {
			var var1= "var1";
			window.open("https://********.com/ui.vision.html?direct=1&macro=my_macro_name&cmd_var1="+var1, "_blank");
	});