A_Index Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Chara-A
Posts: 1
Joined: 22 May 2018, 21:31

A_Index

22 May 2018, 21:40

I am trying to figure out how to use the A_Index and I know how to start from 1-Infinite, but how do I start from 6-Infinite or 5625-Infinite? I want to type 5625 5626 5627...so on automatically. Can anyone help me out on this?
User avatar
JoeWinograd
Posts: 2200
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: A_Index  Topic is solved

22 May 2018, 22:01

This will do it:

Code: Select all

Loop ; no count, so it loops infinitely
{
  CurrentIndex:=A_Index+5624
  ; the value you want is now in the variable CurrentIndex
  ; do whatever you want with it, such as typing it (with a space after each value)
  SendInput %CurrentIndex%%A_Space%
}
Regards, Joe
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: A_Index

22 May 2018, 22:06

Code: Select all

loop 5{
	bingo := a_index+6
    msgbox, % bingo
}
ExitApp

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: rc76, uchihito and 390 guests