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 make it wait for a mouse click

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



Joined: 23 Feb 2006
Posts: 22

PostPosted: Sun Oct 29, 2006 4:22 pm    Post subject: how to make it wait for a mouse click Reply with quote

I have two identical windows open and want to size them to each fit exactly half the screen vertically. i'm having problems with winactivate as they are both named the same. How can i make it wait for a mouseclick? that way i can run the script, click the first window and it would resize it, then click the next window and let it resize that one.

2nd question: how do i make a mouseclick in relation to the SCREEN and not the window?

Thanks for any help! you guys are the greatest!
_________________
Matt P Cluever
Back to top
View user's profile Send private message
AiKscroll



Joined: 06 Jun 2005
Posts: 179
Location: Northern Virginia

PostPosted: Sun Oct 29, 2006 6:11 pm    Post subject: Reply with quote

Code:

KeyWait, LButton


Code:

CoordMode, Mouse, Screen

_________________
_AiK
Back to top
View user's profile Send private message AIM Address
jps



Joined: 02 Sep 2006
Posts: 253
Location: Scotland

PostPosted: Sun Oct 29, 2006 9:16 pm    Post subject: Reply with quote

Check out this,its pretty cool.
http://www.autohotkey.com/forum/viewtopic.php?p=84807#84807
Back to top
View user's profile Send private message
Carlol



Joined: 14 Aug 2006
Posts: 151
Location: CPH

PostPosted: Sun Oct 29, 2006 9:39 pm    Post subject: Reply with quote

2nd question: how do i make a mouseclick in relation to the SCREEN and not the window?
>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 971, 274 (less often used)
In Active Window: 970, 248

from Window Spy, which comes with the AHK packet! Smile
Back to top
View user's profile Send private message
.AHK



Joined: 26 Apr 2006
Posts: 662
Location: USA

PostPosted: Sun Oct 29, 2006 10:45 pm    Post subject: Reply with quote

Quote:

2nd question: how do i make a mouseclick in relation to the SCREEN and not the window?

AiKscroll already answered that.
Code:

CoordMode, Mouse, Screen
Back to top
View user's profile Send private message Visit poster's website AIM Address
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