Sign in to follow this  
Followers 0
Mumms

Multi MsgBox PopUp

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Yes, it can.

Someone else may have an easier way, but one way would be to have the program start itself with arguments that make it just make the message box. One process per message box.

Share this post


Link to post
Share on other sites

Maybe A Little Code To Show Me, Or Explaining, Im a Noob = p

Share this post


Link to post
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)

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Bump

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0