I'm testing to see if there's a performance difference between running something from inside the .pcf vs running from a script file. This is running as quickly as possible (every 200-300ms in succession), so it's important to have as fast a response as possible.
I'm trying to take these commands from a script file: Local osd_total_items = 40 Local m_volume = volume * 100 / 255 Local rounded = m_volume * 8 / osd_total_items Local itemnum, current Local color_muted = 3158271 Local color_normal = 49407 For(current=0; current < rounded; current = current + 1) <one line> Format Item item &(1 + current * 2) list "bar_Info_Volume" ownback 1 colorback &(ifelse(muted, color_muted, color_normal)) <end one line> Endfor Download an Export of how I have it entered in the pcf from here: ftp://powerpro.dyndns.org/uploads/ppscripts/OSDVolumeinPCF.ini It creates/overwrites 2 commandlists called: "Scripts: Volumebar" and "bar_Info_Volume" Run the script with: Script run "Scripts: Volumebar" @ RePaintVolumeOSD --------------- When run I'm getting an error: Internal Error. Expecting For Script For(current=0; current < rounded; current = current + 1) Error occurred near line 6 which contained: Script For(current=0; current < rounded; current = current + 1) Press Cancel to end all running scripts. --------------- Any ideas what's wrong? David Troesch | Atlanta, GA | ICQ# 2333123 Using Outlook Express and want some color? OE-Quotefix http://tinyurl.com/39goy Funstuff: Barium: what you do with dead chemists. Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
