Jadog Posted December 9, 2011 Share Posted December 9, 2011 I would like the autoit script to exit if I get a "Formula Error" window. I've attempted the following but it doesn't close the script when the error is present. If WinExists("Formula Error","") Then MsgBox(0, "Please correct the Excel Formula Error before running this import!") Exit EndIf Any ideas what I'm doing wrong? Link to comment Share on other sites More sharing options...
rcmaehl Posted December 11, 2011 Share Posted December 11, 2011 Can you post you're entire script? My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 11, 2011 Moderators Share Posted December 11, 2011 Jadog,Perhaps the "Formula Error" dialog title is not visible to AutoIt. Use the Window Info tool to get some more detail about the dialog - you might well be to identify it using other identifiers. Post what you get here and we can offer some other options. 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...
Moderators JLogan3o13 Posted January 13, 2012 Moderators Share Posted January 13, 2012 (edited) Jadog, are you mixing up your posts?? This example looks like it belongs in the thread you have going over in the GUI Help Forum:JLogan3o13He was - I have moved it for him. M23 Edited January 14, 2012 by Melba23 Preceding post moved "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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