Hi @engilic . I think I found a VBA equivalent you can use. It's done differently than the code posted above, but it worked for me when I tested it. I'm using Inventor Pro 2021.2.2 on a Windows 10 64bit system and MS Office 2019 (of it matters).
Here's what I've 'scavenged' from a few different websites.
https://www.extendoffice.com/documents/excel/3836-excel-message-box-timer-timeout.html#a1
https://www.pinvoke.net/default.aspx/user32/MessageBoxTimeout.html
https://stackoverflow.com/questions/55430579/how-to-open-a-timed-message-box-in-ms-acces-without-cre...
VBA:
Private Declare PtrSafe Function MsgBoxTimeout _
Lib "user32" _
Alias "MessageBoxTimeoutA" ( _
ByVal hwnd As LongPtr, _
ByVal Message As String, _
ByVal Title As String, _
ByVal MsgBoxStyle As VbMsgBoxStyle, _
ByVal Language As Long, _
ByVal MillisecondsToWait As Long) _
As Long
Sub MsgWithTimeOut()
Dim oTimeOut As Long
oTimeOut = 3000
Call MsgBoxTimeout(0, "This message will self destruct after " & oTimeOut / 1000 & " seconds.", "Title", vbInformation, 0, oTimeOut)
End Sub
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)