Substrings Thread last updated on 2003-11-11 23:20:23

Posted by member 81327 on 2003-11-11 20:27:41

Is there a function similiar to the javascript substring()?
I've looked in the docs, but I'm new to this and not really sure where to look :S

What I'm trying to do is remove the "(playing)" off Winamp3's title for use with a label (I'm using dynamp-0.5). I already know it's playing - I can hear it.

Any help would be appreciated.
Otherwise, I might have to go an make myself a module :)

- Xavier
http://www.noreality.net

Posted by member 37809 on 2003-11-11 22:38:26 link

Posted by member 81327 on 2003-11-11 23:20:23 link

Sort of. I found the beforeLast function, which seems to work nicely:
AmpLblText "[beforeLast(windowTitle('Studio'), '(')]"

Thanks for that
- Xavier
http://www.noreality.net