home *** CD-ROM | disk | FTP | other *** search
/ Minami 40 / MINAMI40.ISO / Extra / winamp3_0-full.exe / Wacs / xml / config / scripts / cfgbool.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2002-06-25  |  2KB  |  70 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Text Text17;
  6. Global ToggleButton ToggleButton18;
  7. Global CfgGroup CfgGroup19;
  8. Global Button Button20;
  9.  
  10. Function func0();
  11.  
  12. func0()
  13. {
  14. PopupMenu PopupMenu7;
  15. Int Int13;
  16. CfgGroup CfgGroup4;
  17. String String6;
  18. String String5;
  19. if(( System.isKeyDown(17) && System.isKeyDown(16))) {
  20. CfgGroup4 = System.getScriptGroup();
  21. String5 = CfgGroup4.cfgGetGuid();
  22. String6 = CfgGroup4.cfgGetName();
  23. PopupMenu7 = ( new PopupMenu);
  24. PopupMenu7.addCommand(( ( "GUID\:\ ") + String5), 0, 0, 1);
  25. PopupMenu7.addCommand(( ( "Attr\:\ ") + String6), 0, 0, 1);
  26. PopupMenu7.addSeparator();
  27. PopupMenu7.addCommand(( "Copy\ to\ clipboard\ "), 1, 0, 0);
  28. Int13 = PopupMenu7.popAtMouse();
  29. delete PopupMenu7;
  30. if(( Int13 == 1)) {
  31. System.setClipboardText(( ( ( ( ( ( "cfgattrib\=") + System.Chr(34)) + String5) + ( "\;")) + String6) + System.Chr(34)));
  32. }
  33. complete;
  34. return 1;
  35. }
  36. return 0;
  37. }
  38.  
  39. System.onScriptLoaded()
  40. {
  41. CfgGroup19 = System.getScriptGroup();
  42. Text17 = CfgGroup19.getObject(( "cfg\.txt"));
  43. ToggleButton18 = CfgGroup19.getObject(( "cfg\.toggle"));
  44. Button20 = CfgGroup19.getObject(( "cfg\.toggle2"));
  45. return Null;
  46. }
  47.  
  48. ToggleButton18.onToggle(Boolean onoff)
  49. {
  50. CfgGroup19.cfgSetInt(onoff);
  51. return Null;
  52. }
  53.  
  54. CfgGroup19.onCfgChanged()
  55. {
  56. Text17.setText(CfgGroup19.cfgGetName());
  57. ToggleButton18.setActivated(CfgGroup19.cfgGetInt());
  58. return Null;
  59. }
  60.  
  61. Button20.onLeftClick()
  62. {
  63. if(( ! func0())) {
  64. ToggleButton18.leftClick();
  65. }
  66. return Null;
  67. }
  68.  
  69.  
  70.