7m…ôcU•\cd%rem > Hi guys,rem >rem > I'm trying to get a list of all apps running on my S5. I would like torem > get the thread id and program name. I'm currently using a loop with therem > getthread funtioncs, but I have to make a loop which increment the arem > thread variables each time, of course this is a crapy way to do this...rem > is there a way I can get the thread ID of all the running program on myrem > S5 without doing such loop !rem Try the code below. ThreadName$(i%) gets some other data as well - you'llrem see if you run it. The other data consists of 3 strings, each terminatedrem by a zero byte. So count 3 zero bytes from the start of eachrem ThreadName$(), and the next byte is the start of the filename.rem You need system.opx included at the top of your program.i%=0ONERR last_oneDOi%=i%+1ThreadID&(i%)=GetThreadIDFromOpenDoc&:("*",previous&)ThreadName$(i%)=GetNextWindowGroupName$:(ThreadID&(i%),prev&)UNTIL 0last_one::ONERR OFFÐР   \cïefd\c÷efd‚.ÆA…*TextEd.app…ÿ‰†