| View previous topic :: View next topic |
| Author |
Message |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
Posted: Mon Apr 21, 2008 5:59 pm Post subject: Could someone help me write this simple code? |
|
|
how to perform a right click loop (click per 1 second)
I read the help section, yet it seems to be too hard for me to understand
thanks for helping  |
|
| Back to top |
|
 |
Mkbailey755
Joined: 20 Aug 2007 Posts: 168
|
Posted: Mon Apr 21, 2008 6:05 pm Post subject: |
|
|
| Code: |
^z::
loop
{
Send {RButton}
sleep 1000
}
|
|
|
| Back to top |
|
 |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
Posted: Mon Apr 21, 2008 6:12 pm Post subject: |
|
|
| Mkbailey755 wrote: | | Code: |
^z::
loop
{
Send {RButton}
sleep 1000
}
|
|
I copied the code, Edited, saved, then used window + space,
It doesn't activate. I close the window and repeat the steps again, it still doesn't work, did i do something wrong? |
|
| Back to top |
|
 |
Moki
Joined: 23 Feb 2008 Posts: 96 Location: North Carolina
|
Posted: Mon Apr 21, 2008 6:27 pm Post subject: |
|
|
try:
| Code: | ^z::
loop
{
Click Right
sleep 1000
} |
_________________ http://www.mofiki.com |
|
| Back to top |
|
 |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
|
| Back to top |
|
 |
Moki
Joined: 23 Feb 2008 Posts: 96 Location: North Carolina
|
Posted: Mon Apr 21, 2008 6:39 pm Post subject: |
|
|
post exactly what you have in your script here _________________ http://www.mofiki.com |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 853 Location: London, UK
|
Posted: Mon Apr 21, 2008 6:43 pm Post subject: |
|
|
You need to press ctrl + z to fire the code provided. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
Posted: Mon Apr 21, 2008 6:43 pm Post subject: |
|
|
| Moki wrote: | | post exactly what you have in your script here |
isn't the .ahk file a script? if it is, thats all I have, shown in the picture.
what else do I have to add?
sorry for being newb  |
|
| Back to top |
|
 |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
Posted: Mon Apr 21, 2008 6:46 pm Post subject: |
|
|
| Superfraggle wrote: | | You need to press ctrl + z to fire the code provided. |
O it works!!! I thought you use window + space to activate it
thats how the demo taught me
a million thanks to Superfraggle, moki, and mkbailey755!! You guys are nice  |
|
| Back to top |
|
 |
Moki
Joined: 23 Feb 2008 Posts: 96 Location: North Carolina
|
Posted: Mon Apr 21, 2008 6:46 pm Post subject: |
|
|
this way will use window key + space bar
| Code: | #space::
loop
{
Click Right
sleep 1000
} |
_________________ http://www.mofiki.com |
|
| Back to top |
|
 |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
Posted: Mon Apr 21, 2008 6:50 pm Post subject: |
|
|
| Moki wrote: | this way will use window key + space bar
| Code: | #space::
loop
{
Click Right
sleep 1000
} |
|
oh I see, the heading varies the activate key.
btw, how to stop the loop ?  |
|
| Back to top |
|
 |
Moki
Joined: 23 Feb 2008 Posts: 96 Location: North Carolina
|
Posted: Mon Apr 21, 2008 6:54 pm Post subject: |
|
|
| Code: | #space::
loop
{
Click Right
sleep 1000
}
Pause::Pause |
add this and it will pause when you hit the pause key  _________________ http://www.mofiki.com |
|
| Back to top |
|
 |
Mkbailey755
Joined: 20 Aug 2007 Posts: 168
|
Posted: Mon Apr 21, 2008 6:54 pm Post subject: |
|
|
I ll let you find that out on your own *hint look up break in Command reference |
|
| Back to top |
|
 |
chisengseng
Joined: 21 Apr 2008 Posts: 7
|
Posted: Mon Apr 21, 2008 7:00 pm Post subject: |
|
|
| Mkbailey755 wrote: | I ll let you find that out on your own *hint look up break in Command reference |
I got the answer lol
thanks again to all who helped me, this program is interesting  |
|
| Back to top |
|
 |
|