Jump to content

msgbox threading?


Recommended Posts

is it possible to have a MsgBox continue script execution while it is displayed? That way a GUI, for instance, will show up while a message box shows information about that gui? possibly a DLLCall to open a win32 MessageBoxA(..) function, so that script execution will continue after the display?

Link to comment
Share on other sites

Like this...

_Msgbox(0,"Title","Text",12)

For $i = 0 to 9
    ToolTip("The script is still running " & 10 - $i)
    Sleep(1000)
Next



Func _Msgbox($iType,$vTitle,$vText,$iTimeout=0, $hwnd="")
    Run(FileGetShortName(@AutoItExe) & ' /AutoIt3ExecuteLine  "MsgBox('& $iType & ', ''' & $vTitle & ''', ''' &  $vText & ''',''' & $iTimeout & ''',''' & $hwnd & ''')"')
EndFunc
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...