Alex wrote: <snip> > The above script is of course unnecessarily intricate
I guess you mean, for example, instead of: > ; --- all one line below > Win.Move(WinHandle, (XScreen - Win.Width(WinHandle)) / 2, (YScreen - > Win.Height(WinHandle)) / 2) > ; --- all one line above You could have used: window.center(winhandle) which works but has the disadvantage that it's less intricate ;-) ____________________________________ You could reduce the script to about 50 per cent, without affecting any of its features, like this: Instead of each nameN=valueN pair in the menu having a value which is then tested for in one of the many if() lines later in the script, each valueN could be the actual resulting command. Then instead of all those if() lines, you could have a single line: do(valueN) That would avoid scrolling backwards and forwards, when editing, to see the actual command for a particular menu item. Of course to do that you would also want to reduce the size of the resulting commands. For example as shown above, reducing that long command to window.center(). If just one of the commands looks too long to be inserted directly into the menu as an =value, such as that three quarter sizing routine which uses the float plugin, you could make that value: [EMAIL PROTECTED](width) which will be done by the single do() command. I think you would only need one such labelled section to be called. All your other commands are small enough to fit directly in the =value part of the menu. _____________________________________________ That could reduce the size of the script to about 50% without affecting any of its features. Feeling a bit mischievous, I'll also mention the friendlier alternative: You could reduce it further, to a single command: Bar ToMouse bar_RclickCaption but that would affect its features slightly, losing a few and gaining several. You would have to change: > It uses the MiscPlugin to show the menu, > removing the need for a specialised command list. To: > It uses one of PowerPro's feature rich command lists, > removing the need for an unnecessarily intricate script. I'd better stop now lest I start repeating my advocacy of simplicity. :-) Alan M ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> 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/
