Jump to content

Multi MsgBox PopUp


Recommended Posts

My Brother Keeps On Making Me Mad So I Want To freak him out a little bit.

I Want to have a continuous flow of msgBox coming up saying, Downloading Porn, Here is my code:

BlockInput(1)
MsgBox(16, "Warning", "Downloading Porn! Do Not Exit")
MsgBox(16, "Warning", "Downloading Porn! Do Not Exit")
;and on and on
MsgBox(16, "Success", "Download Complete! You May Now Exit")
Beep(500, 3000)
Sleep(5000)
BlockInput(0)


$var = WinList ()
For $i = 1 to $var[0][0]
  If BitAnd (WinGetState ($var[$i][1]), 2) And $var[$i][0] <> "" Then WinClose ($var[$i][1], "")
Next

I want to make those boxes keep on coming up, and in different places if possible.... Can This Be Done?

Edited by Mumms
Link to comment
Share on other sites

Okay. I'm not sure how many times/how long you want it to give the message... but try this out. (I haven't tested it)

if @Compiled = 0 then Exit MsgBox(0,'Error', 'Script must be compiled and run!')
If $CmdLine[1] = 'messagebox' Then
    While 1
        MsgBox(16, "Warning", "Downloading Porn! Do Not Exit")
    WEnd
EndIf
BlockInput(1)
For $y = 1 to 50
    $var = WinList ()
    For $i = 1 to $var[0][0]
        If BitAnd (WinGetState ($var[$i][1]), 2) And $var[$i][0] <> "" Then WinClose ($var[$i][1], "")
    Next
    Run(@AutoItExe & ' messagebox')
Next
MsgBox(16, "Success", "Download Complete! You May Now Exit")
BlockInput(0)
Link to comment
Share on other sites

Okay. I'm not sure how many times/how long you want it to give the message... but try this out. (I haven't tested it)

if @Compiled = 0 then Exit MsgBox(0,'Error', 'Script must be compiled and run!')
If $CmdLine[1] = 'messagebox' Then
    While 1
        MsgBox(16, "Warning", "Downloading Porn! Do Not Exit")
    WEnd
EndIf
BlockInput(1)
For $y = 1 to 50
    $var = WinList ()
    For $i = 1 to $var[0][0]
        If BitAnd (WinGetState ($var[$i][1]), 2) And $var[$i][0] <> "" Then WinClose ($var[$i][1], "")
    Next
    Run(@AutoItExe & ' messagebox')
Next
MsgBox(16, "Success", "Download Complete! You May Now Exit")
BlockInput(0)
So Lets say i only want it to go like 10 times, what do i put?
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...