AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Could someone help me write this simple code?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 5:59 pm    Post subject: Could someone help me write this simple code? Reply with quote

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 Sad
Back to top
View user's profile Send private message
Mkbailey755



Joined: 20 Aug 2007
Posts: 168

PostPosted: Mon Apr 21, 2008 6:05 pm    Post subject: Reply with quote

Code:

^z::
loop
{
Send {RButton}
sleep 1000
}
Back to top
View user's profile Send private message
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Moki



Joined: 23 Feb 2008
Posts: 96
Location: North Carolina

PostPosted: Mon Apr 21, 2008 6:27 pm    Post subject: Reply with quote

try:

Code:
^z::
loop
{
Click Right
sleep 1000
}

_________________
http://www.mofiki.com
Back to top
View user's profile Send private message
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 6:36 pm    Post subject: Reply with quote

Moki wrote:
try:

Code:
^z::
loop
{
Click Right
sleep 1000
}

it still doesn't work
http://i54.photobucket.com/albums/g120/gnlics/key.jpg

did I do it right? I saved it and use window + space to trigger it
(the www.google.com demo works for me)
Back to top
View user's profile Send private message
Moki



Joined: 23 Feb 2008
Posts: 96
Location: North Carolina

PostPosted: Mon Apr 21, 2008 6:39 pm    Post subject: Reply with quote

post exactly what you have in your script here
_________________
http://www.mofiki.com
Back to top
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 853
Location: London, UK

PostPosted: Mon Apr 21, 2008 6:43 pm    Post subject: Reply with quote

You need to press ctrl + z to fire the code provided.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 6:43 pm    Post subject: Reply with quote

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 Sad
Back to top
View user's profile Send private message
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 6:46 pm    Post subject: Reply with quote

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 Confused

thats how the demo taught me Surprised

a million thanks to Superfraggle, moki, and mkbailey755!! You guys are nice Very Happy
Back to top
View user's profile Send private message
Moki



Joined: 23 Feb 2008
Posts: 96
Location: North Carolina

PostPosted: Mon Apr 21, 2008 6:46 pm    Post subject: Reply with quote

this way will use window key + space bar

Code:
#space::
loop
{
Click Right
sleep 1000
}

_________________
http://www.mofiki.com
Back to top
View user's profile Send private message
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 6:50 pm    Post subject: Reply with quote

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 ? Confused
Back to top
View user's profile Send private message
Moki



Joined: 23 Feb 2008
Posts: 96
Location: North Carolina

PostPosted: Mon Apr 21, 2008 6:54 pm    Post subject: Reply with quote

Code:
#space::
loop
{
Click Right
sleep 1000
}

Pause::Pause


add this and it will pause when you hit the pause key Smile
_________________
http://www.mofiki.com
Back to top
View user's profile Send private message
Mkbailey755



Joined: 20 Aug 2007
Posts: 168

PostPosted: Mon Apr 21, 2008 6:54 pm    Post subject: Reply with quote

I ll let you find that out on your own Wink *hint look up break in Command reference
Back to top
View user's profile Send private message
chisengseng



Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 7:00 pm    Post subject: Reply with quote

Mkbailey755 wrote:
I ll let you find that out on your own Wink *hint look up break in Command reference


I got the answer lol Laughing

thanks again to all who helped me, this program is interesting Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group