I'm confused about how the timer control works... Please help me...
Assume these are the actions that I want to do with a pause in between them each...
Move mouse to 1st position
Code:
Me.Cursor.Position = New Point(390, 195)
Left mouse click
Code:
mouse_event(MOUSEEVENTF_LEFTDOWN, 390, 195, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 390, 195, 0, 0)
Move mouse to 2nd position
Code:
Me.Cursor.Position = New Point(623, 195)
Left mouse click over that position
Code:
mouse_event(MOUSEEVENTF_LEFTDOWN, 623, 195, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 623, 195, 0, 0)
I am very new at vb, this is all I know to do so far, could you please help me fill in the gaps. I would greatly appreciate it!
I put
HTML Code:
Timer1.Interval = 500
Timer1.Enabled = True
in the form load
then, what would I put in this...
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
'what goes here?
End Sub