| View previous topic :: View next topic |
| Author |
Message |
emerysteele
Joined: 30 Jul 2009 Posts: 36
|
Posted: Tue Nov 10, 2009 8:42 am Post subject: Remember mouse position & return to it? |
|
|
I would like a script that would allow me to press a few buttons like Ctrl+Alt+S and have it get and save my mouse position. Then I want to be able to Press another key combination like Ctrl+Alt+D and have the mouse go back to the save position.
Thank you in advanced.  |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 10, 2009 8:50 am Post subject: |
|
|
please check help file on Hotkey, MouseGetPos, and MouseMove
example:
| Code: |
a:
mousegetpos,x,y
return
b:
mousemove,%x%,%y%
return
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 10, 2009 8:51 am Post subject: |
|
|
correction:
| Code: |
a::
mousegetpos,x,y
return
b::
mousemove,%x%,%y%
return
|
|
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Tue Nov 10, 2009 9:01 am Post subject: |
|
|
correction:
| Code: | CoordMode, Mouse, screen ; relative to screen not window
return
^!s::
mousegetpos,x,y
return
^!d::
mousemove,%x%,%y%
return |
|
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 10, 2009 9:01 am Post subject: |
|
|
| ar yes, thank you |
|
| Back to top |
|
 |
emerysteele
Joined: 30 Jul 2009 Posts: 36
|
Posted: Tue Nov 10, 2009 9:38 am Post subject: TY |
|
|
| This is exactly what I needed. Thank you soo much =D |
|
| Back to top |
|
 |
|