Skip to main content

Questions tagged [mouse]

A mouse is a pointing device that functions by detecting two-dimensional motion relative to its supporting surface.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
12 views

Mapbox GL JS - change camera altitude on vertical panning

TL;DR: How to "fly around" a 3D feature like a building or a mountain at some altitude, then go up a little, and fly around it again? To view the map almost like through an onboard camera of ...
mykola.rykov's user avatar
-1 votes
0 answers
60 views

Auto clicking the left mouse button while holding down the left mouse button in c++

#include <iostream> #include <cstdlib> #include <ctime> #include <windows.h> using namespace std; int c; void menu() { cout << "Enter CPS: "; cin >...
Neal's user avatar
  • 9
0 votes
1 answer
75 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 -- ...
censori's user avatar
0 votes
0 answers
23 views

Targeting Using Python in FPS Games

I have detected enemies and have coordinates for them in python but I just can't figure out how to move the mouse to those coordinates. In the FPS game I am playing, when you equip a weapon, it locks ...
Walker's user avatar
  • 121
0 votes
0 answers
69 views
+200

How do I rotate or translate an object at the mouse position in a vtk environment?

I would like to rotate or translate an object that look like a cylinder by pressing the left button of the mouse on it. to rotate, i would like to click on the tip and make it rotate around the other ...
ymmx's user avatar
  • 4,830
-3 votes
0 answers
31 views

Python / How detect all keys pressed?

from ctypes import windll key_codes = { "VK_LBUTTON": [0x01, "left MButton"], "VK_RBUTTON": [0x02, "right MButton"], "VK_CANCEL": [0x03, &...
Goder YT's user avatar
-1 votes
1 answer
43 views

Why does my code not check for the second button press?

Here is my code for checking both presses. I don't understand why does the second button doesn't work proc whatPress pusha call setUpMagicNumbers call startscreen mov ax,00 int 33h ...
steven FM's user avatar
-3 votes
0 answers
33 views

Mouse library to fast

I have code that i click on a website with the 'mouse' library, but the website cant process all the inputs, so i have to add alot of unnecessary delay, is there any way i could do it without any ...
Name Hidden's user avatar
0 votes
0 answers
8 views

How can I use mouse movement to scroll in Windows?

I have this command in linux that does this. xinput --set-prop $id 'libinput Scroll Method Enabled' 0, 0, 1 xinput --set-prop $id 'libinput Button Scrolling Button' 2 And there is Karabiner elements ...
Shaffaf Ahmed's user avatar
0 votes
0 answers
10 views

Is there a way to detect both mouse, keyboard events in the same java class?

Is there a way to detect both mouse, keyboard events in the same java class? I failed in putting them in same class. I want a simple short solution showing the transfer of control to any one from ...
Amitava Guha's user avatar
0 votes
1 answer
27 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 ...
ethan fridkin's user avatar
0 votes
0 answers
29 views

move the grid in the direction of the mouse pointe in godot

I'm creating a farming game in godot 4. I want to write an event that when I select a hoe in the selected bar, a grid will appear under the character's feet and the mouse pointer, but I can't do it. I ...
Tân Phạm's user avatar
0 votes
0 answers
13 views

Laptop built in Mousepad and Steam Input Virtual Gamepad don't work with raw input?

I'm trying to make a program in C# that reads button inputs from all your connected mice, keyboards and hid devices. So far it's working without issues on my wired usb mouse, wired and wireless ...
The Great ReLLeRtR's user avatar
1 vote
0 answers
15 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 ...
Amitava Guha's user avatar
0 votes
0 answers
45 views

How to automate Mouse event in Android

I am currently testing some android applications and inside the app have some contextual menu only triggered by mouse right click. Do we have any method or solution to automatically trigger that menu ...
rvp's user avatar
  • 181
0 votes
1 answer
40 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 ...
Orionox's user avatar
2 votes
0 answers
65 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 ...
Chance D's user avatar
0 votes
0 answers
49 views

Nextjs/Typescript - recreation of scroll and mouse events

I am trying to recreate a demo template https://az-black.webflow.io/ that uses scroll effects and mouse location tracking in nextjs/typescript. I've not seen any examples of how to properly recreate ...
The Old County's user avatar
0 votes
0 answers
26 views

c# Scrollbar thumbar position calculation in CustomControl

public class DrawCanvas : Control { private int _scale = 10000; private Image m_bkImg = null; private Image m_bkScaledImg = null; private Point m_ptStart; private Point m_ptEnd; private ...
shaohuama's user avatar
0 votes
0 answers
83 views

ESP32 C3 Super Mini can't start BLE Mouse

In my project, I'm building a smart pen. I'm working on integrating a BMI160 accelerometer and gyro sensor via I2C. The goal is to combine the data from these sensors and translate it into mouse ...
RogerCruz's user avatar
0 votes
0 answers
55 views

Need help breaking/fixing the psmouse kernel module

I have an issue with the trackpoint on my ThinkPad. After holding it in a direction for about 5 seconds, it recalibrates the center point to the position where it is being held. This means that after ...
Taspen's user avatar
  • 1
0 votes
2 answers
39 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 ...
Francis Dusselier's user avatar
0 votes
1 answer
104 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....
JFBonzo's user avatar
0 votes
0 answers
27 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 ...
sonlas10's user avatar
  • 175
0 votes
0 answers
8 views

Mouse control on Window

My friend's mouse on the screen frequently turns into this loading-like icon, he's not good at solving computer problems and neither am I. I'll be greatly appreciate if the community can help. So far ...
CHÍ CƯỜNG NGÔ's user avatar
0 votes
1 answer
76 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, ...
Wolfgang Bures's user avatar
0 votes
0 answers
14 views

Trying to figure out how to add mouse control with an embedded dosbox emulator on Google sites

I have been tasked by my History Teacher to try to get a Dosbox emulator up on a google sites so the class can use it to play older MS-Dos games, the one mishap unfortunately is that I can not figure ...
Jake D's user avatar
  • 1
0 votes
0 answers
45 views

Why won't my c program update the mouse position?

I need help with my c mouse position code so that it works properly. The mouse position is supposed to update when you move it and should keep updating the position as you move. The mouse left and ...
Hayden Kemple's user avatar
0 votes
0 answers
30 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....
Jun long Liu's user avatar
0 votes
0 answers
15 views

Unable to detect release of mouse button when drawing shapes on geographical map using Folium-Draw

Upon clicking on the drawing shapes in the drawing tab provided by Folium-Draw, it is unable to detect the release of the mouse button which signals the completion of drawing but instead, it continues ...
Linus Cool's user avatar
0 votes
0 answers
28 views

mousemove Event Listener not working when cursor is in front of a <iframe>

i have a script which adds a trail to the cursor, its controlled via event listeners and Canvas, it works fine except when hovering over an iframe, in which instance the trail stops and mousemovements ...
Z2r's user avatar
  • 82
1 vote
0 answers
49 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 ...
Curtis McCarthy's user avatar
-1 votes
1 answer
24 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....
mike_uvw's user avatar
0 votes
0 answers
56 views

How do I block programs from detecting mouse input?

I'm basically trying to make my own version of reWASD. I'm mapping controller input to keyboard presses, but the game detects the mouse when I move it around. I tried to make it so that the cursor ...
Dogepoleon's user avatar
0 votes
1 answer
510 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 ...
Kazuala's user avatar
  • 27
0 votes
0 answers
20 views

Combining Mouse Event Monitoring and Listener Programs: Python Multi-threading Exploration

I hope that while running Listener.py, Monitor.py can also be executed simultaneously. I want to modify Monitor.py to create an array with a maximum size of 10. When the number of mouse signals ...
Jasmine58850_01's user avatar
0 votes
0 answers
23 views

Mouse hook with non-English language results in extremely laggy mouse

I am developing an app in C# Winforms .Net Framework and am using this global mouse hook code: internal class GlobalMouseHook { #region events // declare hook events: ...
galileo's user avatar
  • 59
0 votes
0 answers
65 views

How to make code work together ? lua script

How to make the code correctly, so that the recoil is canceled out, and the button is held down together with "q"? EnablePrimaryMouseButtonEvents(true); function OnEvent(event, arg) if ...
Сиеста Соб's user avatar
0 votes
0 answers
16 views

On Windows, intercepts and change a click event system-wide

My researches led me to that thread, but it is not exactly what I need: Intercepting windows mouse click How could I intercept all mouse clicks, system-wide, for, say, the right click, and change its ...
Ninj's user avatar
  • 1,512
0 votes
0 answers
156 views

In React flow, I want to add custom many cursors however, the cursor is not relative to the canvas; it relative to the outer div; how to handle this?

In React flow, I merely want to add custom many cursors; however, the cursor is not relative to the canvas; it is only relative to the outer div; how to handle this? , im able to get mouse position by ...
Sundaresan Natarajan's user avatar
1 vote
1 answer
127 views

i can´t select text in big query studio with the mouse or the trackpad

please help, i know someone will know hoy to fix this. i cant select the text or part of the text in my big query studio. im using chrome, if i use safari it works, i tried deleting chrome and ...
sebasapel's user avatar
0 votes
2 answers
102 views

How can I detect a mousewheel click in Openlayers 8.2?

So I have built a map application where I can see my photos on a map. I'm using OpenLayers 8.2 to display the map. I have made a click event when the user clicks a thumbnail on the map to show the ...
user23437660's user avatar
2 votes
1 answer
591 views

Detect Mouse Movement and Direction in Godot

I am making the settings menu for a game in Godot 3.5 which has a progress bar node for the volume. I want players to drag their mouse to adjust the volume, like so: The problem is that I don't know ...
CosmicFlaw's user avatar
0 votes
0 answers
31 views

smooth video time shift

I have a small problem because I lack the necessary knowledge. The issue is that I have a small example code for time-shifting a video by moving the mouse on the x-axis. However, the video updates ...
neznamy03's user avatar
0 votes
0 answers
11 views

Pyhton physical mouse click

In a game, i did a market search for Price/unit. I need to click to a specific location but the game doesn't recognize my click with a code. I need to emulate a physical mouse click. I'm new to coding ...
egekaran's user avatar
0 votes
0 answers
67 views

Skyrim PyAutoGUI (PyDirectInput)

I honestly don't know how to fix that problem I'm trying to move my cursor with PyDirectInput module (almost the same as PyAutoGUI, but the last one usually not works in the games) pydirectinput.move(...
Mdabo's user avatar
  • 1
0 votes
1 answer
57 views

Python - manipulating mouse and keyboard inputs in various applications

I tried various of mouse and keyboard controlling libraries(such as pyautogui and mouse) for Python, they usually work for the applications that doesn't require fullscreen but they don't work properly ...
DeepLearner's user avatar
0 votes
0 answers
38 views

How to detect a mouse circling around something in python?

I'm trying to detect when a user's mouse is circling around an object repeatedly, and take a screenshot of that object. To make this simpler, I'll split it into two parts. First of all, I want to ...
5rod's user avatar
  • 448
-1 votes
1 answer
164 views

Auto Click Detection

I play an online browser game and I am using an auto click program to click on a specific area regularly (Every 20-25 min). However, the game detects it. Is there any way that I can avoid the game to ...
quiescence's user avatar
0 votes
1 answer
123 views

How to run multiple webbrowsers each simultaneously performing their own automated tasks with mouse cursors specifically?

So far I have used python, selenium and pyautogui, and I want to run lots of webbrowsers performing their own tasks with mouse cursors on various websites to simulate normal human use of websites. In ...
ruchampsajaksra666's user avatar

1
2 3 4 5
88