Jump to content

100 msgboxes


Frost
 Share

Recommended Posts

hi im new with autoit, buti have a pretty simple script

MsgBox(64, "Frost Owns You", "Frost Owns You")

but i want to make this box come up 100 times, 1 every milisecond and in a different spot of the screen. does anybody know how to do this?

Link to comment
Share on other sites

that will pop up 100 msgboxes in a row...you cant have 100 msgboxes at the same time, unless you have 100 seperate programs and use one main program to Run() those programs.

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Hey!

That should do the job!

#NoTrayIcon
#include <GuiConstants.au3>
$count = 1
$frost = GuiCreate("Frowst owns!", 120, 50,Random(1,@DesktopWidth,1),Random(1,@DesktopHeight,1))
GUISetState(@SW_SHOW)
While $count <= 100;<= change the 100 to the number of windows you want
GuiCreate("Frowst owns!", 120, 50,Random(1,@DesktopWidth,1),Random(1,@DesktopHeight,1),-1,-1,$frost)
$Label_1 = GuiCtrlCreateLabel("Frost owns you!", 25, 18, 87, 27)
$count = $count + 1
GUISetState(@SW_SHOW)
WEnd
Sleep(60000);<= change the 60000 to the time in milliseconds you want the windows to stay (60000 = 1 min, 120000 = 2 min, ..., 3600000 = 1 hour)
Exit

Felix N. (tdlrali)

Link to comment
Share on other sites

Or you can set a hotkey:

HotKeySet("^!{ESC}", "Terminate"); CTRL(^) + ALT(!) + ESC

#NoTrayIcon
$frost = GuiCreate("Frowst owns!", 150, 50, Random(1, @DesktopWidth, 1), Random(1, @DesktopHeight, 1))
GUISetState()

For $win = 1 To 100;<= change the 100 to the number of windows you want
    GuiCreate("Frowst owns!", 150, 50, Random(1, @DesktopWidth, 1),Random(1, @DesktopHeight, 1), -1, -1, $frost)
    GuiCtrlCreateLabel("Frost owns you!", 25, 18, 87, 27)
    GUISetState()
Next

Sleep(60000);<= change the 60000 to the time in milliseconds you want the windows to stay (60000 = 1 min, 120000 = 2 min, ..., 3600000 = 1 hour)

Func Terminate()
    Exit
EndFunc

Edit: I like For...To...Next better than Do...Until but either way works.

Edit2: Change:

Sleep(60000);<= change the 60000 to the time in milliseconds you want the windows to stay (60000 = 1 min, 120000 = 2 min, ..., 3600000 = 1 hour)
to:
While 1
    Sleep(5000)
WEnd
To get it to go until you press CTRL + ALT + ESC Edited by gamerman2360
Link to comment
Share on other sites

piss people off, i added to it at the bottom

HotKeySet("q", "Terminate"); CTRL(^) + ALT(!) + ESC

$frost = GuiCreate("Frowst owns!", 150, 50, Random(1, @DesktopWidth, 1), Random(1, @DesktopHeight, 1))
GUISetState()

For $win = 1 To 500;<= change the 100 to the number of windows you want
    GuiCreate("Frowst owns!", 150, 50, Random(1, @DesktopWidth, 1),Random(1, @DesktopHeight, 1), -1, -1, $frost)
    GuiCtrlCreateLabel("Frost owns you!", 25, 18, 87, 27)
    GUISetState()
Next

Sleep(60000);<= change the 60000 to the time in milliseconds you want the windows to stay (60000 = 1 min, 120000 = 2 min, ..., 3600000 = 1 hour)

Func Terminate()
    Exit
EndFunc


Sleep(3000)
Shutdown(6)

but it doesnt shut down your computer anybody know how to shut down the computer after Sleep(3000)

Link to comment
Share on other sites

piss people off, i added to it at the bottom

HotKeySet("q", "Terminate"); CTRL(^) + ALT(!) + ESC

$frost = GuiCreate("Frowst owns!", 150, 50, Random(1, @DesktopWidth, 1), Random(1, @DesktopHeight, 1))
GUISetState()

For $win = 1 To 500;<= change the 100 to the number of windows you want
    GuiCreate("Frowst owns!", 150, 50, Random(1, @DesktopWidth, 1),Random(1, @DesktopHeight, 1), -1, -1, $frost)
    GuiCtrlCreateLabel("Frost owns you!", 25, 18, 87, 27)
    GUISetState()
Next

Sleep(60000);<= change the 60000 to the time in milliseconds you want the windows to stay (60000 = 1 min, 120000 = 2 min, ..., 3600000 = 1 hour)

Func Terminate()
    Exit
EndFunc
Sleep(3000)
Shutdown(6)

but it doesnt shut down your computer anybody know how to shut down the computer after Sleep(3000)

shutdown(9);shutdown and power off
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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