topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday November 26, 2020, 7:38 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - -Huub- [ switch to compact view ]

Pages: [1]
1
Hi MilesAhead,

Your suggestion worked partial, but it has a negative side effect if I use your code together with the window name under win 10, the LMB on the clock is blocked like I asked.

Code: Autohotkey [Select]
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. $LButton::
  7. MouseGetPos,X,Y,Win,Contr
  8. If (Contr != "TrayClockWClass1")
  9.         Send, {LButton}
  10. return

I can even use the LMB on the windows start menu. But the negative side effect is that the LMB also doesn't work anymore for all program windows, I could not move the open program windows on my screen.

2
If IsArray($aTaskbar_Pos) Then ; Check if array is returned

Thx 4wd!!!

3
Hello 4wd,

Yes you fixed it, cool! What part/line did you change ?


Br

Huub

4
Hi MilesAhead,

Thanks for your effort but this still doesn't work, I can still click on the systray clock icon with the left mouse button.
The script from 4wd worked only I got an error when I was double clicking the start menu button.
Is there a way of disabling the left mous click based on the mouse position x and Y area ?


br

Huub

5
Hello 4wd,

I tried your suggestion with the autoit stuff, it seems to work all fine but when I double click the windows start menu I get following error:

error.PNG

Any idea what could cause this ?

br

6
Of course, I mean the area far right, it's marked yellow on the picture.

7
Hi MilesAhead,

This blocks all left mouse clicks, I would only like to disable it on the far left icons, in this screenshot I have marked the area in yellow that I would like to disable the lefts mouse click for.
LeftMouse.png

8
Hi all,

Does someone know a way of disabling the left mouse click but only on the windows taskbar and only for the most left icons like the clock, network and sound icons. Not for the windows start icon or a program window.

So only for this area:
clock.png

9
Hi Skrommel thanks for your reply, but it doesn't work.. As mentioned I need it in win 8.1 with the standard Microsoft PDF viewer.
Also the untouched script doesn't work with notepad..
Do I do something wrong ?

10
Ok guys I have got a new question.
I would like to disable the left mouse button with a AHK script but only for the (left bottom) win 8.1 Start Button, and only if (within) the Microsoft App Reader (the MS app  that runs PDF documents full screen by default) is active.

A screenshot :

dlmb.png

So it should still be possible to use the left mouse button within the Microsoft App Reader for the top right corner, so that I can close the reader.
After the Reader app has been closed the left mouse button should have no restrictions..

11
Hi Skwire, this has done the trick! you rock!!!!
Thx!

12
Hi Skwire, alomst there, it worked the only thing I see is that when you sript is active and the mouse cursor is is not in the prog32.exe program, the right mouse button acts like a left mouse button.
So if I click with the right button on a shortcut, or Start button it does the same as if I use the left mouse button, could it than be inactive like RButton::return ?

13
OK sorry

14
Hi Skwire, this almost works! If the program window (ahk_class ProMainWin) is active and I go to the toolbar for instance, I can still rightclick.. If  the program window (ahk_class ProMainWin) isn't active it works great. Would it be possible to adjust the code so that it knows the size of the active  program window (ahk_class ProMainWin), so that it only works within the program ?
Or put some extra code in that will deactive the program window if the mouse leaves it ?

15
It seems that no one can help me with my question regarding disabeling the right mouse button for my desktop and all programs except a specific program (https://www.donation...ex.php?topic=39467.0)
Maybe I have to get a workaround, does anyone knows how to make a AHK script that disables the right mouse button for the windows taskbar incl the startbutton and with a specific height ?


16
If I look it up with AHK, it is ahk_class ProMainWin

17
Hi lanux128, Thx for your quick reply.
Your solution is not exactly what I was looking for. I want to disable the right mouse click for everything, it should only work if a specific program (prog32.exe) is active.
Your solution is only blocking the right mouse button for specified programs.

18
Hi, I was wondering if someone could help me with a AHK script that disables the right mouse button, but only enables it within a certain program that is running.
So if the program is active the user can only use the right mouse button within this specific program, trying the right mouse button on the taskbar, start menu button, desktop or even a other program other then mentioned is not allowed..

Thx in advanced!

Pages: [1]