HELP: VBS Message Box with Random Positions RRS feed

  • Question

  • Hello and thank you for clicking! 
    Right now, I am working on a simple code project.
    It is a spoof alert that creates a message box (the reason behind it is classified). So far, I have created these lines of code for a .vbs file: 
    dim ti 
    WScript.Sleep 200 
    x=msgbox("Message", 5+48, "Title") 
    Loop while (timer-ti)<5*60 '20*60 seconds 

    This will create a message box that pops up every 2 seconds with two options, retry, and cancel for 5 minutes. But. the message boxes pop up in only one spot of the screen, making it possible to easily X them all out. Is it possible to add to the code and make the boxes pop up in random positions all over the screen? Any clue how to do that? Also, please share any ideas to make the message box more annoying? Thanks!
    • Moved by Bill_Stewart Wednesday, September 4, 2019 8:51 PM No - we won't help you write malware
    Tuesday, April 9, 2019 2:26 AM

All replies

  • The answer to you question is no.  The reason why it cannot be done is classified for all non-certified techs.

    You should not be using VBScript for anything as it is obsolete and will soon be removed from Windows.  The current scripting environment is PowerShell.

    To do what you ask will require PowerShell and a custom form.  It cannot be done with VBScript.


    Tuesday, April 9, 2019 3:07 AM