Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As LongPrivate Sub Form_Load() Timer1.Interval = 30000 Timer1.Enabled = True End SubPrivate Sub Timer1_Timer() WinExec "自己的程序", 0 End Sub
用API函数中的Sleep, sleep 3000 ...
up Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As LongPrivate Sub Form_Load() Timer1.Interval = 30000 Timer1.Enabled = True End SubPrivate Sub Timer1_Timer() WinExec "自己的程序", 0 End Sub
Timer1.Interval = 30000
Timer1.Enabled = True
End SubPrivate Sub Timer1_Timer()
WinExec "自己的程序", 0
End Sub
sleep 3000
...
Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As LongPrivate Sub Form_Load()
Timer1.Interval = 30000
Timer1.Enabled = True
End SubPrivate Sub Timer1_Timer()
WinExec "自己的程序", 0
End Sub