| View previous topic :: View next topic |
| Author |
Message |
i am w8in
Joined: 30 Jan 2010 Posts: 4
|
Posted: Sat Jan 30, 2010 3:45 am Post subject: Need help with very simple macro... |
|
|
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] |
|
| Back to top |
|
 |
geekdude
Joined: 23 Nov 2009 Posts: 64
|
Posted: Sat Jan 30, 2010 4:07 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
i am w8in
Joined: 30 Jan 2010 Posts: 4
|
Posted: Sat Jan 30, 2010 3:12 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
kdoske
Joined: 17 Dec 2008 Posts: 80
|
Posted: Sat Jan 30, 2010 4:53 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
i am w8in
Joined: 30 Jan 2010 Posts: 4
|
Posted: Sat Jan 30, 2010 5:43 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
tomoe_uehara
Joined: 05 Sep 2009 Posts: 1591 Location: Somewhere near you
|
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Sat Jan 30, 2010 6:55 pm Post subject: |
|
|
| 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 . |
|
| Back to top |
|
 |
tomoe_uehara
Joined: 05 Sep 2009 Posts: 1591 Location: Somewhere near you
|
|
| Back to top |
|
 |
i am w8in
Joined: 30 Jan 2010 Posts: 4
|
Posted: Sat Jan 30, 2010 7:28 pm Post subject: |
|
|
| 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 . |
this program you made works perfectly for what im trying to do, thank you very much  |
|
| Back to top |
|
 |
|