Thank you Pfeil. Worked as advertised. Also I set it up so the numbers get typed out in game and read aloud by TTS. For the TTS I wanted a pause between each digit so that's why there's lots of underscores and text subtraction.
[alpha; bravo; charlie] Code
Set Text [~webData] to [https://nukacrypt.com/]
Inline C# Function: Parse web data for codes., wait until execution finishes
Begin Text Compare : [{CMDSEGMENT:0}] Equals 'alpha'
Say, '{TXTSUBSTR:ALPHA:0:1}_{TXTSUBSTR:ALPHA:1:1}_{TXTSUBSTR:ALPHA:2:1}_{TXTSUBSTR:ALPHA:3:1}. {TXTSUBSTR:ALPHA:4:1}_{TXTSUBSTR:ALPHA:5:1}_{TXTSUBSTR:ALPHA:6:1}_{TXTSUBSTR:ALPHA:7:1}'
Quick Input, '{TXT:ALPHA}'
Else If Text Compare : [{CMDSEGMENT:0}] Equals 'bravo'
Say, '{TXTSUBSTR:BRAVO:0:1}_{TXTSUBSTR:BRAVO:1:1}_{TXTSUBSTR:BRAVO:2:1}_{TXTSUBSTR:BRAVO:3:1}. {TXTSUBSTR:BRAVO:4:1}_{TXTSUBSTR:BRAVO:5:1}_{TXTSUBSTR:BRAVO:6:1}_{TXTSUBSTR:BRAVO:7:1}'
Quick Input, '{TXT:BRAVO}'
Else If Text Compare : [{CMDSEGMENT:0}] Equals 'charlie'
Say, '{TXTSUBSTR:CHARLIE:0:1}_{TXTSUBSTR:CHARLIE:1:1}_{TXTSUBSTR:CHARLIE:2:1}_{TXTSUBSTR:CHARLIE:3:1}. {TXTSUBSTR:CHARLIE:4:1}_{TXTSUBSTR:CHARLIE:5:1}_{TXTSUBSTR:CHARLIE:6:1}_{TXTSUBSTR:CHARLIE:7:1}'
Quick Input, '{TXT:CHARLIE}'
End Condition
Write [Blue] 'ALPHA = {TXT:ALPHA}, BRAVO = {TXT:BRAVO}, CHARLIE = {TXT:CHARLIE}' to log
It works good, but when doing a Test Run of the C# function I am seeing an error that says "Exception has been thrown by the target of an invocation. Object reference not set to an instance of an object." I don't have experience with programming, so I have no idea what it means. Is this something I should worry about?