| View previous topic :: View next topic |
| Author |
Message |
mrhawkster
Joined: 13 May 2008 Posts: 4
|
Posted: Tue May 13, 2008 10:49 pm Post subject: newbie needs quick help |
|
|
| 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 |
|
 |
ImprisonedPride
Joined: 30 Apr 2008 Posts: 26
|
Posted: Tue May 13, 2008 10:56 pm Post subject: |
|
|
| Code: |
l::
MouseMove, 355, 1289
Return
|
|
|
| Back to top |
|
 |
mrhawkster
Joined: 13 May 2008 Posts: 4
|
Posted: Tue May 13, 2008 11:00 pm Post subject: |
|
|
Awesome!
I'm not restricted to the coordinates of the active window?
Wow. Thanks. |
|
| Back to top |
|
 |
mrhawkster
Joined: 13 May 2008 Posts: 4
|
Posted: Tue May 13, 2008 11:04 pm Post subject: |
|
|
| I just tried this and it is restricted to the active window. I need a global one. |
|
| Back to top |
|
 |
nvus
Joined: 02 Aug 2007 Posts: 29
|
Posted: Tue May 13, 2008 11:19 pm Post subject: |
|
|
try adding this to the beginning of the script
| Code: | | #ifWinActive, XXXXXX |
XXXXXX being the window name |
|
| Back to top |
|
 |
silveredge78
Joined: 25 Jul 2006 Posts: 377 Location: Midwest, USA
|
Posted: Tue May 13, 2008 11:57 pm Post subject: |
|
|
I would look more at CoordMode. _________________ SilverEdge78 |
|
| Back to top |
|
 |
mrhawkster
Joined: 13 May 2008 Posts: 4
|
Posted: Wed May 14, 2008 12:31 am Post subject: |
|
|
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 |
|
 |
|