Jump to content
Sign in to follow this  
Juppie7

msgbox threading?

Recommended Posts

Juppie7

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?

Share this post


Link to post
Share on other sites
ChrisL

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

Share this post


Link to post
Share on other sites
ChrisL

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.