Jump to content

Multiple MessageBoxes at one time


Recommended Posts

Hi. This is my first post on this forum. In my script I'm trying to spawn 5 MessageBoxes at one time, but I don't know how. I made a While loop which checks if variable is lesser than 5, adds 1 to this variable, and then spawns one MessageBox. Everything works fine, but next Boxes appear only after pressing OK button on active MessageBox. I would like these MessageBoxes to spawn cascadely at one time, without waiting for the first one to get closed. Can anyone of you help me with this problem?

Link to comment
Share on other sites

  • Moderators

micechal,

Welcome to the AutoIt forum. :)

MsgBoxes are modal - which means you can only ever have one at a time because, as you have discovered, the script is paused while a MsgBox is shown. :(

Why do you want these cascading dialogs? If it is to show several pieces of information at once, you might like to look at the Notify UDF in my sig as that will let you do that. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Melba23, thanks for reply!

It's nothing very much complicated, just a prank for a colleague, you know what I mean :D I've found ExtMsgBox UDF, but I don't know how do I install a UDF. I think that I have to copy the script to SciTE, and then save it to the include directory(as I've read somewhere). But how do I use it? Do i have to include all the code in any of my scripts?

Link to comment
Share on other sites

  • Moderators

micechal,

just a prank for a colleague

Please note that we generally regard "prank" scripts as malware and do not approve of them - so please be careful about what you ask about in future. :naughty:

As to using UDFs, I suggest a quick read of the Adding UDFs to AutoIt and SciTE tutorial in the Wiki to begin with. Basically you need to save the complete UDF script and then use an #include line in your script to get it incorporated - that way you do not need to physically add the code to your script. Ask again after you have read the Wiki tutorial if you still have questions. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Shaggi, thanks for reply. Your code looks nice, I'll try it tomorrow. I'm going sleep now. It's UDF, right? I install it the same way Melba23 said?

Melba23, thanks for reply. Look, it isn't

format c:/
, just a few popups :) Thanks for help with UDF. I'll try to install yours ExtMsgBox tomorrow. Is it able to display multiple Boxes at one time? This is my last post to 9:59 tomorrow. I will be propably talking with you by editing this post :D (mine brain's cool idea).
Link to comment
Share on other sites

  • Moderators

micechal,

I realise that it is just a few pop-ups - but I was pointing out the policy of this forum towards "prank" scripts in general. We have Forum Rules and we enforce them. :)

shaggi,

Sorry, nothing personal but your code has been removed - the reason should be obvious. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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...