Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Question about loop counting up in a MsgBox


Best Answer Jackie Sztuk _Blackholyman , 01 October 2015 - 10:14 AM

Go to the full post »


  • Please log in to reply
1 reply to this topic
RANG3D
  • New members
  • 3 posts
  • Last active: Apr 08 2016 03:09 PM
  • Joined: 01 Oct 2015

Hello,

 

Is there a way to make AHK ask you untill what number to count?

And then make it count till that number in a MsgBox on each OK click?

 

I have it like this now, but when I enter 10 it shows me 10 for 10 times:

InputBox, count,, Count
Loop, %count%
{
MsgBox, %count%
}

It needs to start at 1 and count up till 10, do I need to add a +1 somewhere or add another variable?

 

Thanks in advance! :)



Jackie Sztuk _Blackholyman
  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012
✓  Best Answer
InputBox, count,, Count
Loop, %count%
{
MsgBox, %A_index%
}

Helping%20you%20learn%20autohotkey.jpg?d

[AHK] Version. 1.1+ [CLOUD] DropBox ; Copy [WEBSITE] Blog ; About