- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I was hoping that someone can help me with this:
I have some macros that are running javascript or VBS.
They can be lunch from a regular MAC file like any other macro using a link like this:
pmillhelp url fille:///C:\PM_Macro\test\example.html
All macros look pretty much the same. Something like this:
html>
<head>
<script language = "javascript">
var PowerMill = top.external;
function apply_click() {
PowerMill.Execute("Do some work",1);
}
</script>
</head>
<body>
<form>
<input type = 'button' name = 'button' value = 'apply' OnClick = 'apply_click();'/>
</form>
</body>
</html>
My problem is that they all need a button to lunch the script, and I can't figure out how do I create something that runs just by lunching the MAC file, which contains the link to that script. In other words, how can I eliminate the button from my programs?
I hope I am explaining my problem clearly enough.
Thank you for your help.
Solved! Go to Solution.