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 

Very New and not sure what to do

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





PostPosted: Sun Jun 12, 2005 11:35 am    Post subject: Very New and not sure what to do Reply with quote

hello everyone. i'm very new to autohotkey and i'm trying to figure out how to do some simple key commands but its not so simple. anyway i'm need to figure to how to send the numbers 1 through 9 into the active window and also how to add a pause time between commands. I'm just asking for an example.
Back to top
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Sun Jun 12, 2005 1:44 pm    Post subject: Reply with quote

Press Ctrl + S to send the numbers

Code:

^s::

loop, 9
{
send, %a_index%
sleep, 1000 ;pause for 1 second
}



Have a look at the Quick Start Tutorial if you havn't already.
Back to top
View user's profile Send private message Send e-mail
Dave Campbell



Joined: 09 Jun 2005
Posts: 25
Location: Clearwater, Florida

PostPosted: Wed Jun 15, 2005 2:42 am    Post subject: Reply with quote

I too am new and enjoy both the question and the answer. I follow the logic in the answer but don't know why you used "%a_index%" as a variable name. How did that get defined and what makes it the pointer of the loop?

If this is a pre-defined system variable, where do I find a list of others?

Thanks.
Back to top
View user's profile Send private message
MYYM



Joined: 05 Apr 2005
Posts: 132

PostPosted: Wed Jun 15, 2005 3:58 am    Post subject: Reply with quote

Dave Campbell wrote:
I follow the logic in the answer but don't know why you used "%a_index%" as a variable name. How did that get defined and what makes it the pointer of the loop?
If this is a pre-defined system variable, where do I find a list of others?

Try the folowing link
http://www.autohotkey.com/docs/Variables.htm#BuiltIn

..
Back to top
View user's profile Send private message Visit poster's website
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