AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remember mouse position & return to it?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
emerysteele



Joined: 30 Jul 2009
Posts: 36

PostPosted: Tue Nov 10, 2009 8:42 am    Post subject: Remember mouse position & return to it? Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Nov 10, 2009 8:50 am    Post subject: Reply with quote

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






PostPosted: Tue Nov 10, 2009 8:51 am    Post subject: Reply with quote

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

PostPosted: Tue Nov 10, 2009 9:01 am    Post subject: Reply with quote

Wink correction:
Code:
CoordMode, Mouse, screen ; relative to screen not window
return

^!s::
mousegetpos,x,y
return

^!d::
mousemove,%x%,%y%
return
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Nov 10, 2009 9:01 am    Post subject: Reply with quote

ar yes, thank you
Back to top
emerysteele



Joined: 30 Jul 2009
Posts: 36

PostPosted: Tue Nov 10, 2009 9:38 am    Post subject: TY Reply with quote

This is exactly what I needed. Thank you soo much =D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group