| View previous topic :: View next topic |
| Author |
Message |
Master Zen Guest
|
Posted: Sun Jun 12, 2005 11:35 am Post subject: Very New and not sure what to do |
|
|
| 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
|
Posted: Sun Jun 12, 2005 1:44 pm Post subject: |
|
|
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 |
|
 |
Dave Campbell
Joined: 09 Jun 2005 Posts: 25 Location: Clearwater, Florida
|
Posted: Wed Jun 15, 2005 2:42 am Post subject: |
|
|
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 |
|
 |
MYYM
Joined: 05 Apr 2005 Posts: 132
|
Posted: Wed Jun 15, 2005 3:58 am Post subject: |
|
|
| 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 |
|
 |
|