Loop index is not including a return

Get help with using AutoHotkey and its commands and hotkeys
Georgie Munteer

Loop index is not including a return

18 Nov 2017, 20:39

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 :-(
Georgie Munteer

Re: Loop index is not including a return

18 Nov 2017, 21:06

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 :-(


figured it out, needed to add the info after .InnerText "`n"
User avatar
Spawnova
Posts: 319
Joined: 08 Jul 2015, 00:12
Contact:

Re: Loop index is not including a return

18 Nov 2017, 21:10

Code: [Select all] [Download] GeSHi © Codebox Plus

loop, 3
golfc .= pwb.document.getElementsByClassName("itemgo")[ A_index -1 ].innerText "`n" ;when using := or .= string must be enclosed in quotations
msgbox, % golfc
Georgie Munteer

Re: Loop index is not including a return

19 Nov 2017, 02:33

Spawnova wrote:

Code: [Select all] [Download] GeSHi © Codebox Plus

loop, 3
golfc .= pwb.document.getElementsByClassName("itemgo")[ A_index -1 ].innerText "`n" ;when using := or .= string must be enclosed in quotations
msgbox, % golfc

:thumbup: thank you

Return to “Ask For Help”

Who is online

Users browsing this forum: gregster, Odlanir and 46 guests