Notepad / Word / Wordpad

1 reply [Last post]
รูปภาพของ jw25
Joined: 08/17/2008
Posts: 51
User offline. Last seen 7 ชั่วโมง 19 นาที ago.

Buttons

Description & Info: Launch the editor of choice with L/M/R click

Notepad / Word / Wordpad
Compatibility: 

Minefield Firefox 3.0.* Firefox 2.0.* Firefox 1.5.* Flock Thunderbird 3.* Thunderbird 2.*

Author(s): 
jw25 and SCClockDr
Description & info:

Behavior

Action Behavior

Left

Launch Notepad

Middle

Launch M$ Word

Right

Launch Wordpad

Right+Shift

Context Menu

รุ่น

수정복사본 작업
03/02/2009 - 11:01, admin

update compatibility field

현재 수정복사본
02/27/2009 - 18:25, SCAdmin
02/26/2009 - 05:32, rawny
02/25/2009 - 23:54, makondo
02/25/2009 - 23:53, makondo
02/25/2009 - 23:52, makondo

Moved Post

รหัส

javascript: Copy To Clipboard
/*Code*/
// =============================================================================

Init

javascript: Copy To Clipboard
/*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.

รายละเอียด

Top
Joined: 01/26/2009
Posts: 4
User offline. Last seen 2 วัน 2 ชั่วโมง ago.

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

Top