AutoHotkey Community

It is currently May 27th, 2012, 2:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: January 30th, 2010, 4:45 am 
Offline

Joined: January 30th, 2010, 4:40 am
Posts: 4
i want to make a script that will do this:
click at 500,355.....then click on 500,425.....with about 1/2 of a second between each click.....then loop until i tell it to stop. how do i do this?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 5:07 am 
Offline

Joined: November 23rd, 2009, 2:11 pm
Posts: 104
you have your script rigt there, you just need to put it together
loop
click
wait/sleep

_________________
  /\ /\ This is Kitty
(>';'<) Cut, copy, and paste kitty onto your sig.
((")(")) Help Kitty gain World Domination.

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 4:12 pm 
Offline

Joined: January 30th, 2010, 4:40 am
Posts: 4
so the script would look like this?:

Code:
loop
{
if F12
break

click 500, 355
sleep 500

click 500, 425
sleep 500
}


would that be correct?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 5:53 pm 
Offline

Joined: December 17th, 2008, 5:36 am
Posts: 80
close

search hotkeys in the help file. The loop would not be needed unless you wanted the script to run indefinitely after the hotkey was pushed.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 6:43 pm 
Offline

Joined: January 30th, 2010, 4:40 am
Posts: 4
i tried running the script that i posted above, but it started and i couldn't get it to stop unless i exited AHK. how do I make it stop after its started? I also want a continue button so I can make it go again after i stop it.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 7:37 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
You could assign the 'Pause' command to a key.

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 7:55 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
Code:
q:: ;q to start
loop
{
if GetKeystate("F12") ; check state of F12
break

click 500, 355
sleep 500

click 500, 425
sleep 500
}
Return

Esc::ExitApp ;Emergency Exit

I already had a Macro assigned to F12 so it could not see the Key Press to stop. I Had to ReBoot to get it to stop :oops: .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 8:05 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
But if you 'break' the loop, then you couldn't resume it. You have to start again from the beginning.

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 8:28 pm 
Offline

Joined: January 30th, 2010, 4:40 am
Posts: 4
None wrote:
Code:
q:: ;q to start
loop
{
if GetKeystate("F12") ; check state of F12
break

click 500, 355
sleep 500

click 500, 425
sleep 500
}
Return

Esc::ExitApp ;Emergency Exit

I already had a Macro assigned to F12 so it could not see the Key Press to stop. I Had to ReBoot to get it to stop :oops: .


this program you made works perfectly for what im trying to do, thank you very much :)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Bing [Bot], engunneer, Google Feedfetcher, JSLover, rbrtryn, sjc1000 and 15 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