"50" is being retrieved as "so"

I’m trying to read the number but it always return “so” instead of “50”
This is what I tried so far :

put ReadText(contrast:"On", ContrastTolerance:90) into result

I tried

ReadText(contrast:"On", ContrastTolerance:90, ValidPattern:"[0-9]") into result

but It even does not return anything.
Bellow is the image.
Thanks,

You’ll have better luck reading numbers if you specify

ValidCharacters: "0123456789"

That will specifically tell it you want it to try to read only those characters.

For ValidPattern you need to define an entire pattern of characters. Here you’ve only specified a single character. It is designed for things like User[0-9] to match User5 or User8 but not Users.

[quote=“JonathanOSX”]You’ll have better luck reading numbers if you specify

ValidCharacters: "0123456789"

That will specifically tell it you want it to try to read only those characters.

For ValidPattern you need to define an entire pattern of characters. Here you’ve only specified a single character. It is designed for things like User[0-9] to match User5 or User8 but not Users.[/quote]

Got it, thank Jonathan. nice to meet you before.