AutoHotkey Community

It is currently May 26th, 2012, 11:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: November 10th, 2009, 9:42 am 
Offline

Joined: July 30th, 2009, 4:15 am
Posts: 36
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. :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 9:50 am 
please check help file on Hotkey, MouseGetPos, and MouseMove
example:
Code:
a:
mousegetpos,x,y
return

b:
mousemove,%x%,%y%
return
 


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 9:51 am 
correction:
Code:
a::
mousegetpos,x,y
return

b::
mousemove,%x%,%y%
return
 


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 10:01 am 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6068
Location: San Diego, California
:wink: correction:
Code:
CoordMode, Mouse, screen ; relative to screen not window
return

^!s::
mousegetpos,x,y
return

^!d::
mousemove,%x%,%y%
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 10:01 am 
ar yes, thank you


Report this post
Top
  
Reply with quote  
 Post subject: TY
PostPosted: November 10th, 2009, 10:38 am 
Offline

Joined: July 30th, 2009, 4:15 am
Posts: 36
This is exactly what I needed. Thank you soo much =D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Google Feedfetcher, hyper_, Leef_me, Pulover, rbrtryn, XstatyK and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group