\'1) List1 ListBox
\'1) Timer1 Timer
\'1) Command1 CommandButton
Private Declare Function ShellExecute Lib \"shell32.dll\" Alias \"ShellExecuteA\" ( _
ByVal hWnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Dim i As Long
Public Function WWWShell(url As String) As Long
WWWShell = ShellExecute(0&, vbNullString, url, vbNullString, vbNullString, vbNormalFocus)
End Function
Private Sub Command1_Click()
If Timer1.Enabled = False Then
Timer1.Enabled = True
Command1.Caption = \"Stop\"
Else
Timer1.Enabled = False
Command1.Caption = \"Start\"
End If
End Sub
Private Sub Form_Activate()
List1.ListIndex = 0
WWWShell List1.Text
End Sub
Private Sub Form_Load()
List1.Visible = False
Command1.Caption = \"Start\"
Timer1.Enabled = False
Timer1.Interval = 59000 \'59. sek
List1.AddItem \"
http://www.eksperten.dk/\" List1.AddItem \"
http://www.eksperten.dk/spm/151775/\" List1.AddItem \"
http://www.google.com/\"End Sub
Private Sub Timer1_Timer()
i = i + 1
If i > List1.ListCount - 1 Then i = 0
List1.ListIndex = i
WWWShell List1.Text
End Sub