I discovered Rainmeter a few days ago and I've been hard at work [see: play] coding some website parsers for various things (I don't want to reveal just what yet, because I'm packaging them together to release for funzies). However, I've been stumbling over some hurdles and haven't been able to find answers in the documentation or a few of the tutorials I've worked through. I hate to bother people with my noobishness, but I get the feeling I can save a ton of time by asking for a few brief explanations rather than spending hours per issue.
So my most relevant problem is the following situation:
Input: p, t, or z (literally)
Desired output: pL.jpg, tL.jpg, or zL.jpg
Essentially, I parse the data 'p' 't' or 'z' from a website, and then wish to display a relative icon. I've gotten this to work to a degree by using a measure to retrieve the data from my parser, modify the input to the relevant icon's file path, and then reference this measure in my image meter's info.
In most coding languages I'd just handle the input translation with an if statement (my personal crutch) but that doesn't seem applicable here. Am I right? The two best ways I've been able to reason might work are converting the letters to their ASCII values and using substitute in combination with a calc measure to translate without the risk of reoccurring substitution or simply dropping the input straight into the filepath somehow (see hypothetical code below).
Also, can you / how would you convert a character into a number for the purpose of using a rigged CALC as an IF statement (like the enigma weather skin does). Finally, is there anyway to reference a string within a filepath in order to avoid these shenanigans entirely?