Phantom touches to the touch screen

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newbieforever
Posts: 493
Joined: 24 Aug 2016, 03:34

Phantom touches to the touch screen

Post by newbieforever » 19 Aug 2022, 11:01

My notebook touch screen seems to be damaged (no software cause found so far), it produces ghost touches randomly on a vertical line (at x = 999). I don't know what is the exact nature of these touches (i.e. are they analogous to LButton clicks, RButton clicks...).

I am trying to block these ghost touches by an AHK workaround. This is my test script (EDITED Aug. 22):

Code: Select all

GUI, +AlwaysOnTop -Border -SysMenu +Owner -Caption +ToolWindow -DPIScale
GUI, Color, red
GUI, Show, NoActivate X990 Y0 w20 h25, GUI 
; Just to see where the blocked area is.

#If BlockedTap()
LButton::return
#If

BlockedTap() {
	cm := A_CoordModeMouse
	CoordMode, Mouse, Screen
	MouseGetPos, x, y
	CoordMode, Mouse, % cm
	If (x>=990) && (x<=1010) {
		;FileAppend, %A_Hour%:%A_Min%: %x% %y%`r`n, %A_ScriptDir%\LogFile.txt
		;SoundBeep
		return 1
		}
	Else return 0
}


The script blocks mouse clicks, but not touchscreen taps.

Does anyone here have a brilliant idea on how to solve this problem?

(EDITED Aug. 22).
Last edited by newbieforever on 22 Aug 2022, 08:57, edited 3 times in total.

User avatar
mikeyww
Posts: 27097
Joined: 09 Sep 2014, 18:38

Re: Phantom touches to the touch screen

Post by mikeyww » 19 Aug 2022, 13:05

I'm not an expert in this, but it seems to me that if your hardware is broken, your software might not be able to overcome it.

newbieforever
Posts: 493
Joined: 24 Aug 2016, 03:34

Re: Phantom touches to the touch screen

Post by newbieforever » 20 Aug 2022, 08:39

Is there no alternative method to block clicks (screen touches)?

newbieforever
Posts: 493
Joined: 24 Aug 2016, 03:34

Re: Phantom touches to the touch screen

Post by newbieforever » 22 Aug 2022, 08:54

Perhaps the following might be of interest:

A touchscreen tap in the blocked area does not behave exactly like a mouse click. A left click in the blocked area does not activate the window if there is an inactive window under the click. A tap activates it.

I am surprised that apparently no AHK expert has yet dealt more intensively with all the touchscreen problems, i.e. with the possibilities that AHK could offer here (maybe?).

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Phantom touches to the touch screen

Post by swagfag » 22 Aug 2022, 10:49

for an expert to deal with something, they must:
  1. find the problem interesting enough / worthwhile to look into
  2. have the ability to test it
A) is already a tall order in and of itself. and now ure chucking B) in...

it seems to me ull either have to donate some touchscreen laptops or become an expert urself :lol:

User avatar
MrDodel
Posts: 96
Joined: 28 Apr 2021, 09:03
Location: Event Horizon

Re: Phantom touches to the touch screen

Post by MrDodel » 22 Aug 2022, 11:21

Disable it entirely, and see if the ghost presses still happen:

To disable the touch screen:

Open Start.
Search for Device Manager and click the top result to open the app.
Expand the Human Interface Devices branch.
Right-click the HID-compliant touch screen item, and select the Disable device option.

Good luck!
So much universe, and so little time. GNU Sir Terry.

RussF
Posts: 1280
Joined: 05 Aug 2021, 06:36

Re: Phantom touches to the touch screen

Post by RussF » 22 Aug 2022, 11:52

If you don't need touch screen functionality, then by all means, disable the device as @MrDodel suggested. That's the easiest method.

I had a similar problem with one of my laptops, but needed the functionality. The overwhelming majority of laptop (not tablet) touch screens are in two pieces - the LCD display screen and the touch screen digitizer which sits on top of the LCD screen. Three days and about $50 USD later (about 5 years ago), I had a new digitizer. There are plenty of how-to videos online for screen replacement.

That's my "expert" opinion.

Russ

newbieforever
Posts: 493
Joined: 24 Aug 2016, 03:34

Re: Phantom touches to the touch screen

Post by newbieforever » 22 Aug 2022, 12:48

@MrDodel, @RussF: If the touch screen is disabled, there are no ghost taps. But I need the touch screen functionality too.


@swagfaf: I made the bold assumption that the fact of 100 million Windows tablets and convertibles sold in the last few years might be a reason to wonder why there are no solutions like "How to detect touchscreen touches" or "How to remap touchscreen touches" in this forum. That I was wrong, is proven by your snappy reply. :crazy:

EDIT:
But wasn't this
viewtopic.php?t=3774#p21106
an approach to this problem several years ago that could be useful and should be pursued? Unfortunately, I myself have too little AHK knowledge to understand the whole thing.
Last edited by newbieforever on 23 Aug 2022, 11:32, edited 2 times in total.

User avatar
MrDodel
Posts: 96
Joined: 28 Apr 2021, 09:03
Location: Event Horizon

Re: Phantom touches to the touch screen

Post by MrDodel » 22 Aug 2022, 14:38

I'm leaning towards hardware, you could try "massaging" the affected area, quite like what you could do with stuck LCD pixels, outside that it's a replacement screen/digitizer.

If you need the functionality of touch, I see only one solution.

Good Luck!
So much universe, and so little time. GNU Sir Terry.

Post Reply

Return to “Ask for Help (v1)”