DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Disable Rightclick  (Read 6,042 times)

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
DONE: Disable Rightclick
« on: October 26, 2009, 02:14 PM »
I want to use my laptop for a presentation and allowing people to use my mouse to navigate through screens. Although, I want to temporarliy disable the right click of my mouse. Is it hard to disable it? Also, I would like it if the left mouse button will be disabled after every click for 10 seconds.
« Last Edit: October 26, 2009, 02:16 PM by Coeluh »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Disable Rightclick
« Reply #1 on: October 26, 2009, 02:54 PM »
take a look here for some solutions. you can also use this snippet.

Code
#Persistent
#SingleInstance force
#NoEnv
SendMode, Input

*RButton::Return

*LButton::
Send, {LButton}
Sleep, 10000  ;10 seconds
Return

Original address: https://www.donationcoder.com/forum/index.php?topic=20404.0