Tento kód vložte na začátek (ale pod Class!!!)
Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Const MOUSEEVENTF_LEFTDOWN = &H2
Const MOUSEEVENTF_LEFTUP = &H4
Const MOUSEEVENTF_MIDDLEDOWN = &H20
Const MOUSEEVENTF_MIDDLEUP = &H40
Const MOUSEEVENTF_RIGHTDOWN = &H8
Const MOUSEEVENTF_RIGHTUP = &H10
Dim cButt
Dim dwEI
a pokud chcete každou sekundu kliknout tak si udělejte timer s intervalem 1000 a do procedury Tick:
mouse_event(MOUSEEVENTF_LEFTDOWN, 0&, 0&, cButt, dwEI)
mouse_event(MOUSEEVENTF_LEFTUP, 0&, 0&, cButt, dwEI)
čímž tlačítko sepnete a zase odepnete. Ondryáš O
|