Mumms 0 Report post Posted July 5, 2009 (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 July 5, 2009 by Mumms Share this post Link to post Share on other sites
daslick 1 Report post Posted July 5, 2009 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
Mumms 0 Report post Posted July 5, 2009 Maybe A Little Code To Show Me, Or Explaining, Im a Noob = p Share this post Link to post Share on other sites
daslick 1 Report post Posted July 5, 2009 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
Mumms 0 Report post Posted July 6, 2009 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