mouse

Detect mouse location after Silverlight window loaded

Hi, I'm running a web page that has a SL 'box' in it. I know how to use the MouseEnter and MouseLeave to detect if the mouse has entered the SL box or left it. My question is how to detect if the mouse is inside or outside the SL box when it has just loaded. Thanks. Gilad. ...

How do I make a custom system wide mouse cursor animation?

I write software for the disabled. One of the problems is difficulty tracking the mouse pointer. I want to have the mouse cursor glow (or similar effect. Maybe water like ripples around it) when the user needs to locate it. How is this done? I know it's possible because it's used in a variety of software. ...

Flex 3 UIComponent width property not working

I have a flex 3 application in which I draw my own UI. It is a player-style app, so it has a bar that fills as the media plays. I do this with this code: bgRect=new UIComponent(); bgRect.graphics.lineStyle(0); bgRect.graphics.beginFill(0xFFFFFF,1); bgRect.graphics.drawRect(0,0,399,20); bgRect.graphics.endFill(); bgRect.addEventListener(...

Translating Mouse gestures into Numbers (.NET)

Hello, I am looking for a way to translate mouse movements - while the left mouse button is kept pressed down - into numbers 0 - 9. Are there any existing .NET libraries for this? many Thanks for any advice on this, Kave ...

Simulating mouse clicks on Mac OS X does not work for some applications.

I'm writing an application for Mac OS X 10.6 and later in C++. One part of the application needs to simulate mouse movement and mouse clicks. I do this currently by posting CGEvent objects using CGEventPost(kCGHIDEventTap, event);. This works, for the most part - I can simulate mouse movement and clicks just fine, but it seems to fail i...

Qt4: Locking the mouse cursor in place while manipulating QGraphicsItem...

I'm writing a little GUI utility in Qt4 which uses a QGraphicsScene. One of the items tracks the mouse in the horizontal plane as you move it around, and holding down a modifier key allows you to change the item's rotation. When rotating items I'd like the mouse cursor to change to a curvy arrow (or something) and lock visually in plac...

Qt - Moving Frameless window (slow repaint?)

Hy there, I'm new to Qt and i tried to create a Frameless window, which is dragable. The Problem is, if i move the window.. there are are thousands of (it? sorry, don't know how to describe it in english) until i stop. Is there a way to fix this, or am i thinking the wrong way? MyWindow.h #include <QMainWindow> #include <QLabel> #incl...

Mouse stops working in Visual Studio 2008 Test Result pane

For some reason the mouse has stopped working in my VS 2008 test tab. It works fine everywhere else. The changes that I have made recently that it could be connected to are: Installed VS 2010 Release Candidate Installed EPI Server Am running VS as Administrator due to EPI server requirements Any Ideas? ...

How to detect mouse and keyboard inactivity in linux

I am developing an app on python which will check for user inactivity. Is there a way to check for key press and mouse move events in linux? ...

Increasing number once per mouse click/key press in XNA

This has been bothering me lately- when I use some code like below to increase selection every mouse click: if (m.LeftButton == ButtonState.Pressed) currentSelection++; Then currentSelection increases by a ton, simply because this code is in my Update() function and by design, runs every frame and so increases currentSelection. There is ...

How to clear mouse click buffer

We may use the following code to clear keyboard buffer: while PeekMessage(Msg, 0, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE or PM_NOYIELD) do; But how may I clear mouse click buffer? ...

Move mouse cursor using javascript in Chrome or Firefox using any method (Plugin, GreaseMonkey?)

Hi, I have need to move the mouse cursor position in the browser, I can use any method as long as its in Google Chrome or Firefox, one or the other. In the best case, I would like to control the mouse position with javascript. Any easy way to do this? Thanks! Phil ...

How to get control under mouse cursor?

I have form with few buttons and I want to know what button is under cursor now. P.S. Maybe it's duplicate, but I can't find answer to this question. ...

8086 assembly right mouse click interrupts

Hi guys I am working on a project in 8086 assembly on windows machine and I need to know which mouse button has been clicked. What are the interrupts for this? or how do I go about finding this out? Thanks ...

how to obtain mouse click coordinates outside my window in Java

hi, I need to implement a class, using Swing, which can obtain the mouse coordinates when the user clicks anywhere on the screen. if I wanted to obtain the mouse coordinates inside my own window, I'd use a MouseListener, but I want it to work even when the user clicks outside my program. I want my class to behave just like KColorChoose...

WPF ToolTip disappears on mouse down

I've got tooltip on an element that I want to stay open even when the user clicks or holds the mouse button down while over my element. Is there anyway to do this? ...

Adobe AIR: touch screen doesn't trigger mouse down event correctly

i have designed a gaming kiosk app in as3 i am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7 the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse events everything is fine (including mouse click and move events) except that a single touch to the screen (with no move) ...

how to get the mouse's offset when i mouseover a element..use jquery

this is my code and have a error: $('#map_canvas').mouseover(function(e){ console.log(e.offset().left+' '+e.offset().top) }) thanks i do this ,and it is always log (0, 0): $('#map_canvas').mouseover(function(e){ var offset = $('#map_canvas').offset(); console.log(offset.top+' '+offset.left); //offset of 'rea...

Java - How to change Mouse-Speed in Windows

Yeah, thats the Question. How can I change the Mouse-Speed in Windows in Java? Greets ...

How to get the coordinates of an image mouse click in the event handler?

In the following WPF app, I have an Image in a ContentControl. When the user clicks on the image, how can I get the x/y coordinates of where the mouse clicked on the image? XAML: <Window x:Class="TestClick828374.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/win...