| Home | All functions | Categories |
vuShellDelay(*CSTRING pFile, LONG DelayMS), LONG
Launches a file using the Windows shell (honors file associations) after waiting for a specified delay.
| Parameter | Data Type | Description |
|---|---|---|
| pFile | CSTRING(260) | Full path to the file or executable to launch. |
| DelayMS | LONG | Delay before launching, in milliseconds (e.g., 2000 = 2 seconds). |
Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.
A LONG value indicating the result:
FilePath CSTRING(260)
DelayMS LONG
Ret LONG
FilePath = 'C:\Windows\notepad.exe'
DelayMS = 2000
Ret = vuShellDelay(FilePath, DelayMS)
MESSAGE('vuShellDelay returned: ' & FORMAT(Ret), 'vuShellDelay Test')
Notes
Uses the Windows shell, so file associations (e.g., .txt with Notepad) are honored.
Useful when you need to defer launching to let dependencies initialize.
| Home | All functions | Categories |