0

I'm making simple game for my friend. We are always making strange scrips and other stuff. I have made script in vbs that calls msgbox every 10 seconds. It also doubles every time. Only issue is that the box will always be in same place and that makes it way too easy. I tried to look for answer to spawn it in random position, but i didn't find anything. Only one that i found, was someone making some kind of malicious software. Could someone help?

  • Does this answer your question? [MSGBOX position in WSH/VBS](https://stackoverflow.com/questions/2990022/msgbox-position-in-wsh-vbs) – user692942 Mar 24 '22 at 10:55
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Mar 24 '22 at 12:03
  • You could write an HTA that uses a bit of VBS and HTML to position an element anywhere on the screen. See this [example](https://stackoverflow.com/a/71089833/15764378) for inspiration. That example uses JScript, but it could have been done just as easily in VBScript. – LesFerch Mar 24 '22 at 13:33
  • Does this answer your question? [Adding a GUI to VBScript](https://stackoverflow.com/q/16052534) – user692942 Mar 24 '22 at 15:36

0 Answers0