 |
|
10-07-2009, 1:12 PM
|
#1 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Turn Off Right-Click in Windows completely
Hi all,
I am looking for info from anyone as to if it's possible to completely disable the right click in Windows XP, e.g. not just in IE (you can still right click flash files, or if you know how to stop right clicking on flash files in IE that'll be good too). Preferably I'd like to use no additional tools or drivers as it will be used for business purposes and I don't want licensing hassle.
Any help would be greatly appreciated.
Soultech
|
|
|
10-07-2009, 1:15 PM
|
#2 (permalink)
|
|
Member
Join Date: Jun 2009
Posts: 151
Thanks: Gave 11, Got 21
|
Re: Turn Off Right-Click in Windows completely
Umm.. WHY?
If you need to, I got this from: How to Disable Right Click in Windows XP: 8 steps - wikiHow
- Open up the "run" command (if it is disabled use 'Windows Key' + R)
- Type in "regedit" but without the quotations. Then push enter.
- Navigate to:
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer]
- Look for the value name "NoViewContextMenu" (if no such value exists, then just go ahead and create it)
- Make sure the type is REG_DWORD
- Type in a 0 to disable right clicking and a 1 to enable right clicking.
- Restart your computer after the modification.
__________________
Nothing in this world is idiot-proof. New models of idiot come out all the time.
|
|
|
10-07-2009, 2:46 PM
|
#3 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Re: Turn Off Right-Click in Windows completely
Thanks for this but this is not exactly what I needed. This only works in Explorer Windows but what I need is for it to work in IE (which I can do) and on Flash (which you can't seem to do completely) which is why I need a full right click disable in Windows so the right click isn't actioned at all.
Thanks anyway.
Alternatively, if anyone can advise of a way to make the left and right click act as a left click this would also be great.
Last edited by Soultech; 10-07-2009 at 2:54 PM.
|
|
|
10-07-2009, 2:57 PM
|
#4 (permalink)
|
|
Member
Join Date: Jun 2009
Posts: 151
Thanks: Gave 11, Got 21
|
Re: Turn Off Right-Click in Windows completely
The menu of a flash movie can be disabled using the menu attribute, and setting it to false like so:
<EMBED src=transparent.swf type="text/html;
charset=iso-8859-1" quality="high" menu=false
bgcolor=#000000 WIDTH=120 HEIGHT=30>
__________________
Nothing in this world is idiot-proof. New models of idiot come out all the time.
|
|
|
10-07-2009, 3:02 PM
|
#5 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Re: Turn Off Right-Click in Windows completely
Thanks again Pawnstar but that only reduces the menu to 'Settings' and 'About' which will still appear when a right click happens. Unfortunately I need it to not show any menu at all
|
|
|
10-07-2009, 3:49 PM
|
#6 (permalink)
|
|
Conspicuous Member
Join Date: Feb 2006
Location: Earth
Posts: 8,315
Thanks: Gave 500, Got 1,136
|
Re: Turn Off Right-Click in Windows completely
What exactly are you trying to achieve. Perhaps there is another method to what you are trying to achieve.
__________________
[CPU: Q9450 @ 3.6Ghz|RAM: Corsair PC2-8500 (2x2GB)]
[MOBO: Asus P5Q Deluxe (1406)|HDD#1: Samsung F1 750GB]
[HDD#2: OCZ SSD V1 32GB|GFX: BFG 9800GTX+ OC|PSU: Corsair HX 620W]
|
|
|
10-07-2009, 4:59 PM
|
#7 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Re: Turn Off Right-Click in Windows completely
I have a system that runs a fullscreen IE window, that has an embedded Flash file. A user can plug a mouse into it but mustn't be able to see any context menus, in either IE, graphics or on the Flash file. IE has a setting which you can disable website right clicks but this is not effective in Flash. As pawnstar suggested above there is a setting to stop the main context menu in Flash but it still shows a context menu with About and Settings and the requirement is to show no context menus at all.
Left click still needs to be enabled so an overlay is not a suitable suggestion unless it allows left clicks through. Shareware/license tools are not an option either (there are ones out there that do it for teaching kids to use a PC etc) and neither is a single button mouse.
Any suggestions would be gratefully received. I am currently investigating using Windows hooks to programmatically grab the right click and just not action it but any other suggestions would be great.
Thanks
|
|
|
10-07-2009, 7:26 PM
|
#8 (permalink)
|
|
Prominent Member
Join Date: Aug 2006
Location: Redditch
Posts: 4,340
Thanks: Gave 12, Got 864
|
Re: Turn Off Right-Click in Windows completely
Quote:
Originally Posted by Soultech
I have a system that runs a fullscreen IE window, that has an embedded Flash file. A user can plug a mouse into it but mustn't be able to see any context menus, in either IE, graphics or on the Flash file. IE has a setting which you can disable website right clicks but this is not effective in Flash. As pawnstar suggested above there is a setting to stop the main context menu in Flash but it still shows a context menu with About and Settings and the requirement is to show no context menus at all.
Left click still needs to be enabled so an overlay is not a suitable suggestion unless it allows left clicks through. Shareware/license tools are not an option either (there are ones out there that do it for teaching kids to use a PC etc) and neither is a single button mouse.
Any suggestions would be gratefully received. I am currently investigating using Windows hooks to programmatically grab the right click and just not action it but any other suggestions would be great.
Thanks
|
How about the Blue Peter Approach  , open up the mouse and snip one of the wires off the right button microswitch.
__________________
Topfield5800, Humax9200T, Humax8000, Humax Foxsat-hdr, Denon 1920 DVD, Sony BDP-S350 Blue Ray, Denon AVR4306 AV amp, Sony KDL-40W4000 TV.
|
|
|
10-07-2009, 7:54 PM
|
#9 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Re: Turn Off Right-Click in Windows completely
haha, nice try  . The system is a delivered system so any old mouse could be plugged into it so I have no control over that the solution has to be software i'm afraid.
|
|
|
10-07-2009, 7:59 PM
|
#10 (permalink)
|
|
Member
Join Date: Jun 2009
Posts: 151
Thanks: Gave 11, Got 21
|
Re: Turn Off Right-Click in Windows completely
__________________
Nothing in this world is idiot-proof. New models of idiot come out all the time.
|
|
|
10-07-2009, 8:04 PM
|
#11 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Re: Turn Off Right-Click in Windows completely
hmmmm...let me power up the old laptop and give it a go.
Cheers for the hard work
|
|
|
10-07-2009, 8:22 PM
|
#12 (permalink)
|
|
Member
Join Date: Nov 2008
Location: Dundee
Posts: 119
Thanks: Gave 10, Got 16
|
Re: Turn Off Right-Click in Windows completely
Have a thanks because I couldn't find any method to do that but (here i go adding more problems  ) preferably I would like to not have to edit the actual Flash file.
So keep the suggestions coming.
|
|
|
11-07-2009, 2:01 AM
|
#13 (permalink)
|
|
Member
Join Date: Jun 2009
Posts: 151
Thanks: Gave 11, Got 21
|
Re: Turn Off Right-Click in Windows completely
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}
function trap()
{
if(document.images)
{
for(i=0;i<document.images.length;i++)
{
document.images[i].onmousedown = right;
document.images[i].onmouseup = right;
}
}
}
// End -->
</SCRIPT>
</HEAD>
<!-- STEP ONE: Copy the event handler into the BODY tag -->
<BODY onLoad="trap()">
<!-- Script Size: 0.81 KB -->
Any good?
__________________
Nothing in this world is idiot-proof. New models of idiot come out all the time.
|
|
|
13-07-2009, 8:09 AM
|
#14 (permalink)
|
|
Veteran Member
Join Date: Dec 2003
Location: St-Annes-On-Sea
Posts: 5,773
Thanks: Gave 656, Got 1,182
|
Re: Turn Off Right-Click in Windows completely
Would reassigning the right-click in the mouse Control Panel applet work? i.e. make the right button produce a left click action?
__________________
| Bob | | Sony KL-50W2 | Denon 3805 + POA-T10 | Denon 2900 | B&Ws 604/602/LCR600 s3 7.1 | SVS B12-ISD | BFD | Showcenter 200 | Sky+(250GB) | Scorpion & Mark Grant |
| GA-EP45-UD3R | Q6700 @ 3.52GHZ | 8GB OCZ @ 1056 | XFX GTX260 | Corsair 650W TX | Thermalright 120 Extreme | Akasa Infinity |
Last edited by Mr Incredible; 13-07-2009 at 8:11 AM.
|
|
|
| |