Code: Select all
//Save settings
#182;
//Getkeys
getkey $count, "count", "CustomButtons";
getkey $toolbar, "Toolbar", "General";
//Increment count
incr $count;
//Button code
$button= <<<BUTTONCODE
"My Computer|:myco|0" "My Computer|:myco" button "myco", 1 "System info|%winsysdir%\shell32.dll /24"¶¶ run "msinfo32";¶¶-¶¶"Control panel|%winsysdir%\shell32.dll /22"¶¶ #640;¶¶"-Add/Remove programs|%winsysdir%\shell32.dll /163"¶¶ run "control appwiz.cpl";¶¶"-Device manager|%winsysdir%\shell32.dll /164"¶¶ run "devmgmt.msc";¶¶"-Computer management|%winsysdir%\shell32.dll /233"¶¶ run "compmgmt.msc";¶¶"-Display properties|%winsysdir%\shell32.dll /142"¶¶ run "control desk.cpl";¶¶"-Sound properties|%winsysdir%\shell32.dll /169"¶¶ run "control mmsys.cpl sounds";¶¶¶¶¶¶¶¶
BUTTONCODE;
//Setkeys
setkey $count, "count", "CustomButtons";
setkey $button, $count, "CustomButtons";
//append button to current buttons list and setkey
$toolbar=$toolbar.",ctb$count";
setkey $toolbar, "Toolbar", "General";
//Restart without saving
#190;
XYplorer Beta Club