AVForums

Our philosophy in our forums, reviews, podcasts and feature videos is to promote audio and visual excellence by gathering and sharing the best information and resources available.

Help

To begin please visit our help section »

Not a Member Yet?

It only takes a minute to start enjoying the benefits of AVForums membership, and it's free!

Member Log in

Turn Off Right-Click in Windows completely

Post Reply
Old 10-07-2009, 1:12 PM   #1
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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
  Quote
Old 10-07-2009, 1:15 PM   #2
Member
 
pawnstar's Avatar
Join Date: Jun 2009
Experience Points:
1,492, Level: 8
Points: 1,492, Level: 8 Points: 1,492, Level: 8 Points: 1,492, Level: 8
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%
Thanks: Gave 49, Got 36
Posts: 520
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
  1. Open up the "run" command (if it is disabled use 'Windows Key' + R)
  2. Type in "regedit" but without the quotations. Then push enter.
  3. Navigate to:
  4. [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer]
  5. Look for the value name "NoViewContextMenu" (if no such value exists, then just go ahead and create it)
  6. Make sure the type is REG_DWORD
  7. Type in a 0 to disable right clicking and a 1 to enable right clicking.
  8. Restart your computer after the modification.
  Quote
Old 10-07-2009, 2:46 PM   #3
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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.
  Quote
Old 10-07-2009, 2:57 PM   #4
Member
 
pawnstar's Avatar
Join Date: Jun 2009
Experience Points:
1,492, Level: 8
Points: 1,492, Level: 8 Points: 1,492, Level: 8 Points: 1,492, Level: 8
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%
Thanks: Gave 49, Got 36
Posts: 520
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>
  Quote
Old 10-07-2009, 3:02 PM   #5
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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
  Quote
Old 10-07-2009, 3:49 PM   #6
Illustrious Member
 
Singh400's Avatar
Join Date: Feb 2006
Location: Earth
Experience Points:
32,621, Level: 44
Points: 32,621, Level: 44 Points: 32,621, Level: 44 Points: 32,621, Level: 44
Activity: 21.2%
Activity: 21.2% Activity: 21.2% Activity: 21.2%
Thanks: Gave 900, Got 2,126
Posts: 16,170
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.
  Quote
Old 10-07-2009, 4:59 PM   #7
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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
  Quote
Old 10-07-2009, 7:26 PM   #8
Distinguished Member
Join Date: Aug 2006
Location: Redditch
Experience Points:
28,165, Level: 40
Points: 28,165, Level: 40 Points: 28,165, Level: 40 Points: 28,165, Level: 40
Activity: 99.3%
Activity: 99.3% Activity: 99.3% Activity: 99.3%
Thanks: Gave 39, Got 2,262
Posts: 12,805
Re: Turn Off Right-Click in Windows completely

Quote:
Originally Posted by Soultech View Post
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.
  Quote
Old 10-07-2009, 7:54 PM   #9
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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.
  Quote
Old 10-07-2009, 7:59 PM   #10
Member
 
pawnstar's Avatar
Join Date: Jun 2009
Experience Points:
1,492, Level: 8
Points: 1,492, Level: 8 Points: 1,492, Level: 8 Points: 1,492, Level: 8
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%
Thanks: Gave 49, Got 36
Posts: 520
Re: Turn Off Right-Click in Windows completely

Something like this?

Uza’s Blog & More » Blog Archive » SOLVED: Right Click in AS3
  Quote
Thanks from:
Soultech (10-07-2009)
Old 10-07-2009, 8:04 PM   #11
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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
  Quote
Old 10-07-2009, 8:22 PM   #12
Member
Join Date: Nov 2008
Location: Dundee
Experience Points:
3,094, Level: 13
Points: 3,094, Level: 13 Points: 3,094, Level: 13 Points: 3,094, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 11, Got 21
Posts: 152
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.
  Quote
Old 11-07-2009, 2:01 AM   #13
Member
 
pawnstar's Avatar
Join Date: Jun 2009
Experience Points:
1,492, Level: 8
Points: 1,492, Level: 8 Points: 1,492, Level: 8 Points: 1,492, Level: 8
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%
Thanks: Gave 49, Got 36
Posts: 520
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?
  Quote
Old 13-07-2009, 8:09 AM   #14
Illustrious Mumbler
 
Mr Incredible's Avatar
Join Date: Dec 2003
Location: The Fylde Coast
Experience Points:
19,492, Level: 33
Points: 19,492, Level: 33 Points: 19,492, Level: 33 Points: 19,492, Level: 33
Activity: 10.6%
Activity: 10.6% Activity: 10.6% Activity: 10.6%
Thanks: Gave 1,658, Got 3,429
Posts: 15,605
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?


Last edited by Mr Incredible; 13-07-2009 at 8:11 AM.
  Quote
Post Reply



Thread information and display options
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off