loop, 3
golfc .= pwb.document.getElementsByClassName("itemgo")[ A_index -1 ].innerText
msgbox, % golfc
The msgbox returns with all text at once with no space between them or new line (need new line)
I tried % golfc`n and all methods like `r`n I tried everything it seems
Loop index is not including a return Topic is solved
Re: Loop index is not including a return
figured it out, needed to add the info after .InnerText "`n"Georgie Munteer wrote:loop, 3
golfc .= pwb.document.getElementsByClassName("itemgo")[ A_index -1 ].innerText
msgbox, % golfc
The msgbox returns with all text at once with no space between them or new line (need new line)
I tried % golfc`n and all methods like `r`n I tried everything it seems
Re: Loop index is not including a return Topic is solved
Code: Select all
loop, 3
golfc .= pwb.document.getElementsByClassName("itemgo")[ A_index -1 ].innerText "`n" ;when using := or .= string must be enclosed in quotations
msgbox, % golfc
Some of my AHK programs: 3D Voxel Game - Platformer Game
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
Re: Loop index is not including a return
thank youSpawnova wrote:Code: Select all
loop, 3 golfc .= pwb.document.getElementsByClassName("itemgo")[ A_index -1 ].innerText "`n" ;when using := or .= string must be enclosed in quotations msgbox, % golfc