VB and VBA Users Source Code: Move the position of the mouse cursor
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Move the position of the mouse cursor
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Sunday, January 14, 2001
Hits:
2776
Category:
Windows API
Article:
To move the current location of the mouse point/cursor use the following routine: Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long 'Purpose : Moves the position of the mouse pointer 'Inputs : lXPos The horizontal coordinate from the top left hand side the screen ' lYPos The vertical coordinate from the top left hand side the screen 'Outputs : N/A 'Author : Andrew Baker 'Date : 14/01/2001 12:20 'Notes : 'Revisions : Sub MoveMouse(lXPos As Long, lYPos As Long) Call SetCursorPos(lXPos, lYPos) End Sub
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder