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 

How to put mouse pointer to centre of the screen?

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



Joined: 22 Apr 2007
Posts: 33

PostPosted: Tue Jun 03, 2008 10:11 am    Post subject: How to put mouse pointer to centre of the screen? Reply with quote

Dear Autohotkey Gurus,

Is there some way to placed the mouse pointer such that it is at the centre of the screen?

I would like to press some hotkey which will instantly place the mouse pointer to the centre of the screen.

Wondering if this can be done by Autohotkey.

THank you all in advance.
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Tue Jun 03, 2008 10:22 am    Post subject: Reply with quote

http://www.autohotkey.com/docs/commands/MouseMove.htm
in combination with the built-in variables:
A_ScreenWidth
A_ScreenHeight
http://www.autohotkey.com/docs/Variables.htm#Screen
(divide by 2)
Back to top
View user's profile Send private message
helpme



Joined: 22 Apr 2007
Posts: 33

PostPosted: Tue Jun 03, 2008 10:47 am    Post subject: Reply with quote

The speed of your reply is incredibly fast. Thank you very much from the bottom of my heart.
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