How can I move the mouse to different locations in another application. Currently, I used HDC and HWND to get my window's handle. (Also FindWindow). So, is it possible to like MouseMove(HDC, 5,5)?
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
thanks for the info. can you or someone post an example on how to use the above api with a hwnd/hdc.
here is my current code:
Code:
Dim hWnd As Integer = FindWindow(vbNullString, "Untitled - Notepad")
Dim hDC As IntPtr
SetForegroundWindow(hWnd)
hDC = GetDC(hWnd)
'I would like to move the mouse here. MouseMove(HDC/HWND,X,Y)
Bookmarks