micechal Posted July 31, 2012 Share Posted July 31, 2012 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 More sharing options...
Moderators Melba23 Posted July 31, 2012 Moderators Share Posted July 31, 2012 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
micechal Posted July 31, 2012 Author Share Posted July 31, 2012 Melba23, thanks for reply! It's nothing very much complicated, just a prank for a colleague, you know what I mean 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 More sharing options...
Shaggi Posted July 31, 2012 Share Posted July 31, 2012 (edited) You can use this - you should keep the return from threadedmsgbox for checking the return value and remember to endmsgbox it! <snip> Edited August 1, 2012 by Melba23 Code removed Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 31, 2012 Moderators Share Posted July 31, 2012 micechal,just a prank for a colleaguePlease 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. 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
micechal Posted July 31, 2012 Author Share Posted July 31, 2012 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 (mine brain's cool idea). Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 1, 2012 Moderators Share Posted August 1, 2012 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Shaggi Posted August 3, 2012 Share Posted August 3, 2012 Np melba. Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now