Questions tagged [mouse]

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

Wikipedia

Wikipedia defines mouse as follows:

In computing, a mouse is a pointing device that functions by detecting two-dimensional motion relative to its supporting surface. Physically, a mouse consists of an object held under one of the user's hands, with one or more buttons.

http://en.wikipedia.org/wiki/Mouse_%28computing%29

4371 questions
59
votes
2 answers

How can I simulate a mouse click at a certain position on the screen?

What I want to do is to manipulate the mouse. It will be a simple macro for my own purposes. So it will move my mouse to certain position on the screen and click like I am clicking with certain interval.
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
58
votes
9 answers

How do I edit Visual Studio's mouse shortcuts?

Visual Studio used to execute the "Naviagte Backward" command whenever I hit the back thumb button on my mouse, but it has recently stopped doing that. How can I edit Visual Studio's mouse shortcut settings to re-enable this feature? Edit: Starting…
qJake
  • 16,821
  • 17
  • 83
  • 135
53
votes
7 answers

How can I make Emacs mouse scrolling slower and smoother?

When I scroll in Emacs using mouse wheel, it scrolls 5 lines at a time, which, I think, is way too much - where do I set a new value? Also, when I scroll in Emacs with a mouse (either wheel or scrollbar), the cursor jumps to stay inside the visible…
Headcrab
  • 6,838
  • 8
  • 40
  • 45
47
votes
2 answers

How does CommandManager.RequerySuggested work?

The MSDN only states that Occurs when the CommandManager detects conditions that might change the ability of a command to execute. However I can't seem to find any traces of how this works, what I should be aware of / avoid etc... Does it just…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
45
votes
6 answers

iTerm2 – scroll less output with mouse

I just switched from OSX Terminal to iTerm2, and I seem to have lost one piece of functionality. In Terminal, I could scroll through output of the less command with my mouse, because I had installed MouseTerm. However, when I try scrolling less…
Ruben Verborgh
  • 3,545
  • 2
  • 31
  • 43
44
votes
10 answers

Device misdetected as serial mouse

I'm working on a device which communicates with a PC through a (virtual) serial port. The problem is that the data we are sending occasionally gets incorrectly identified by Windows as a bus mouse, after which the "Microsoft Serial Ballpoint" driver…
doynax
  • 4,285
  • 3
  • 23
  • 19
44
votes
5 answers

How would I get the current mouse coordinates in bash?

I need to get the current mouse coordinates in bash and xdotool doesn't seem to be working for me. How would I do this?
t3hcakeman
  • 2,289
  • 4
  • 25
  • 27
44
votes
7 answers

Control mouse by writing to /dev/input/mice

I am using Ubuntu 12.04. For one of my applications I require to control the mouse in software using a script. I understand that the mouse device is /dev/input/mice. If I do a cat /dev/input/mice and then move my mouse, I see a lot of output being…
Vishal
  • 3,178
  • 2
  • 34
  • 47
42
votes
6 answers

Simulate Mouse Clicks on Python

I'm currently in the process of making my Nintendo Wiimote (Kinda sad actually) to work with my computer as a mouse. I've managed to make the nunchuk's stick control actually move the mouse up and down, left and right on the screen! This was so…
dbdii407
  • 815
  • 3
  • 11
  • 14
41
votes
11 answers

Get cursor position with respect to the control - C#

I want to get the mouse position with respect to the control in which mouse pointer is present. That means when I place the cursor to the starting point (Top-Left corner) of control it should give (0,0). I am using the following code: private…
Farid-ur-Rahman
  • 1,809
  • 9
  • 31
  • 47
41
votes
11 answers

How to control the mouse in Mac using Python?

What would be the easiest way to move the mouse around (and possibly click) using Python on OS X? This is just for rapid prototyping, it doesn't have to be elegant.
Ben
  • 1,725
  • 1
  • 12
  • 12
41
votes
4 answers

Determine mouse position outside of events (using jQuery)?

I need to get a hold of the absolute mouse position / coordinates (X and Y) using (preferably) jQuery like in this tutorial but outside of any JavaScript event. Thank you.
pbz
  • 8,865
  • 14
  • 56
  • 70
40
votes
5 answers

How to get Mouse buttons 4 / 5 (Browser back / Browser forward) working in Firefox?

First, I need to say that I'm aware there is some confusion as to what button numbering scheme convention is used for these "Browser back" and "Browser forward" mouse buttons depending on whether you use numbering starting from zero 0 or one 1. …
TrinitronX
  • 4,959
  • 3
  • 39
  • 66
39
votes
6 answers

Wiggling the mouse

OK. This is a bit of a vanity app, but I had a situation today at work where I was in a training class and the machine was set to lock every 10 minutes. Well, if the trainers got excited about talking - as opposed to changing slides - the machine…
Bruce the Hoon
  • 1,666
  • 3
  • 18
  • 21
38
votes
7 answers

mouse position to isometric tile including height

Struggeling translating the position of the mouse to the location of the tiles in my grid. When it's all flat, the math looks like this: this.position.x = Math.floor(((pos.y - 240) / 24) + ((pos.x - 320) / 48)); this.position.y = Math.floor(((pos.y…
Jorg
  • 7,219
  • 3
  • 44
  • 65