| View previous topic :: View next topic |
| Author |
Message |
Tina Guest
|
Posted: Wed May 14, 2008 11:09 pm Post subject: Attaching mouse click + mouse move to PgDn key |
|
|
Hi all,
I have a tiny script that I want to use to mouse-click on an onscreen Close button, then move the mouse a few inches to the right, all using the same keystroke (PageDown key)::
PgDn::Click 429, 486
MouseMove, 67, 314, R
This will activate the Close button, but won't move the mouse. How can I make this work?
Many thanks! |
|
| Back to top |
|
 |
stewie7griffin
Joined: 14 May 2008 Posts: 6 Location: my house
|
Posted: Wed May 14, 2008 11:13 pm Post subject: |
|
|
| well wut u got tells it to click the button then move it to that point on the closed window which doesnt exist anymore O.o explain the scenario better wut do u need to do exactly |
|
| Back to top |
|
 |
stewie7griffin
Joined: 14 May 2008 Posts: 6 Location: my house
|
Posted: Wed May 14, 2008 11:18 pm Post subject: |
|
|
PgDn::Click 429, 486
MouseClick, left, 67, 314 |
|
| Back to top |
|
 |
heresy
Joined: 11 Mar 2008 Posts: 240
|
Posted: Wed May 14, 2008 11:19 pm Post subject: |
|
|
you have little syntax mistake
HotKey::Command syntax is valid when you have only one command to perform
if you need more than one command it should be like this
| Code: | PgDn:: ;assigning hotkey
Click 429, 486 ;put your commands from here
MouseMove, 67, 314, R ;to here
Return ;closing hotkey commands |
also take a look on WinClose command. _________________ Easy WinAPI - Dive into Windows API World |
|
| Back to top |
|
 |
Tina Guest
|
Posted: Wed May 14, 2008 11:59 pm Post subject: RE: Attaching mouse click + mouse move to PgDn key |
|
|
Thank you all so much for responding. This worked excellently:
PgDn:: ;assigning hotkey
Click 429, 486 ;put your commands from here
MouseMove, 67, 314, R ;to here
Return ;closing hotkey commands
You are the very best! |
|
| Back to top |
|
 |
|