Afternoon!
This is my first post, so I apologize if this is in the wrong place.
I've created a while loop to click in a certain area of an application, and have the y axis change at the end of each loop. My loop continues to click at x:27, x:10, even though the $y is adding 15 at the end of each loop. I did a Send($x) and Send($y) into a Notepad to see if the $y had changed after each loop, and the 15 was being added to $y each loop. (If this makes sense)
I'm unsure where I'm going wrong, and would be extremely grateful if someone can point me in the correct direction to fix this.
Local $rDirectory = "H:\oDemandProject\fList.txt"
Local $rLine = _FileCountLines($rDirectory)
Local $x = 27
Local $y = 10
While $rline > 0
WinActivate("OnDemand", "-> 1")
WinWaitActive("OnDemand", "-> 1")
ControlClick("OnDemand", "", "[CLASS:AfxFrameOrView120u; INSTANCE:1]", "left", 4, $x, $y)
$y += 15
$rLine -= 1
WEnd