mouse

How to fetch the middle mouse button in java?

I use public boolean mouseDown(Event ev, int x, int y) to detect a click of the mouse. I can distinguish between the right mouse button (ev.metaDown() is true) and the left and middle. How can i differentiate the left from the middle button? Or if it is impossible with mouseDown, what should i use? ...

What is the difference between the onMouseUp/Down and onPress/Release events in Flash?

In Flash, there seem to be two sets of mouse click events: onMouseUp, onMouseDown onPress, onRelease Is there any actual difference between these events? I can't tell from the documentation, and I haven't noticed anything in actual usage, but it seems odd to have two different sets of names for the same basic events. Am I missing s...

How do I send mouse/keyboard input without triggering LLMHF_INJECTED flag?

At the moment I use the SendInput() function but if you install a low level mouse hook the LLMHF_INJECTED is set indicating that the input was injected into the stream. Is there a way of sending mouse and keyboard input so that LLMHF_INJECTED is not set? ...

How can I implement the "tap and hold" behavior in an MFC CListCtrl?

How can I implement the "tap and hold" behavior in an MFC CListCtrl? I have an MFC CListCtrl in a CDialog and I need to add to the CListCtrl the "tap and hold" behavior. That is what I mean for "tap and hold": If the user clicks (a "standard" click with the left button of the mouse) on a CListCtrl item then function A will be called. ...

detecting keyboard, mouse activity in linux

Hi all, I need some way to detect mouse/keyboard activity on Linux. something similar to what any IM program would do, if no actiivty is dected for say 5minutes, it will set your IM status to "I'm not here right now" Any help towards this is appreciated. Thanks ...

Multiple mouse pointers?

Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow. Is this something I should try to farm out to some other appli...

Windows: Mouse Down on Window Decoration

In almost any Windows application, I notice that holding the mouse button down in a non-client area causes the painting to stop. Why is this required? For example, I have a Managed Direct 3D application which displays a spinning cube. If I place the pointer over the title bar and hold the mouse button down, the cube ceases to spin even ...

How can I handle multiple mouse inputs in Java?

A friend of mine asked me to implement a blue and a red pointer to represent the inputs of two separate mice to expedite a mixing desk scenario for real time audio mixing. I'd love to, but as much as I think it is a great idea, I don't have a clue as to where to start looking for a possible solution. Where should I start researching a ...

Can a Flash movie pass mouse events to the containing page?

One of our newer products is a walk-on video system, in which a character appears in an absolutely positioned DIV and gives a little presentation. We're using Flash 9, AS3. Unfortunately, in order to make him appear in front of the website content, we need to set his Z-index to a value higher than the page content. On some websites and ...

VB6 PictureBox Mouseover

I'm using a VB6 PictureBox on my User Control. I set the PictureBox's picture, I set the BorderStyle to 0, and I set the BackColor to the User Control's BackColor. The idea is that I want a "floating" icon. However, I want that icon to appear clickable when the mouse hovers over it. Two questions: Which events do I use? MouseMov...

Controlling the mouse from Python in OS X

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. Thanks! ...

Can WPF User Control Detect MouseMovement when Mouse outside of UC Area

hey all, I'm writing a WPF app whereby usercontrols are being dynamically created programmatically in response to an event. The main window canvas has a grid, and i'm adding new columndefs and rowdefs, which contain the new user controls. I need these user controls to keep track of where the mouse is, so that they can respond to event...

Block Access mousewheel behavior in external ActiveX controls

In an Access (2002 / 2003) data-bound form, a turn of the mousewheel moves to the next/previous record, even if the cursor is inside a multiline text field or a listbox. This is a major annoyance to users and cannot be turned off easily. I recently discovered a DLL called MouseHook (http://www.lebans.com/mousewheelonoff.htm) which can e...

How do I limit mouse pointer movement in wxWidgets?

Is there a way to limit mouse pointer movement to a specific area in wxWidgets? I know there is an API function ClipCursor() in Windows, but is there a method in wxWidgets for all platforms? ...

How to detect drag operation at windows global scope?

When I drag a folder at the edge of the screen in Windows XP, it become a toolbar, containing the files in the folder. How can windows detect there is a drag operation? If I want to write a application to detect drag operation in system scope, How can I do this? And another problem: how can I disable this windowsXP function, it is reall...

Is it possible to map a key press to simulate middle-click in xwindows?

Hey, I'm wondering, is it possible to somehow map a key-press event to act like a middle-key click of a mouse in Xwindows? They are diffrent devices, I know, but if there was a way to trigger a middle-button click event from a C program, it should be easy to bind a key to it using existing xwindows mechanisms. ...

Programmer Tools - Quiet / Silent Mouse

Anybody have any suggestions for a quiet or silent mouse? My wife is not so keen on me coding while watching television because of all the mouse clicks. A follow up for someone who knows hardware... are the clicks in a mouse really necessary? Or are they supposed to be auditory feedback? ...

Move the cursor programmatically from one page to other page using JavaScript

Hello, I have 2 pages on the screen (actually more as it is a kind of proprietary web application with a few frames and I cannot figure out actually the whole structure) I enter the search criteria in a page, I press ‘Enter’ on the keyboard , search is executed and the other view is filled with data. There is a button ‘Confirm’ on this...

JavaScript: Check if mouse button down?

Is there a way to detect if a mouse button is currently down in JavaScript? I know about the "mousedown" event, but that's not what I need. Some time AFTER the mouse button is pressed, I want to be able to detect if it is still pressed down. Is this possible? ...

What's the *best* wireless keyboard/mouse set for programmers?

I've considered the following: Logitec Desktop MX 5500 Microsoft Wireless Entertainment Desktop 8000 But I'd like see what other programmers would recommend. ...