home *** CD-ROM | disk | FTP | other *** search
/ Minami 40 / MINAMI40.ISO / Extra / winamp3_0-full.exe / Wacs / xml / config / scripts / cfgint.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2002-06-25  |  2KB  |  69 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 Edit Edit18;
  7. Global CfgGroup CfgGroup19;
  8. Global Button Button20;
  9.  
  10. Function func0();
  11.  
  12. func0()
  13. {
  14. String String5;
  15. Int Int13;
  16. PopupMenu PopupMenu7;
  17. CfgGroup CfgGroup4;
  18. String String6;
  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. Edit18 = CfgGroup19.getObject(( "cfg\.edit"));
  44. Edit18.setAutoEnter(1);
  45. Button20 = CfgGroup19.getObject(( "cfg\.toggle2"));
  46. return Null;
  47. }
  48.  
  49. Edit18.onEnter()
  50. {
  51. CfgGroup19.cfgSetInt(System.StringToInteger(Edit18.getText()));
  52. return Null;
  53. }
  54.  
  55. CfgGroup19.onCfgChanged()
  56. {
  57. Text17.setText(CfgGroup19.cfgGetName());
  58. Edit18.setText(System.integerToString(CfgGroup19.cfgGetInt()));
  59. return Null;
  60. }
  61.  
  62. Button20.onLeftClick()
  63. {
  64. func0();
  65. return Null;
  66. }
  67.  
  68.  
  69.