Reputation: 58
Have been given an HTML Application .HTA file, but it always opens to the upper left.
1) What can I add to the script so it opens at far right?
2) Can I force it to open in Display 2 (which is to the right of Display 1) instead of Display 1?
Upvotes: 1
Views: 927
Reputation: 74
If you have the first monitor on the right, just replace
window.moveTo(screen.width+2), (screen.height+2);
With:
window.moveTo(-screen.width), (screen.height);
Upvotes: 0
Reputation: 58
window.moveTo(screen.width+2), (screen.height+2);
</script>
inserted after
<script language="JavaScript">
moved the HTA to appear just a skosh past the left edge of Display 2 (assuming Display 1 is to the left of Display 2). Problem solved!
Upvotes: 2