Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-05-2008, 04:16 PM   #1
BSOD
 
Join Date: Jan 2008
Posts: 7
Default a code to disable left and right click?

is there a code that can disable right and left clicks and can only be removed by a password? and every time you try to right or left click a small menu thing pops up asking for a password to re enable the left and right click again?
or how can i make a code like that?
__________________

smileysmile is offline   Reply With Quote
Old 01-05-2008, 04:18 PM   #2
Fully Optimized
 
blackjack's Avatar
 
Join Date: Mar 2007
Posts: 2,945
Send a message via MSN to blackjack
Default Re: a code to disable left and right click?

Never done it but try this mate http://www.bigwebmaster.com/1202.html
__________________

__________________
Compaq Presario CQ5305K-m Intel® Pentium® Dual Core E5300 (2.6 GHz), Windows® 7 Home Premium 64 bit, 2048 MB , Hard drive: 320 Gb, with 18.5 Widescreen
SPURS TILL I DIE (DIAMONDS ARE FOREVER SO ARE SPURS)
TO DARE IS TO DO
blackjack is offline   Reply With Quote
Old 01-05-2008, 04:21 PM   #3
BSOD
 
Join Date: Jan 2008
Posts: 7
Default Re: a code to disable left and right click?

Quote:
Originally Posted by blackjack View Post
Never done it but try this mate http://www.bigwebmaster.com/1202.html
is there one for C++ and disables left and right click no matter what? like on the internet browsers and on the computer itself?
smileysmile is offline   Reply With Quote
Old 01-17-2008, 06:36 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: a code to disable left and right click?

to do this you'd have to create a ring 0 dll file that captured the hardware event that is on-left-click and on-right-click.

I don't know how to do that, but that starting point is better than nothing.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 02-03-2008, 01:19 AM   #5
Daemon Poster
 
Szat's Avatar
 
Join Date: Oct 2007
Location: United States
Posts: 625
Default Re: a code to disable left and right click?

I have been on websites in the past where they didn't allow you to right click, but I don't know how to help you.
__________________
Intel Quad 6600, Asus P5N-E SLI, GeForce GTX 560 1GB, 6GB RAM, 500GB HDD, Zalman 9700NT, X-Fi Xtreme Gamer, 650 watt PSU
Szat is offline   Reply With Quote
Old 02-03-2008, 12:55 PM   #6
Guru
 
JogaBonito1502's Avatar
 
Join Date: Jan 2008
Location: U.S.
Posts: 7,841
Default Re: a code to disable left and right click?

I need a little more information here. What exactly are you trying to do and why?
JogaBonito1502 is offline   Reply With Quote
Old 02-08-2008, 02:33 PM   #7
In Runtime
 
Join Date: Mar 2007
Posts: 383
Default Re: a code to disable left and right click?

I dont know about c++ but the javascript one is pretty abundant, most people do it so others cannot save images from there site, you can even insert messages where they are given a certain amount of warnings to stop it before they get booted. Its better than nothing, but you could still dl the website and get it that way.
pooker is offline   Reply With Quote
Old 02-09-2008, 06:03 PM   #8
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: a code to disable left and right click?

You can do it in javascript if you want to use it in websites. Although you cannot disable left click (for obvious reasons) and javascript is totally insecure.
__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Old 02-10-2008, 02:04 AM   #9
Fully Optimized
 
Š88's Avatar
 
Join Date: May 2005
Posts: 4,775
Send a message via MSN to Š88
Default Re: a code to disable left and right click?

if you have the GLUT (openGL) library you can define what the mouse buttons do.
__________________

__________________
Killing under the cloak of war is no different than murder

Kein Alkohol ist auch keine Lösung!
Š88 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0