topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday December 2, 2024, 4:55 pm
  • 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

Author Topic: Disable left mouse click only on start menu in windows 8.1 if Microsoft app Read  (Read 9051 times)

-Huub-

  • Supporting Member
  • Joined in 2014
  • **
  • default avatar
  • Posts: 18
    • View Profile
    • Donate to Member
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..

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Just modify this script, it blocks the 100x100pixels of the bottom left corner of a maximized Notepad window.

Skrommel

Code: Autohotkey [Select]
  1. ;PreventClick.ahk
  2. ;  Prevent clicking in the bottom left corner of Notepad when it is maximized
  3. ;Skrommel @ 2014
  4.  
  5.  
  6. Hotkey,IfWinActive,ahk_class Notepad
  7. Hotkey,LButton,NOTEPAD
  8. Return
  9.  
  10.  
  11. NOTEPAD:
  12. WinGet,minmax,MinMax,ahk_class Notepad
  13. WinGetPos,wx,wy,ww,wh,ahk_class Notepad
  14. If (minmax=1 And mx>=wx And mx<=wx+100 And my>=wy+wh-100 And my<=wy+wh)
  15. {
  16.   ToolTip,Click blocked
  17.   Return
  18. }
  19. Return
  20.  
  21.  
  22. F12::

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
hi there, skrommel! :) 8) :-*

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
WAIT.
DID.
THAT.
JUST.
HAPPEN?

SKROMMEL?








SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!
SKROMMEL!!!!!!




-Huub-

  • Supporting Member
  • Joined in 2014
  • **
  • default avatar
  • Posts: 18
    • View Profile
    • Donate to Member
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 ?

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
Hehe, enthusiasm is contagious mouser!  :)

@ -Huub- this works when Reader app is fullscreen in Win 8.1
#IfWinActive, Reader
Lbutton::
CoordMode, Mouse, Screen
MouseGetPos, mx, my
if (A_ScreenHeight - my > 101 or mx > 101 )
 click
return
#IfWinActive
A drawback is that it breaks click and drag in Reader (multi word text selection). But you can still do ctrl+click and drag to select text.