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 

Macro

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



Joined: 10 Dec 2007
Posts: 8

PostPosted: Mon May 12, 2008 4:09 pm    Post subject: Macro Reply with quote

Hey yes i would like to know if someone can edit this line fore me

Loop
{
Send 234
continue
}




what i want is for it to press2, 3, 4 each one with every 15 seconds


Thanks in advanced

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
View user's profile Send private message
Elesar



Joined: 28 Jun 2007
Posts: 98

PostPosted: Mon May 12, 2008 4:20 pm    Post subject: Reply with quote

Next time you post code, please use the code tags, it puts it in its own little formatting, so it is nicer to read, and when you include comments, they are in green instead of blue, so its easy to see what lines (or parts of a line) are not going to execute.

Your code would look like this in the code tag:
Code:

Loop
{
Send 3 ; This is a comment on the same line that sends 3
continue
}


See? Much nicer to read.

Anyways, you will want to look up the sleep command and get familiar with that.

Also, you may want to include some way to break your loop, or it will loop indefinitely(unless you kill the process)
Back to top
View user's profile Send private message
Endusa



Joined: 09 May 2008
Posts: 21

PostPosted: Mon May 12, 2008 4:22 pm    Post subject: Reply with quote

Code:

Loop,
{
Send, "2"
Sleep,15000
Send, "3"
Sleep,15000
Send, "4"
Sleep,15000
}


Lets see what happends
Back to top
View user's profile Send private message
Elesar



Joined: 28 Jun 2007
Posts: 98

PostPosted: Mon May 12, 2008 4:23 pm    Post subject: Reply with quote

Ok, you must have edited while I was responding, anyways, now you will just need to sequence the sends appropriately.

Are you wanting to send 2,3,4 (wait 15 seconds) send 2,3,4

Or are you wanting to send 2, (wait 15) send 3, (wait 15) send 4

kinda important to have that information.

EDIT:

Haha, happened again, anyways, that should wor, but you shouldn't need the quotes around the character, just
Code:

Send 2
Sleep, 15000
Send 3
ect...
Back to top
View user's profile Send private message
killakev



Joined: 10 Dec 2007
Posts: 8

PostPosted: Mon May 12, 2008 4:27 pm    Post subject: Reply with quote

Elesar wrote:
Next time you post code, please use the code tags, it puts it in its own little formatting, so it is nicer to read, and when you include comments, they are in green instead of blue, so its easy to see what lines (or parts of a line) are not going to execute.

Your code would look like this in the code tag:
Code:

Loop
{
Send 3 ; This is a comment on the same line that sends 3
continue
}


See? Much nicer to read.

Anyways, you will want to look up the sleep command and get familiar with that.

Also, you may want to include some way to break your loop, or it will loop indefinitely(unless you kill the process)



Yea im just trying to find someone to edit it for me since im not familiar with any of this,However i want it to run endlessly meaning i would have to kill the process =)
Back to top
View user's profile Send private message
Elesar



Joined: 28 Jun 2007
Posts: 98

PostPosted: Mon May 12, 2008 4:30 pm    Post subject: Reply with quote

killakev wrote:
Yea im just trying to find someone to edit it for me since im not familiar with any of this.


Most people here won't do this, we will help, but mostly help you learn, so you can do it on your own next time, and help other new people once you know how to do what the newer person is asking for help with.

Try Endusa's code, with the one or two changes that I suggested, and you should be good to go.
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