Recent

Author Topic: OnMouseDown event  (Read 15042 times)

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #60 on: February 03, 2024, 05:37:59 pm »
I did not RUN or COMPILE the samples. Since I saw an exe file in both I just clicked them.

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #61 on: February 03, 2024, 08:29:19 pm »
I forgot to say thanks to everyone. Some things just can't be fixed.

Rick

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: OnMouseDown event
« Reply #62 on: February 03, 2024, 08:51:19 pm »
I did not RUN or COMPILE the samples. Since I saw an exe file in both I just clicked them.
Correct, MouseSpy.exe is precompiled to ensure you have what I have.
I forgot to say thanks to everyone. Some things just can't be fixed.
You are welcomed, maybe just try to disconnect mouse and reconnect, I don't know, at least for windows you having now a small helper :D
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

rvk

  • Hero Member
  • *****
  • Posts: 6683
Re: OnMouseDown event
« Reply #63 on: February 03, 2024, 09:04:10 pm »
Correct, MouseSpy.exe is precompiled to ensure you have what I have.
Can other programs hook the mouse 'before' MouseSpy or should it always work directly though the hardware driver?

Otherwise my guess is some program interfering. (Or Windows update, see below)

@RW1962, Did you try the Windows Sandbox or other computer yet?

BTW. Here is someone with the same problem and solution.
(Problem was a certain Windows update.)
https://www.reddit.com/r/Warframe/comments/69qrj1/mouse_button_45_not_working_windows_10_solution/
and
https://www.reddit.com/r/Warframe/comments/6c5p9v/thumb_buttons_on_mouse_not_working/

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: OnMouseDown event
« Reply #64 on: February 03, 2024, 09:29:51 pm »
Correct, MouseSpy.exe is precompiled to ensure you have what I have.
Can other programs hook the mouse 'before' MouseSpy or should it always work directly though the hardware driver?

Otherwise my guess is some program interfering. (Or Windows update, see below)

@RW1962, Did you try the Windows Sandbox or other computer yet?

BTW. Here is someone with the same problem and solution.
(Problem was a certain Windows update.)
https://www.reddit.com/r/Warframe/comments/69qrj1/mouse_button_45_not_working_windows_10_solution/
and
https://www.reddit.com/r/Warframe/comments/6c5p9v/thumb_buttons_on_mouse_not_working/
I am unsure how to answer since I never was in such a situation and about hooks, at least how I do it you can have many running at same time, they do not interfere each other.
Here are my Microsoft Windows Api links that I used to create the Low Level Mouse Hook:
https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msllhookstruct
https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms644986(v=vs.85)
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexw
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-callnexthookex
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-unhookwindowshookex

Just to demonstrate I did run many instances and they worked all at same speed etc...
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

rvk

  • Hero Member
  • *****
  • Posts: 6683
Re: OnMouseDown event
« Reply #65 on: February 03, 2024, 09:36:04 pm »
I am unsure how to answer since I never was in such a situation and about hooks, at least how I do it you can have many running at same time, they do not interfere each other.
Yes, but your utility calls the next hook in line, like it should :D
Some other program could decide not to call the next hook when button 4 or 5 are pressed. Or change the message to something else. Unlikely but possible.

But looking at those reports of other people with problems with exactly the same buttons I'm thinking more about that Windows update or driver fault (as stated in my previous post).

Here everything works fine too.

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #66 on: February 04, 2024, 07:04:15 pm »
@rvk

Thanks for finding others who have the same problem. I had found a few as well (other than yours). I hadn't mentioned it because they were Gamers.

As to you not having the problem, I didn't have the problem until few weeks ago. But I was having intermittent problems for up to a month ago. Those just seemed like low batteries or dirty buttons.

Currently, my installing my app in another folder is still working for me. I changed the folder location and its name. Then I also changed the name on my App.

Given that I have done this numerous times, however, I am just waiting for it to find me (I am assuming that it is prank by a hacker).

Rick

rvk

  • Hero Member
  • *****
  • Posts: 6683
Re: OnMouseDown event
« Reply #67 on: February 04, 2024, 07:17:04 pm »
Currently, my installing my app in another folder is still working for me. I changed the folder location and its name. Then I also changed the name on my App.
What happens if you only change the name of the executable?

And what happens if you keep the name the same but only change the foldername?

Does a (clean) reboot help?
(That's why I also suggested testing inside Windows sandbox.)

A hacker feels unlikely (but you never know)...
What security software do you use (anti-virus and other wise)?
« Last Edit: February 04, 2024, 07:22:24 pm by rvk »

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #68 on: February 07, 2024, 12:54:05 pm »
Sorry for not being quick to respond. My Lazarus installation just went haywire. It can't read my code anymore. It says it cannot find files (types pp & ppu). It appears that the button issue has become more complex.

Quote
What happens if you only change the name of the executable? And what happens if you keep the name the same but only change the folder name?

The most effective (as lasting more than a few days) is to do both... change the folder and the name of the app. It seems apparent to me that it is a matter of someone finding the new installation.

I hope that I am wrong, but all of this seems like an attack on Lazarus.

Rick

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #69 on: February 07, 2024, 05:55:26 pm »
I got control of Lazarus again. I don't really know what happened, except bot of my computers went into mayhem.

I got control by purging all of the system resources of Lazarus. Then I reinstalled with my former version (vrs 2). I also had backup files that were compatible with that version.

Now I am simply back to the problem with the 4 & 5 buttons again. I also think that I am just going to live with it.

Rick

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #70 on: February 10, 2024, 02:12:34 pm »
The file that I renamed and also placed in a new folder on 01/31/2024 did page buttons 4 & 5 until
02/09/2024 ...or across 9 days.

So it is a Windows situation, but it acts like a hacker is finding the file and making himself a nuisance. My security software is Avant One, but this probably not being detected because it waits for a long period before it acts, and it is not an actual threat ... only annoying. However, what it did to my Lazarus installation was actual damage.

Rick

rvk

  • Hero Member
  • *****
  • Posts: 6683
Re: OnMouseDown event
« Reply #71 on: February 10, 2024, 02:24:12 pm »
My security software is Avant One,
You probably mean Avast One. I know that one can mess with the left mouse click when the window is open.

But it's easy to check. When it happens again, just uninstall Avast, reboot and check if the problem remains. After that you can install Avast again (although I would just recommend Defender which is in Windows itself).

An active hacker seems very unlikely. Why would they waste their time. Some malware (not detected by Avast) seems much more likely.

Also look around the event viewer at around the time of failing for anything suspicious.


RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #72 on: February 10, 2024, 05:05:58 pm »
I think that Avast has been bought out by a company named Gen.

Quote
Gen (NASDAQ: GEN) is a global company dedicated to powering Digital Freedom through its trusted Cyber Safety brands, Norton, Avast, LifeLock, Avira, AVG, ReputationDefender and CCleaner.

I didn't delete Avast, but I did disable it temporarily. I did not change my editor's functionality.

Rick

rvk

  • Hero Member
  • *****
  • Posts: 6683
Re: OnMouseDown event
« Reply #73 on: February 10, 2024, 05:21:20 pm »
Disabling is definitely not the same as uninstalling.
Especially when taking about anti-virusscanners.

But ok. You could also try Windows sandbox, hyper-v vm or virtualbox.
Or other (clean) computer.

Does Windows 10 still support safe boot?

At least now you know there is something messing with your system.
It's up to you too test which piece is doing that.

RW1962

  • New Member
  • *
  • Posts: 41
Re: OnMouseDown event
« Reply #74 on: February 10, 2024, 08:26:17 pm »
Safe Mode was buried, but I found it.

My original code (prior to the KodeZwerg code) worked in safe mode.

Rick

 

TinyPortal © 2005-2018