How to close a message box that is called from another procedure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grego9
    New Member
    • Feb 2007
    • 63

    #1

    How to close a message box that is called from another procedure

    I simply want to close a message box that is called from another procedure. I don't want to alter the other procedure - I want the message box to appear but then the macro that I am writing to simply close the message box that gets called (so effectively cliecking ok on it!)

    Help! it's driving me mad!
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    API time, FindWindow to find the owner window, EnumChildWindow s to find the dialog and then once again to find the button along with SendMessage with the WM_GETTEXT const and SendMessage once again with both the WM_LBUTTONDOWN and WM_LBUTTONUP messages. That is once you have the handle of the button to send the messages to...



    Good Luck

    Comment

    Working...