>> I don't know the api SetCaretPos, if you want to set the CorsourPos
>> use SetCursorPos
[quoted text clipped - 3 lines]
>Thanks, but I don't want to set the CURSOR position, I would like to MOVE
>the CARET position (in MS WORD ) to CURSOR position
This was a Language problem on my side
do I understand you right:
you want to simulate a left-mouse-click?
if yes then use the mouse_event api
Private 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_MOVE = &H1
Const MOUSEEVENTF_ABSOLUTE = &H8000
Const MOUSEEVENTF_RIGHTDOWN = &H8
Const MOUSEEVENTF_RIGHTUP = &H10
Private Sub Form_Activate()
'KPD-Team 1998
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
Do
'Simulate a mouseclick on the cursor's position
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&,
0&, cButt, dwEI
DoEvents
Loop
End Sub
---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
Greg - 29 Dec 2004 19:23 GMT
> This was a Language problem on my side
>
[quoted text clipped - 25 lines]
> Loop
> End Sub
Yes, it is!
It's working with some modifing
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP,0&, 0&, 0&,
GetMessageExtraInfo()
Sorry for my bad English.
With the best regards from Moscow
P.S. HAPPY NEW YEAR!
Andi Mayer - 29 Dec 2004 21:06 GMT
>> 'KPD-Team 1998
>> 'URL: http://www.allapi.net/
>> 'E-Mail: KPDTeam@Allapi.net
>Sorry for my bad English.
?? your english is perfect,.
go to the website mentoned above, there is a small program called
API-Guide with a lot of explanations and samples.
P.S. HAPPY XMas in advance for your
---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW