4,355 questions
0
votes
1
answer
70
views
Buttons of irregular shape in QML
I need to make a collection of buttons of irregular shape -- similar to a puzzle where each piece is a button. They do not overlap, do not necessarily cover the whole window and may have gaps. In ...
0
votes
0
answers
97
views
Scroll step by step process not working as expected
I built a zig-zag horizontal scrolling timeline with HTML, CSS, and JavaScript.
It works fine as a standalone HTML file, but when I add it inside Elementor (WordPress) using the HTML widget, the ...
6
votes
0
answers
115
views
Updating mouse cursor in Qt based on whats underneath
I'm currently overriding mouseMoveEvent to update mouse cursor based on what's beneath it.
This works pretty well, but I noticed one scenario where it fails. Scrolling.
If the widget has scroll bars, ...
1
vote
0
answers
136
views
How to control the mouse and keyboard on the Windows lock screen?
I am developing a remote desktop application, and when the Windows screen is locked (WIN+L), the user mode API (SendInput) fails, GetLastError() return 5 ("access is denied").
Without ...
2
votes
0
answers
116
views
Mouse Cursor in 16-bit Assembly (NASM) Overwrites Screen Content in VGA Mode 0x12
I'm developing a PS/2 mouse driver in 16-bit assembly (NASM) for a custom operating system running in VGA mode 0x12 (640x480, 16 colors). The driver initializes the mouse, handles mouse events, and ...
0
votes
0
answers
96
views
How to end SC_SIZE command (resizing of the window) with Right Mouse Button release?
I have a WINAPI application and I want the user to be able to resize the window with the Right Mouse Button.
Calling SendMessage(hwnd, WM_SYSCOMMAND, SC_SIZE + WMSZ_BOTTOMRIGHT, 0); in a ...
0
votes
0
answers
99
views
Simulate mouse input on touchscreen without handicapping user input
I am currently developing a C# .NET console application on my computer which allows me to move a virtual joystick by moving my mouse to the joystick and pressing down(currently not implemented) and ...
2
votes
0
answers
145
views
Mouse Pointer does not wish to work well with Esp32 when using the FabGL library, using the PC Emulator example
I’m currently having a major problem with the Esp32, and using a mouse pointer in regards to getting the Esp32 to display a cursor upon my VGA or Video Graphics Array screen, I have successfully ...
0
votes
0
answers
44
views
Mouse captured but still invisible in the Wazuh virtual machine. What could be the issue? Windows 11 host
In system, Chipset:PIIX3, Under pointing device, "USB Multi-touch" is selected. Under extended features, "Enable I/O APIC" and "Enable hardware Clock in UTC time" are ...
1
vote
1
answer
44
views
how to stop mouse offset when clicking a draggable div? (jquery)
$(document).ready(function() { $(".drag").draggable(); });
this is the code for my draggable div, I am having an issue where the mouse snaps diagonally about half the div height when ...
1
vote
0
answers
49
views
Mouse movement accuracy problem via Bluetooth HID
I'm developing a task automation bot in Python that remotely controls a mouse and keyboard via Bluetooth HID. The bot uses a C driver to send keyboard and mouse commands via Bluetooth, emulating an ...
0
votes
1
answer
99
views
powershell script to move mouse every 60 second
A PowerShell script to move the mouse every 60 seconds can be created using the System.Windows.Forms namespace. The script works by simulating small mouse movements at regular intervals using a loop.
0
votes
1
answer
69
views
sikulix 2.0.5 detect if mouse pointer is idle or busy
In my website, I am using a Java Applet. The mouse pointer changes to busy whenever I click a link in the JApplet.
I want to check if mouse pointer is idle or busy. I have tried to import win32gui as ...
-2
votes
1
answer
104
views
How to move an object to the mouse with a set max speed in Windows Forms using C#
The problem is that I can't make the object follow my mouse at a certain speed. I managed to make it follow the mouse, but it increases the speed the further away it's and get slower the closer it's.
...
-1
votes
1
answer
76
views
How to get keyboard and mouse raw data on python with os and file opening only on MacOS and Linux
I am making a program that gets low level data from the operating system in Python. But the 2 that I can't really get are: keyboard and mouse. On Linux, mouse is fine, its just this file: /dev/input/...
0
votes
0
answers
54
views
GetSystemMetrics with SM_MOUSEHORIZONTALWHEELPRESENT always returns 0?
I'm calling GetSystemMetrics(SM_MOUSEHORIZONTALWHEELPRESENT) and it always returns 0. Thing is, I know I have a horizontal scroll on my mouse (and the raw input device information does come back with ...
1
vote
1
answer
3k
views
Why does my cursor disappear over VS Code's editor? How can I fix it?
I’m using VS Code's latest version (the Jan 2025 one), and whenever I move my mouse past the numbers in the editor, it disappears, both in light and dark mode. Is it just a “me” issue? Even if it is, ...
1
vote
2
answers
198
views
Mouse Cursor Disappeared after Windows 11 Updates [closed]
My Mouse Completely Disappeared after a windows 11 update - I tried un-installing/install the driver from the Device Manager, Tried to restart, To change the mouse settings, Tried to do many things ...
0
votes
1
answer
57
views
Mouse movment isnt working in game (fortnite) using pydirectinput
I want my mouse to move to nametag of player, when pressing windows its working with the windows crosshair but in game it moves to a random place.
import pyautogui
import pydirectinput
...
0
votes
0
answers
50
views
Mouse movment ingame (fortnite) using pydirectinput
I want my mouse to move to nametag of player, when pressing windows its working with the windows crosshair but in game it moves to a random place.
import pyautogui
import pydirectinput
import time
...
0
votes
1
answer
73
views
Move mouse using python on my phone with across server
Im am using across server to be able to control my iphone with my mouse. I was hoping to be able to make a program that can interact with my phone this way. However, it seems python cant move my mouse ...
1
vote
1
answer
52
views
Moving a label using mouse in firemonkey
I have to move FMX objects with mouse and here, for simplicity, I am using
TLabel (Label1) that belongs to a TRectangle (Rectangle1), belonging to TPaintBox
TLabel (Label2) that belongs to PaintBox1.
...
0
votes
1
answer
92
views
Drag and Drop project in assembly 8086 (move a square with the mouse)
I'm a CS student and I need to build a project for my architecture class. I have tried to build a simple drag and drop program in asm. The whole idea would be to draw a square somewhere on the screen ...
0
votes
0
answers
58
views
How to flip mouse cursor behaviour on one axis?
I'm in posession of a touchpanel supposedly manufactured by IRTOUCH SYSTEMS unfortunately without the knowledge of its model number. Now my problem is that the (0,0) point of the touchpanel input is ...
0
votes
0
answers
196
views
Scroll snapping doesn't work well with mouse. Using mouse, the page gets scrolled abruptly
I am using full section scrolling using scroll snapping. If I scroll through touchpad, it is smooth. But if I use mouse and make the scroll wheel scroll just a bit, then it scrolls with jerk/speed.
I ...
0
votes
1
answer
40
views
Left Click on Text Assembly x86
I'm currently working on a project where I'm supposed to show a menu to the user so he can interacted with it and I'm using a vm with emu8086. I'm trying to make so that when i click a text on the ...
0
votes
1
answer
554
views
Unity virtual mouse working for UI, but not firing OnMouseEnter/OnMouseDown events for 2D colliders
I'm setting up controller support for my game using a virtual mouse and the new Unity input system.
The virtual mouse works for interacting with UI; however, I've found that for 2D elements, it won't ...
1
vote
1
answer
447
views
CGEvent not working with mouse (macOS 15.1 Sequoia Beta)
So basically I'm making an auto clicker for Mac in Xcode 16.0, but the CGEvent doesn't seem to work. I searched the internet and viewed documentation, but I couldn't find much about it. Here's my code
...
0
votes
1
answer
100
views
Completely disabling mouse in ncurses
I am wondering how to completely disable mouse functionality in ncurses. I do not want to use the gpm lib.
Is the switch HAVE_LIBGPM in ncurses_def.h the way to go?
Thank you
Vaclav
0
votes
0
answers
105
views
General protection fault when initializing mouse driver
I'm writing an x86_64 os and testing it on qemu pc. I'm trying to implement a mouse driver, but when I reach the end of the initialization function, I get a general protection fault. Another wierd ...
0
votes
1
answer
61
views
How to remove and replace USB wireless dongle programmatically
I have a Raspberry Pi 4 (8G) with the Debian Lite OS, Rii Wireless keyboard and mouse.
The keyboard is fine, but the mouse freezes quite often while watching Youtube or video. My solution is to ...
0
votes
0
answers
74
views
python mouse.is_pressed always returns true
Could someone please help me understand why this bit doesn't work as expected?
def X2_buttonDown():
startedAt = round(time.time() * 1000)
buttonIsDown = mouse.is_pressed(mouse.X2)
while ...
0
votes
0
answers
58
views
How to Keep IME Open When Using Buttons for Input in a Custom Japanese Virtual Keyboard in WPF?
I'm developing a .NET WPF application, and my client requires a custom Japanese input keyboard.
The input method is not through a physical keyboard but via UI buttons that input each character.
Here ...
0
votes
1
answer
51
views
Why this JavaScript function sometimes takes good value and works, and sometimes not? Probably a problem with refresh rate of the page
I'm trying to animate a snake composed of segments.
These segments should retreat when the mouse is stopped.
So I'm calculating the distance and when the mouse is stopped, I'm changing the position ...
0
votes
1
answer
65
views
Checking for a click on Area2D before it is considered unhandled
I have some Area2D nodes on top of a TileMap. I want to be able to do something when one of those Area2D is clicked, and something else when the click is on the TileMap.
How can I achieve this?
In ...
1
vote
0
answers
628
views
How can I receive pointer events on Wayland, while also passing them through to the client below?
I am creating a program that highlights the mouse cursor and shows mouse clicks for screencasts in Wayland.
My current approach is to create a full-screen transparent layer surface, where I would draw ...
0
votes
1
answer
321
views
How to combine two logitech scripts?
Im trying to put the following 2 scripts together so that they can run at the same exact time.
function OnEvent(event, arg)
if EnableRCS ~= false then
if IsMouseButtonPressed(3) then -- ...
-2
votes
1
answer
95
views
Why does my code not register clicking the second button on screen?
I don't understand why pressing the second button doesn't work.
Here is my code for checking both presses:
proc whatPress
pusha
call setUpMagicNumbers
call startscreen
mov ax,00
...
-1
votes
0
answers
41
views
Having trouble wih the mouse and outpot
I want to allow the user to click on his chosen submarine (which are already located:)) and then he clicks another time on the screen and the submarine appers there. For some reason no matter what i ...
1
vote
0
answers
28
views
My java program not responding to key press/release
I have a program that detects mouse movements and draws line according to the path of the mouse pointer tip when the mouse is dragged. NEXT I tried to make the program detect key events, the code ...
0
votes
1
answer
172
views
holding shift to toggle the mouse buttons in lua?
I'm a completely noob at Lua. I've been playing around with it in g-hub for a Logitech mouse and I figured out how to make it notice if shift is held down while the script is run, but I'm pretty far ...
2
votes
0
answers
156
views
Calculate mouse DPI
My script should calculate mouse DPI based on how far the mouse cursor moves. I use the ctypes library. I'm trying to find DPI deviations (my mouse software has DPI set to 900 but it's really 862). I ...
0
votes
2
answers
54
views
Python cannot write mouse coordinates to self.label in a different function in the same class. Why is that function not recognising that label?
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# GUI module generated by PAGE version 8.0
# in conjunction with Tcl version 8.6
# Apr 23, 2024 11:05:03 PM CEST platform: Windows NT
import sys
...
0
votes
1
answer
618
views
Linux get keyboard mouse trackpad activity
I'm looking for a way to detect keyboard, mouse and trackpad activity on Linux. This will probably be a kernel module. I don't care about the details of the input just the fact that something happened....
0
votes
0
answers
31
views
Continuosly reading of mouse in Matlab
I am working on a teleoperation task and simulation between Matlab and Gazebo. For that I made a funtion to read the position of my mouse, so the will be the master and the simulation in Gazebo the ...
0
votes
1
answer
139
views
How to get the coordinates of the mouse pointer inside a control
I have a TPopupMenu where one of the items should (after doing other stuff) select the item of the TChecklistBox (CategoryFilter) the mouse cursor is at. Currently I do this with the following code, ...
0
votes
0
answers
79
views
how to use qml to get the mouse position in my screen not in the application
I want to write a function that querying global mouse position, my code is here
Window {
id: root
color: transparentColor
visibility: ApplicationWindow.FullScreen
flags: Qt....
1
vote
0
answers
135
views
How do I in a batch file Move Mouse Cursor, Click Left Mouse Button?
So in this batch file, it opens a webpage after a timeout command. But on that webpage, to start the video, you need to click the video box! Which has above it an ad that doesn't work. So it can't ...
-1
votes
1
answer
51
views
VTK MouseEvents example not working with Java wrappers
After rewriting the VTK example 'MouseEvents' (https://examples.vtk.org/site/Cxx/Interaction/MouseEvents/) in Java,
import vtk.vtkActor;
import vtk.vtkInteractorStyleTrackballCamera;
import vtk....
0
votes
1
answer
2k
views
How do I create a click and drag system for a sprite in Godot?
I'm working on a game in Godot and I'm trying to create a system where I can click and hold onto a sprite and drag to move that same sprite but I'm having a bit of trouble figuring it out.
I've tried ...