mouse

Global Mouse Hook + Simulate Mouse Inputs

I'm looking to create a global mouse hook that works in XP/Vista/7 which would allow me to access the X,Y values that the mouse is inputting, and modify those values before they hit Windows... I also want to be able to simulate mouse inputs in between actual mouse inputs... For example, lets say our inputs looked like this: 1: 1,0 2: ...

Keyboard- and mouse-event transparent widget

When i click a button my main window i want it to become transparent to keyboard and mouse events, i.e. all keyboard and mouse events should pass to any windows below it as if that window is not present there. "Qt::WA_TransparentForMouseEvents" does not work here as this only make child windows transparent to keyboard and mouse events i...

Is there a Delphi 'joystick' control?

I'd like to align an object in X and Y by eye using the mouse to move it into position. I can roll a solution by using various spin controls (or buttons) but it's messy and I got to wondering whether there is a control - like a joystick - that provides 2-axis control using the mouse and fires events at rates which vary depending on its p...

Mouse in Silverlight

Hello, Is it possible to get the mouse position on Silverlight, without hooking on some MouseEvent? Like in WPF which is Mouse.GetPosition(object relativeTo). Thanks ...

Opengl Window with mouse control for win 32

Hi, I am new to OpenGl, almost new to C++. I am looking for some code that does the following things. Open an OpenGL window (maybe using glut) Rotate the view point when the user press the left mouse button zoom when the user press the right mouse button translate the point of view the user press the central button Basically what ...

Algorithm to emulate mouse movement as a human does?

Hello I need to test a software that treats some mouse movements as "gestures". For such a task I need to emulate mouse movement from point A to point B, not in straight line, but as a real mouse moves - with curves, a bit of jaggedyness etc. Is there any available solution (algorithm/code itself, not a library/exe) that I can use? Of...

How to detect when mouse is over HTML layer over Flash movie?

I have a Flash movie that is embedded in an HTML page that has a DIV in a layer over the top of the movie. The Flash movie scrolls based on the mouse position over the movie. The client wants the scrolling to stop when the mouse is over the DIV. I've tried using the mouseLeave event, but that is not triggered by the DIV. Is there a wa...

Actionscript 3 mouse_over play movie, mouse_out reverse movie

Hi. I'm trying to make some flash buttons with a mouse_over animation that plays in reverse on mouse_out. Now I have it working for one of my three movie clip instances. I am using e.currentTarget.play() instead of having a function for each movie clip, but how do I do the same for my playReverse function? I tried putting e.currentTarge...

Cocoa's NSView getting insane mouseDown events ?

Hullo all - I've got a NSView subclass that I move programmatically on mouseDown. Which works, but has an odd side effect: I click the subview. The subview moves away [GOOD] I wait a while. I do not move my mouse. Since the subview has moved it's no longer under my cursor. I click my mouse again. I expect the underlying window to get ...

What are the best cursor (mouse) tracking applications for web sites?

What are the best cursor (mouse) tracking Javascript applications for web sites? To be stored in a database... ...

Touch events with Magic Mouse and iPhone Simulator

I observe that with the iMac magic mouse, while using the iPhone simulator, if: a) the active view has an object in the center of the iPhone screen which is capable of generating touch events, and b) the iMac operator accidentally or otherwise drags their finger(s) across the magic mouse surface in a way which would normally be used for...

Can I set IsHitTestVisible to false only for right-button events?

Obviously, the straightforward answer to the question is "No", but what's the best way for me to achieve that kind of effect? To explain, here's a bit of background... I have an app that displays an Image plus a couple of layers of overlaid shapes on that image. All of these are placed within a Grid cell, overlapping each other, with th...

Is it posbile to set a mouselistener in WPF?

Can i set a mouselistener (Clicked) in WPF? ...

XNA mouse coords vs objects problem

Hi all, I'm having a problem with the xna framework, I have a stripped down version of my code here to demonstrate. When the mouse is clicked an object is created at that mouse click point and the object is displayed via it's own draw method. What happens is that the first object is created at the correct position (current mouse coords...

WPF Detect mouse move?

Well im trying to make my own basic Slider control just so i can learn abit how to interact with the mouse... so far i have this: vb.net: Private Sub Rectangle_MouseMove(ByVal sender as Object, ByVal e as System.Windows.Input.MouseEventArgs) If (e.LeftButton = MouseButtonState.Pressed) Then Dim p As Point = Mouse.GetPosition(Me) ...

java - get mouse events outside of a component

i'm having the same issue as the person here, in that i need to track a frame location while it is being dragged on OS X. The question had not been resolved there, so: how do i tell a frame that a mouse down event happened on its (OS-native) title bar or, more generally, that a mouse down event happened somewhere on the screen? ...

mouse move on element

how i can move mouse courser on an element when page load with jquery? thanks ...

Rearrange tabs with the mouse in gvim

Is there any way in gvim to rearrange tabs by dragging and dropping them with the mouse? This is behavior I love in Firefox and Chrome. I know you can do :tabm n but that requires figuring out exactly how many tabs in you'd like to move to. Using the mouse would be more useful for this spatial task. Any methods to move tabs left/right ...

onMouseButtonUp

I need some way to find out when user released mouse button - something like keyUp - but for mouse ... Any ideas? PS: I want to mimic :active pseudo class, and my idea was toDoSomething() on mousePress, and UnDoSomething() on mouseButtonUp ... now ... if you got better solution - hit me up! :) ...

Listen to JFrame resize events as the user drags their mouse?

When a user clicks on the corner of a JFrame to resize and drags the mouse around, the JFrame redraws based on the current position of the mouse as the user drags. How can you listen to these events? Below is the what I have currently tried: public final class TestFrame extends JFrame { public TestFrame() { this.addComponen...