AutoHotkey Community

It is currently May 27th, 2012, 12:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: September 8th, 2011, 3:37 am 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Okay I'm quite new to this so I don't mean to be a bother.

I did trying searching how to do this and tried it out myself and kind of understand it, but not well enough to actually program it. I don't know much about this kind of stuff. =P

Basically all I need is for the program to simply click the same spot on my screen, 1 time, every 10 minutes or so.

I know, simple.

I can have to so it just clicks where my cursor is already set, right?

So yeah, that's about it. Really appreciate it if anyone helps me.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 4:10 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
yes, if you don't specify a location, the click commands will use the current position of the mouse. For setting it to start and stop, check the link in my signature

hope this helps.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 5:00 am 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Okay thanks. I tried setting it up to click in a loop but it definitely didn't work right haha.

I'll look at those, although I just don't really know how to set it up in general haha. :?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 7:29 am 
Offline

Joined: September 3rd, 2011, 10:49 am
Posts: 1
I'm new at this as well. Here is some code that might be of some help.
Code:
Loop 10
{
send {click 500, 300, right}   ; Right click – use Window spy to find exact x and y
sleep 10000              ; Sleeps for 10 seconds
}

#SingleInstance force
Esc::ExitApp
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 2:51 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
to use the example from my signature link:
Code:

;start hotkey
1::
delayTime :=  1000 * 60 * 10 ;10 minutes
settimer, sendclick, %delayTime%
return

;stopkey
2::
settimer, sendclick, off
return


sendclick:
send, {click}
return

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 9:05 pm 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Ah thanks both.

I'll try to get this working..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 9:07 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
the helpfile can answer both of those questions, but it is the number of times to loop, and yes, it is milliseconds

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2011, 9:39 pm 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Woo I think I got it working. :)

Thanks so much guys.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 5:50 am 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Another question, where exactly do I find windows spy?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 5:57 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Start>All Programs>AutoHotkey>AutoIt3 Window Spy

Assuming AHK is installed in the default directory.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 6:51 am 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Thank You =]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 7:08 am 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
When I put in the coordinates for the click is it automatically set for the whole screen or the active window?

I want the whole screen, how would I do that if that's not what it automatically does?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 8:02 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
CoordMode
Code:
CoordMode, Mouse

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2011, 8:22 am 
Offline

Joined: September 8th, 2011, 3:29 am
Posts: 16
Thanks. =)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, chaosad, MSN [Bot] and 22 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