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 

Attaching mouse click + mouse move to PgDn key

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





PostPosted: Wed May 14, 2008 11:09 pm    Post subject: Attaching mouse click + mouse move to PgDn key Reply with quote

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

PostPosted: Wed May 14, 2008 11:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
stewie7griffin



Joined: 14 May 2008
Posts: 6
Location: my house

PostPosted: Wed May 14, 2008 11:18 pm    Post subject: Reply with quote

PgDn::Click 429, 486
MouseClick, left, 67, 314
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
heresy



Joined: 11 Mar 2008
Posts: 240

PostPosted: Wed May 14, 2008 11:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tina
Guest





PostPosted: Wed May 14, 2008 11:59 pm    Post subject: RE: Attaching mouse click + mouse move to PgDn key Reply with quote

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
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