mouse

Is it possible to use vim with the mouse

Is it possible to use vim with the mouse? If so, how? ...

going left: unrestricted / wrapping mouse tracking? in Flash?

So, I'm shooting up dudes in [3D Game], and I can keep dragging my mouse to turn left round and round. Is this possible in Flash? Or have I misunderstood how the mouse is handled within [operating system] and then passed to the Flash Player? ...

WPF ObjectDataProvider and Mouse.GetPosition(IInputElement relativeTo)

I am attempting to bind the position of a camera to the relative position of a mouse's position in a 3D environment. Using an ObjectDataProvider I would imagine I can call this method and then bind to it, however, I'm not sure what to put in the ObjectDataProvider.MethodParameters, I'd like to reference the named Viewport3D from outside...

WPF ObjectDataProvider with static method GetPosition of Mouse

I am attempting to use an ObjectDataProvider to call the GetPositition method of Mouse, but am getting this error: System.Windows.Data Error: 34 : ObjectDataProvider: Failure trying to invoke method on type; Method='GetPosition'; Type='Mouse'; Error='No method was found with matching parameter signature.' MissingMethodException:'System....

How can I change the position of the mouse cursor in OpenGL/Glut?

I'm writing a simple game and I'm going to have the mouse control the camera (using GlutPassiveMotionFunc). I'm going to pitch and yaw based off the mouse difference between callbacks, however I think it would be a good idea to "force" the mouse back to the center of the screen every time they tried to move it. This way their cursor wo...

Mouse Control using wii nunchuck

Currently i'm able to read info from the wii nunchuck in a C# application. For learning pourposes, I want to program an application that controls the mouse using the wii nunchuck. What is the simplest way to take control of the mouse programatically? do I need to use the windows API? I need to move the pointer and simulate clicks. T...

WPF ObjectDataProvider with Mouse.GetPosition()

I have the following code, dw:ObjectReference is an implementation which is supposed to point to a declared ViewPort3D not in the UserControl.Resources. Is this even possible? And if so what should I replace dw:ObjectReference with? <ObjectDataProvider MethodName="GetPosition" ObjectType="{x:Type Mouse}" x:Key="odp"> <ObjectData...

How to control the mouse pointer outside our application

Hi, I want to control the mouse pointer with my application and be able to interact with other programs using my program, For example I want my application to be able to click on a button on another application How should I go about solving this problem? (Any programming language would work, also if you have any suggestion please let m...

Using SendMessage for Simulating User Mouse Clicks

I need to use SendMessage fro simulating user clicks in a target program as SendMessage blocks until the event that it triggers is finished processing. The reason for this is that this blocking gives opportunity to detect if any dialogs have opened up as a result of the clicking. My problem currently is that although I can get the clic...

Setting Virtual Key/MouseButton State Without Triggering Events

Is it possible to set the virtual key state / mouse button state for all programs on a computer without triggering the associated events at the same time (like setting the left mouse button to be currently pressed without sending a mouse down event). Could this be achieved by setting up a fake keyboard or mouse driver for a fake keyboar...

Mousewheel Delta value always 120

Hello all, I am creating an application in WPF that uses the mousewheel to zoom in/out an image. The amount of zooming is based on the amount of mouse wheel turning. The problem is that the Delta value is always 120, as explained in MSDN. So, even if I turn the wheel 1 notch or 5 notches it will always be 120. Do you know a way around ...

Retrieve mouse locations outside of an event handler

How can I retrieve the mouse location outside of it's assigned event handler function For example, if Event.MOUSEMOVE = somefuction, how do I say... someOtherFunction( maybeSomeParams ) { getCurrentMouseLocn(); } or someOtherFunction( maybeSomeParams ) { mouseXLocn = ?; mouseYLocn = ?; } ...

How to limit cursor movement in WPF based app?

I'm working with a WPF app, more specifically a Canvas with draggable elements. Once an item is being dragged, I'd like to limit the scope of cursor movement to inside the canvas where the items are being dragged about. The event which can start a drag is shown below private void WidgetCanvas_PreviewHeaderLeftMouseDown(object sender,...

Multiple mice on OS X

I am developing an OS X application that is supposed to take input from two mice. I want to read the motion of each mouse independently. What would be the best way to do this? If that is not possible, is there a way to disable/enable either of the mice programmatically? ...

Simulating Mouse-click on IE Window at specific location

Hello, I am trying to simulate mouse-click at a particular location on an active Internet Explorer window. Given below is my NUnit test case code. When I run my test case it works perfectly for first time, producing the mouse-click where I want. The next time I run it, it moves the mouse alright but the click does not occur. And when I ...

Detect Mouse Move Event On JPanel

I have a JPanel, which I would like to detect the following events (1) When the mouse move in (2) When the mouse move out The (1) is quick easy. (2) is a bit tricky. Currently, I have to register event at all the components around JPanel. If the neighbor around JPanel detected a mouse move in event, this also means that JPanel is havi...

how do I implement a "second mouse cursor" in a c# windows app?

I actually don't want it to be a "real" mouse cursor, i.e. no need for ability to click on buttons, select text etc. It should just look like a cursor (or kinda like it) and be able to move around the app's window (no need to go outside). It will be controlled by the computer, and the user should be able to use the mouse as usual during ...

What is the best way to get mouse position over form?

Hi my teachers!. I want the best way to get mouse position for Form. I,m now set the values of mouse position in variables to get them in another methods "Like Form1_Click". Is there any better way to do that??. Thank you very much. ...

c# How to change window focus onMouseEnter event

Hi, i have a WPF application that i would like to become the current focused window whenever the mouse cursor moves over it. Currently i have a onMouseEnter event that changes the cursor when the mouse moves over it so i know the system is recognizing that, however what i actually want is for the application itself to become focused as i...

How should I emulate a mouseenter event using jquery's live functionality?

I want to use jQuery's great live functionality for a mouseenter event, but it's currently unsupported. Below is my first go at a solution, but it doesn't seem optimal. Suggestions? Improvements? // mouseenter emulation jQuery('.selector').live('mouseover',function (e) { // live sees all mouseover events within the selector // o...