mouse

Delay from mouse button click until a window message is posted (Windows)

This questions is relevant to an application I'm currently working on, but I don't have much to go on in terms of finding an answer. The basic questions is what is the delay (or how to estimate it) between the time that a user presses one of the mouse buttons until the information is posted to the window message queue and is available fo...

How to show mouse cursor in browser while typing?

On Mac OS/X in both Firefox and Chrome, the mouse cursor disappears when I type. Is there anyway in javascript to prevent this behavior or to force the cursor to become visible again? I'm using jquery for the keyboard handling: // keyboard handlers $(document).keydown(this.keydown); $(document).keyup(this.keyup); ... keydown: ...

How to configure mouse enhance pointer precision programatically

How to configure mouse enhance pointer precision programatically in C++? I know that have some useful commands like SystemParametersInfo, for speed, ... int x = 15; SystemParametersInfo(SPI_SETMOUSESPEED, NULL, reinterpret_cast(x),SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE ); ... but I cannot find enhance precision---- ...

WPF C# handling events while dragging an object

How can I handle a singular right mouse click event, while an object is being dragged? I've tried handling it with QueryContinueDrag event: void object_QueryContinueDrag(object sender, QueryContinueDragEventArgs e) { if (e.KeyStates == (DragDropKeyStates.LeftMouseButton | DragDropKeyStates.RightMouseButton)) //TODO however...

simulate mouse move in php ?

Is it possible to simulate mouse's move in PHP ? By that I mean to do something like : $mouse->moveToCoordinate($x,$Y); // will move the screen to to the coordinate $X, $Y of the screen $mouse->moveVector($x,$Y); // will move from the current point to the (current X + $X, current Y + $Y); $mouse->click(); // will simulate a mouse clic...

Tracking WPF mouse movements amidst multiple WindowsFormsHost controls

I have a WPF application that has several WindowsFormsHost controls. I'm trying to track the mouse position inside of my application when it is maximized in full-screen mode. If the user puts the mouse near the top screen, I'd like to display a Window with additional menus. I can use: Window.PreviewMouseMove InputManager.PreProcessInp...

Mouseover changes text inside separate DIV

Is it possible to change the text inside a separate div from a mouseover over a separate link? Would anyone know where to direct me or show me an example? Thanks for all your help!! Erik ...

How to get current mouse cursor coordinate in C#?

How to get current mouse cursor coordinate in C#? ...

Qt-Right click mouseReleaseEvents aren't caught by eventfilter,other events though are caught.

My application consists of a WebView widget. A mouse click on the widget is not handled by the mousePressEvent() of my application, but by the WebView widget. So, I installed an event filter to receive the events. Now, I get notified of all events, except the mouseReleaseEvent for the right click (Everything works fine for left clicks an...

Maping a key based on the device the key is on? (Linux)

I own a Razer Naga Mouse, essentaly it has a small numpad on the side of it. I want to remap these keys to different unused keys or to bash commands. I can do this easily by using xev to grab the keycode (for instance the "1" on the mouse is keycode 87) and then I can use xmodmap to bind the keycode to a different key. However the numpa...

Windows API CreateWindow client size mouse position

Hi, Working with OpenGL, I used CreateWindow( "app", "App Window", WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE | WS_SIZEBOX | WS_MINIMIZEBOX | WS_MAXIMIZEBOX, 0, 0, 1024, 768, NULL, NULL, hInstance, this ); to create a window and now I need to find the mouse position over the client (render) area. However, I noticed that the mouse co...

How do I stop mouse_out firing when mouse click fires.

I have buttons that have mouse_over, mouse_out and CLICK events. But when I click the button it takes me to another frame and the mouse_out event tried to fire. How do I stop that happening? act1_btn.addEventListener(MouseEvent.CLICK, act1Pressed); act1_btn.addEventListener(MouseEvent.MOUSE_OVER, act1Over); act1_btn.addEventListener(Mou...

c# Control.Validating event leaves mouse focus on other controls?

I have a c# .net 2.0 winForm with a textbox and a trackbar. The textbox Validating event sets e.cancel if the user clicks the trackbar and the validation fails. I am then left with the cursor in the textbox, but the mouse focus is still on the trackbar so moving the mouse moves the trackbar. I have tried SetFocus in the validating event...

How do I calculate the magnitude of the velocity of my mouse cursor, in Python?

http://dl.dropbox.com/u/779859/speedCalc_puradata.JPG I achieved it in pure data, have a look at the schematic of what I'm thinking: Recieving Midi Control input from ctlin 20 and 21 Pipe delays whatever signal it recieves Pythagoras Viola, the speed of the input. The units don't matter, as long as it is absolute. I was thinking abo...

Pasting text into emacs on Macintosh

I'm on a Macintosh and am using "terminal" for my shell. When I copy text from any window (via mouse drag then right mouse button menu -> copy) and then I paste the text (right mouse button -> paste) into a terminal with emacs running, it doesn't act as a paste. Instead, it is just like entering or typing in text. The problem occurs w...

jquery ui slider: call function on mouseup outside

hi, i use the jquery ui slider and all is fine except that the function i defined in the change prameter fired only when i release the mouse over the handles. is the a way to call the function when the mouse is released outside the slider? thanks for helping. ...

GetKeyState doesn't work in Windows 2000 (C++)

Hello. I have just tested my DirectX game on a Windows 2000 SP4 system but it won't receive any mouse clicks! This is how I check for mouse clicks : unsigned int mButtons = 0; if (GetKeyState(VK_LBUTTON) < 0) mButtons |= HIDBoss::MOUSE_LEFT; if (GetKeyState(VK_RBUTTON) < 0) mButtons |= HIDBoss::MOUSE_RIGHT; if (GetKeySt...

[WPF] ItemsControl : how to do hittest to find item / index under mouse position ?

In my Canvas I have children with a specific design which includes an ItemsControl. In the OnPreviewLeftMouseButtonDown handler of my canvas, I perform a hittest using VisualTreeHelper, and when I find a specific ItemsControl I'd like to know which item / item-index the mouse was over. Does anybody know how to do this ? ...

mouse becoming "corrupt"?

Hi, This is quite possibly a stupid question, but I want to know if it is possible for a standard USB optical mouse to become "defective" simply by connecting it to the USB port of a PC and using it for a while? Meaning it would stop working properly after a short while of being connected, and the problem would persist from then onwards...

Jquery: mousedown effect (while left click is held down)

I need a function that executes a function while a button is pressed and stops executing when the button is let go $('#button').--while being held down--(function() { //execute continuously }); ...