Mike Campbell wrote: > <snip> I want a single button that I can click to have it > alternate between memory and cpu usage. <snip>
David Troesch wrote: > You could build a script that sets a variable or flag, > and use an If() for the flag, you decide which one to display, > and then flip the flag so next time around your if() statement > evaluates to the other item. The command for your button could run this script: Flag reverse 31 if(pproflag(31)) do cl.SetLabel(clname, clindex, "*Info ppmem%") else cl.SetLabel(clname, clindex, "*Info cpu") endif Notes: Change "clname" to your command list's name, in quotes. Change "clindex" to the item number (they are numbered from 0). Use any flag number from 1 to 31 (don't use flag 0). *Info cpu works in Win95/98 but not in NT/2000/XP. Alan Martin 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/
