| View previous topic :: View next topic |
| Author |
Message |
vital
Joined: 05 Oct 2005 Posts: 17 Location: china
|
Posted: Sun Jul 01, 2007 7:12 am Post subject: how to get current cursor positon? |
|
|
in edit control,in office word,and so on.
thanks |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Sun Jul 01, 2007 7:47 am Post subject: |
|
|
A_CaretX A_CaretY
note it does not always work! _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Alexander
Joined: 01 Jul 2007 Posts: 17
|
Posted: Sun Jul 01, 2007 7:13 pm Post subject: |
|
|
Retrieves the current position of the mouse cursor, and optionally which window and control it is hovering over.
MouseGetPos, [OutputVarX, OutputVarY, OutputVarWin, OutputVarControl, 1|2|3]
It's all in the help files  |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Sun Jul 01, 2007 10:39 pm Post subject: |
|
|
Alexander mentions a good point. A cursor is your mouse pointer. A caret is where you are typing. They of course are not always the same place! _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|