mouse

Check which UIElement the mouse is entering in a MouseLeave event in Silverlight?

I have two UI elements next to each other that I want to behave as if they are one MouseLeave area. How can I check if the mouse is over a UI element being entered during a MouseLeave event? Currently, checking the mouse position using the following solution shows the mouse over the element being left during the MouseLeave event: http...

C# triggering MouseEnter even even if mouse button is held down.

I have this problem that event called "MouseEnter" does not fire when mouse button is held down. How could i fix it? ...

In Cocoa, how can my NSView receive an event when the mouse is held down (but not moved)?

I'm looking for the right way to handle "mouse held down in one spot" events in my NSView subclass. I am familiar with Cocoa's mouseDragged: event, but it is only triggered when the mouse moves. If the mouse stays in the same position, no drag event is triggered. Similarly, mouseDown: is only fired when the button is first pressed. My v...

Emacs, unicode, xterm mouse escape sequences, and wide terminals

Hi all, Short version: When using emacs' xterm-mouse-mode, Somebody (emacs? bash? xterm?) intercepts xterm's control sequences and replaces them with \0. This is a pain on wide monitors because only the first 223 columns have mouse. What is the culprit, and how can I work around it? From what I can tell this has something to do with ...

SetWindowsHookEx WH_MOUSE freeze on breakpoint in Win7

helos, on WinXP my application has been sucessfully using a global mousehook to retrieve mouseposition and clicks even if it does not have the focus. the hook is in a separate .dll and is being initialized like this (in delphi): SetWindowsHookEx(WH_MOUSE, @MouseHookCB, HInstance , 0); now on Win7 this basically also works during runt...

How to change mouse cursor inside Inno setup?

Hi, I created a setup using Inno installer, during the setup, I made some lengthly operations to check certain values over the system (registry keys, some files...) and during that time no interface is displayed to the user, I do all of this inside InitializeSetup function. What I would like to know is if I can change the mouse pointe...

Java: getting the absolute position of the mouse in a JPanel given the coordinate the user clicked on.

For example, suppose I have a drawing in a JPanel subclass with JScrollPanes, and I want to capture the points the user clicks on. Suppose, for example, the drawing area inside the JPanel goes from 0 to 10000, while the screen size isn't known a priori. Given the mouse coordinates in the click event thing, is it possible to determine whe...

How to fake mouse cursor position in Windows Forms C#?

I have this Windows Forms application with a simple balloon tooltip. Depending on the application's window location on the desktop and the mouse cursor location, the balloon 'tip' (or balloon pointing arrow) may or may not be pointing to the location I want. For instance, my app snaps to the desktop sides and when it's snapped to the ri...

GTK: Get co-ords of a mouse click in a window

In GTK I can't figure out what callback to setup so that when the user clicks in a window, I can get the X/Y co-ords of the click. ...

Java Keyboard/Mouse activity (even outside of my app)

Hi guys, I need to detect when the mouse or keyboard activity is present. My application runs in the background (tray) and I need to detect this activity even when my app isn't in focus. I don't need to know what keys were pressed, but simply WHEN they are pressed. Can I do this with just Java? I have read some solutions using JNI a...

How to prevent cursor from "jumping" into textbox when you type

If you have a focus on a textbox but mousecursor not exactly hovering on it, mousecursor has default arrow shape or whatever you define. At the time when you start typing, mousecursor hide itself and you see only blinking stick IBeam type cursor in the textbox. Question: How to hold mousecursor on its initial position even if you star...

Scrollbars in dropdownlist inside DataGrid itemEditor not working

Hello Flexperts, I have a DropDownList inside the itemEditor of my DataGrid. There are enough items in the DropDownList to justify scrollbars. You can see the scrollbars, and the mousewheel works fine. If you move the mouse over the scrollbars, they'll change appearance fine (mouseover is working). If you click on them, the DropDown...

USB HID Report Descriptor for Mouse Horizontal Scroll and Back Button

Hi, I'm building a USB mouse using a microcontroller, I have built one with vertical scrolling before using USAGE (Wheel) but I am not sure how to replicate the horizontal scrolling and back button features that a lot of good mice has. Does anybody here have experience with USB HID report descriptors who can help me? Can anybody who hav...

How to get mouse cursor icon VS c++

Hi, I use this code to get mouse position on screen and it's working. I also get cursor width and height. What I need is cursor icon in the moment I call function GetIconInfo. In ii iI have ii.hbmColor and ii.hbmMask. Value of hbmColor is 0x0, hbmMask is 0x2f0517f1. Can I extract mouse cursor from that two pointer and how? CURSORINFO ...

How do I tell OS X to ignore the input from one of two connected USB mice?

I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or cocoa environments, do I tell the system to ignore the mouse as a pointing device? Edit: after some digging I've found that I can turn off mou...

At will scaling and rotation in a 2D space

Hi, I'm trying to write a graphical program in C++ with QT where users can scale and rotate objects with the mouse (just like inkscape or CorelDraw does), however after many months trying to make it happen I still cannot make it work. It currently works for example by just rotating or just scaling, but not when the user want to transfor...

Pyqt get pixel position and value when mouse click on the image

Hello, Overwriting mouse event on pixMapItem didn't work for me ; the mouse click event is not detected by the pixMapItem. Here is my code : import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class DrawImage( QMainWindow ): def init(self, path): QMainWindow.__init__(self) self.setWindowTitle('Select Window') ...

USB Mouse custom driver

Is there a way I can create a USB Mouse driver for windows? I want to be able to plug in two mouses (or maybe 3, or 4) and interpret it's movement's and keypresses for an application I'm developing, in a way Windows won't even know there is more than a mouse plugged in. ...

remote desktop connection programatically simulate windows c++

My question is: How you can create same basic functionality with the remote computer, like using the same mouse, so when i take move on my computer that will appear at same moment on remote computer, like on the team viewer. Can anyone explain what is the philosophy behind all remote desktop shared programs, how i can see what I'm done o...

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 exciting. Now I'm stuck. I want to left/right click on things via python when i click A, When...