Notepad / Word / Wordpad
Buttons
Description & Info: Launch the editor of choice with L/M/R click
Behavior
| Action | Behavior |
|---|---|
| Launch Notepad | |
| Launch M$ Word | |
| Launch Wordpad | |
| Context Menu |
รุ่น
รหัส
/*Code*/ // =============================================================================
Init
/*Initialization Code*/ if (typeof custombuttons.uCbuttonButes != 'function') { alert(custombuttons.bundle.GetStringFromName('ButtonCompatabilityAlert')); this.disable(true); } var Msg = createMsg(this.label); var de = createDebug(this); /*----------------- Custom Buttons2 Mouse Handler ------------------ Remove the un-necessary Functions within this code block or the entire code block for very simple left click buttons. Replace the function call "gShowPopup(this)" within each needed Click Function with the function call of your choice. Your function call will then execute. Access to the click event Object (evt) provides you full control. --------------------------------------------------------------------*/ this.leftclick = function(evt){ this.startProcess('C:/WINDOWS/notepad.exe'); } this.sleftclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.aleftclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.cleftclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.midclick = function(evt){ this.startProcess('c:/program files/microsoft office/office10/winword.exe'); } this.smidclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.amidclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.cmidclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.rightclick = function(evt){ this.startProcess('c:/program files/windows nt/accessories/wordpad.exe'); } this.arightclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.crightclick = function(evt){ gShowPopup(this); // Replace with call of your choice } this.setAttribute( 'onclick', 'gQuot( event, this )' ); // Calls the Golbal MouseClick handler gQuot /*----------------- Custom Buttons2 Mouse Handler End -------------------*/ /*---------------------- Button Code Block Start ------------------------*/ this.startProcess=function(path,args){ var file = Components.classes['@mozilla.org/file/local;1'] .createInstance(Components.interfaces.nsILocalFile); var process = Components.classes['@mozilla.org/process/util;1'] .getService(Components.interfaces.nsIProcess); file.initWithPath(path.replace(/\//g,'\\\\')); file.launch(); } /*----------------------- Button Code Block End -------------------------*/ /*---------------------- Show Focus Block Start ------------------------*/ /*------------------ un-comment to show mouseover effects -------------*/ /* this.style.opacity = '.65'; this.setAttribute('onmouseover', 'custombuttons.ButtonBrt(event);' ); this.setAttribute('onmouseout', 'custombuttons.ButtonDim(event);' ); */ /*----------------------- Show Focus Block End -------------------------*/ /*--------------- Custom Buttons2 Attributes Block Start ----------------*/ this.setAttribute('author','jw25, SSClockDr, others'); this.setAttribute('version','20071113.05'); this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/notepad-word-wordpad.html'); this.setAttribute('dependency','null'); this.setAttribute('status','Dev'); this.setAttribute('public',true); //this.tooltipText += ' L: Notepad | M: Word | R: Wordpad'; /*---------------- Custom Buttons2 Attributes Block End -----------------*/
คู่มือการใช้งาน
/*Help*/%A%AThe%0path%0to%0the%0programs%0may%0need%0to%0be%0edited%0to%0suit%0your%0needs.







Thankyou for this helpful button !
I use it many times a day. It also allows me to remove Notepad and Wordpad from my taskbar, and save space there.
The button image is very pretty and easy to find.
RATED: 5 stars out of 5 stars !
Thankyou so much jw25 and SCClockDr !
And Extra thankyou jw25 for the modification instructions !
Custom Buttons² was not found: find out why...
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Posted with the theme Pluralism