I have the following code in html prompt that process some xml string and returns to KM.
However, window.KeyboardMaestro.Submit(‘OK’) does not dismiss the html prompt window.
I don’t need to display anything in that html prompt window. Is there way to just dismiss it?
This used to work in earlier KM, but it leaves an empty window in the latest KM.
Thanks!
<script>
function KMInit() {
variable = window.KeyboardMaestro.GetVariable('variable')
// do stuff
window.KeyboardMaestro.SetVariable('variable', variable)
window.KeyboardMaestro.Submit('OK')
}
</script>