Questions tagged [mouse-hook]
Changing, listening or reacting to events related to specific mouse events.
mouse-hook
93
questions
0
votes
1
answer
46
views
MouseHook - MSLLHOOKSTRUCT.mouseData always returns the same value when handling MouseWheel
I have searched the web tirelessly and tried every possible solution I have come across; yet cannot find a working solution.
I have a mouse hook that I have been using for a long time now and it works ...
-1
votes
2
answers
309
views
SetWindowsHookExW not calling the MouseProc callback procedure
So I'm trying to run a simple code in C that prints the position of the mouse every time it moves. To keep the program running for a while and then exit, I use a for loop shown below. I want the hook ...
0
votes
0
answers
114
views
VBA Access MouseHook Wrapper
So, my main goal is to be able to move / resize the main access window along with a popup form, that is, when the main form is moved/resized, i want the main window to follow. So, with the help of ...
1
vote
1
answer
2k
views
Python Global Capturing and Disposing Mouse Click Event
I want to create a tool, which allows me to send keys to active window using my mouse.
Let's say I want to send the key "A" when I click the left mouse button. But I also want to suppress / ...
1
vote
1
answer
560
views
How to prevent mouse from turning on monitor?
The following code is able to lock mouse events successfully. This was my attempt to prevent the mouse from turning on the monitor when it is off, but the monitor always turns on when executing any ...
0
votes
0
answers
86
views
Failed to intercept WM_LBUTTONUP message with WH_GETMESSAGE or WH_MOUSE_LL
In development of GUI automation service, our team faces with the problem that we can not handle WM_LBUTTONUP message correct.
The goal is to intercept WM_LBUTTONUP, disable active window, do our job ...
0
votes
0
answers
158
views
How can I get a relative position to my Canvas when the mouse is outside of the application Window in WPF
public MainWindow()
{
InitializeComponent();
_hook = Hook.GlobalEvents();
_hook.MouseMove += DrawMouseMove;
}
private void DrawMouseMove(object sender, System.Windows.Forms....
0
votes
0
answers
582
views
WM_MOUSEWHEEL doesn't seem to be _always_ generated, what gives?
First off, what I wanted to accomplish: intercepting (via a low level mouse hook) WM_MOUSEHWHEEL messages to go back and forward in Windows' file explorer history, or at least to the parent window if ...
1
vote
1
answer
389
views
What is the end of the road for a WM_LBUTTONUP or WM_LBUTTONDOWN in a low level procedure hook?
I'm writing a low level mouse hook in Windows using the Win32 API, I want to intercept either a button being pressed down or up (still undecided) depending on certain conditions.
To position ourselves ...
0
votes
0
answers
226
views
Returning 1 from Windows mouse hook makes PC click stop the whole system from working
I have a hook created with these lines (works properly, except for the new return 1 line). What I'm trying to do is disable the right click:
if (_keyboardHook == IntPtr.Zero && _mouseHook == ...
1
vote
0
answers
339
views
SendInput() causes infinite loop when used with GetAsyncKeyState() (WinAPI)
So I want to make when you hold down your left click, the mouse starts to click at regular intervals.
In theory all should work right, but in practice, not so well.
Anyways here is the code I am using ...
1
vote
1
answer
504
views
What do I put for the MouseDevice parameter in a MouseButtonEventArgs Constructor?
I'm creating an app in WPF c# that needs to be able to detect mouse click up and click down events separately. In order to do this, I use code for a Global Mouse Hook that I found online. the only ...
0
votes
1
answer
132
views
Java / Transform key from keyboard or mouse to another key
I have a swing Java application (A) that launches another application (B) using Runtime.getRuntime().exec() when a certain button is pressed.
Is it possible to set a certain Key Hook so that when the ...
0
votes
1
answer
495
views
Windows API Mousehook , Capture rightmousebutton + Ctrl (WM_RBUTTONDOWN + MK_CONTROL) clicked togather
initially i was able to print something when i pressed only right mouse button using
if (wParam == WM_RBUTTONDOWN)but now , i want the same effect, i want to print something when right mouse button + ...
0
votes
1
answer
320
views
Mouse Global Hook - WM_MOUSEMOVE delay
Okay so there are plenty of samples for mouse global hooking.
My issue is how can I add a timer/delay for mouse movement.
What is the way of doing this? I thought maybe I should Thread.Sleep() on ...