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 

newbie needs quick help

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



Joined: 13 May 2008
Posts: 4

PostPosted: Tue May 13, 2008 10:49 pm    Post subject: newbie needs quick help Reply with quote

just got these ahk scripts to work this morning and i've already got the bug. i use a 1920x1600 resolution monitor. i need an ahk script that will let me set a key such as "l" to move the pointer to e.g. (355, 1289). i need to assign six such keys for six different locations. can someone do this for me? i'd get a lot done in my work and learn a lot. thanks.
Back to top
View user's profile Send private message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Tue May 13, 2008 10:56 pm    Post subject: Reply with quote

Code:

l::
     MouseMove, 355, 1289
Return
Back to top
View user's profile Send private message
mrhawkster



Joined: 13 May 2008
Posts: 4

PostPosted: Tue May 13, 2008 11:00 pm    Post subject: Reply with quote

Awesome!

I'm not restricted to the coordinates of the active window?

Wow. Thanks.
Back to top
View user's profile Send private message
mrhawkster



Joined: 13 May 2008
Posts: 4

PostPosted: Tue May 13, 2008 11:04 pm    Post subject: Reply with quote

I just tried this and it is restricted to the active window. I need a global one.
Back to top
View user's profile Send private message
nvus



Joined: 02 Aug 2007
Posts: 29

PostPosted: Tue May 13, 2008 11:19 pm    Post subject: Reply with quote

try adding this to the beginning of the script
Code:
#ifWinActive, XXXXXX

XXXXXX being the window name
Back to top
View user's profile Send private message
silveredge78



Joined: 25 Jul 2006
Posts: 377
Location: Midwest, USA

PostPosted: Tue May 13, 2008 11:57 pm    Post subject: Reply with quote

I would look more at CoordMode.
_________________
SilverEdge78
Back to top
View user's profile Send private message
mrhawkster



Joined: 13 May 2008
Posts: 4

PostPosted: Wed May 14, 2008 12:31 am    Post subject: Reply with quote

voila



CoordMode, Mouse

e::
MouseMove, 400, 400
Return

r::
MouseMove, 1040, 400
Return

t::
MouseMove, 1680, 400
Return

d::
MouseMove, 400, 700
Return

f::
MouseMove, 1040, 700
Return

g::
MouseMove, 1680, 700
Return
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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