AutoHotkey Community

It is currently May 26th, 2012, 10:09 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Loop help
PostPosted: October 20th, 2008, 5:13 pm 
I'm making a quote bot for a WASTE chat room that we use at work. Can anyone tell me why it's skipping that MsgBox?

Code:
#SingleInstance
#Persistent

quoteCheck = !quote

WinWait, razed_dead - WASTE User Chat
{
  WinGetText, message
  IfInString, message, %quoteCheck%
  {
    Loop, Parse, message, !, quote%A_Space%
    {
      If %A_Index% = 1
        MsgBox, Why is it skipping this?
      MsgBox, %A_Index% = %A_LoopField%
    }
  }
  else
    MsgBox, Not a valid quote.
}
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2008, 5:14 pm 
Offline

Joined: April 9th, 2007, 4:43 pm
Posts: 172
This is the right one:
If A_Index = 1

_________________
COMPLETELY INACTIVE - I do not use AHK anymore.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2008, 5:17 pm 
Sometimes you just need another pair of eyes. Thanks for the quick reply!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: [VxE], iBob35555VR, krajan, Yahoo [Bot] and 76 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group