AutoHotkey Community

It is currently May 26th, 2012, 9:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: August 1st, 2009, 3:30 pm 
HI!
I`m looking for script for 2 hours, but can`t find. I need script that will click (left mouse button) on exactly point in new window, 1 second after opening. I hope you know what i mean. Could somebody make it?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 3:37 pm 
Coordinates should be defined from left corner for every window, not whole screen (i don`t know, where exaxtly new window will open)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 3:41 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
Read MouseClick and CoordMode.

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2009, 10:46 pm 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Code:
WinWaitActive, "Window Title" ;Replace the quotes with the window title.
Sleep, 1000 ;Waits for one second, in milliseconds.
CoordMode, Mouse, Relative ;Makes the coordinates of click relative to the active window.
MouseClick, L, "x", "y" ;Replace the quotes with the coordinates you want it to click.


Untested, but I'm sure that's what you wanted.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 2nd, 2009, 5:21 am 
Offline

Joined: March 24th, 2004, 2:34 pm
Posts: 299
You should also read about the AHK Spy utility.

That will help you find the exact location of a specific point on the screen - like the upper left hand corner of a window - or the point on which you wish to click.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 2nd, 2009, 9:10 pm 
The coordinates of the point I can find myself. Script works with one window, but i would like something that will work with every new window that I open (and only one time, after opening, not every time when it`s active). Is it possibie?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2009, 8:12 am 
Offline

Joined: July 24th, 2009, 5:48 pm
Posts: 13
If you set the script up as a hotkey then yes. As for automation of this, a little more complicated. I might be able to devise a script for it, but I currently do not know how to do it and would have to look through the help file (very useful, go take a look!)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, wolverineks and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group