Hello!
I have a context menu with a few items. One of the items has a submenu (or whatever it's called) with a few items (depends on what files it finds).
What I want to do is when I left click one of the sub-items I want one thing to happen, and when I right click I want another thing to happen.
My problem is that when I use the file...
I've been slowly using my mouse less and less over the past few years. As a developer who prefers the command line over IDE bloat: the less I move from my keyboard, the more productive I tend to be.
So, a few days ago, I decided to do an experiment and unplug my mouse for the entire day. I definitely could have prepared myself bette...
I know that I can use a Mouse callback function for when a user clicks the mouse, but what if I want to know the current x/y position without the user clicking?
Will I have to use a different callback that gets called on any mouse movement and keep track of the x/y myself or is there a function I can call within GLUT/OpenGL to get it?
...
Environment: .NET Framework 2.0, VS 2008, C#
I am trying to create a subclass of certain .NET controls (label, panel) that will pass through certain mouse events (MouseDown, MouseMove, MouseUp) to its parent control (or alternatively to the toplevel form). I can do this by creating handlers for these events in instances of the standard...
Hiya - can anyone think of a good way to ignore the single click that comes with a double-click in Java ?
I'm looking to have different behaviors for each such that:
single-click paints crosshairs on the click point
double-click selects an object on the screen, but should not paint crosshairs on the click point
... can anyone think...
Is there a way to catch a MouseLeftButtonDown (or other mouse event) at a page or user control level and then be able to determine which child control was actually clicked?
...
Hi!
We're trying to read data from 2 usb mice connected to a linux box (this data is used for odometry/localization on a robot). So we need to continuously read from each mouse how much it moved. The problem is that when a mouse is not moving, it doesn't send any data, so the file stream from which we get the data blocks execution and t...
Does anyone know how to bind extra mouse buttons to commands in visual studio 2008? There used to be a "powertoy" that let you do it for visual studio 2003, but I can't find an equivalent for 2008.
...
I'm wondering how to set the mouse cursor position under X11? Is it possible at all and if, where do I have to look for appropriate functions? X window system, KDE/Gnome/...?
...
I am responding to MouseLeftButtonDown events on elements added to a WPF canvas. It all works fine when clicked (i.e. the eventhandler fires off correctly), but it requires too much precision from the mouse pointer. You have to be perfectly on top of the circle to make it work. I need it to be a little more forgiving; maybe at least 1 or...
how to implement mouse drag&drop process
example
SetCursorPos(32, 32);
mouse_event((uint)MouseEventFlags.RIGHTDOWN,0,0 ,0,0);
mouse_event((uint)MouseEventFlags.RIGHTUP,0,0 ,0,0);
SetCursorPos(38, 38);
mouse_event((uint)MouseEventFlags.LEFTDOWN,0,0 ,0,0);
mouse_event((uint)MouseEventFlags.LEFTUP,0,0 ,0,0);
this is code for open ...
Is the a programmatic way (or something more simple) to map some keyboard key to the same action windows-wide as the left mouse button in Windows XP / Vista. If programmatic is there a way to do this in .NET 2.0 (or greater)?
...
I'm looking for some code (preferably C#) that will prevent keyboard and mouse input.
...
I'm trying to migrate from Moose to Mouse in the interests of speed but have encountered a showstopper error.
I'm building two objects in the same scope:
sub scope {
my $foo = Foo->new();
my $bar = Bar->new();
}
The BUILD method of Foo is firing but the BUILD method of Bar is not. Any ideas? Both Foo and Bar inherit from Baz ...
As I see it, there are two ways to handle mouse events to draw a picture.
The first is to detect when the mouse moves and draw a line to where the mouse is, shown here. However, the problem with this is that with a large brush size, many gaps appear between each "line" that is not straight since it is using the line's stroke size to c...
I am able to find the cursor position. But I need to find out if the mouse is stable. If the mouse wasn't moved for more than 1 minute, then we have to alert the user.
How its possible, are there any special events for this? (Only for IE in javascript)
...
I'm building an application in Flex and I have few windows with scroll. When I'm trying to use mouse scrollwheel the window does not scroll up/down. Plus if it is possible to make the window to scroll up/down then is it possible to make to scroll right/left.
...
How do you setup a JTable to be able to drag a row to a different index in the table. For example if I have 5 rows and I want to drag the 4th row to the 2nd position?
...
To start out I found this code at http://swigartconsulting.blogs.com/tech_blender/2005/08/how_to_move_the.html:
public class Win32
{
[DllImport("User32.Dll")]
public static extern long SetCursorPos(int x, int y);
[DllImport("User32.Dll")]
public static extern bool ClientToScreen(IntPtr hWnd, ref POINT point);
[StructLayout(LayoutKind....
Hi,
I have an MFC appplication where the user have to move the mouse around a circle circonference with a dragging mouvement. I need to retrieve the number of degrees during this mouse drag "rotation" and I need to know if it's clockwise or counterclockwise.
At first, to determine the rotation direction, I was comparing x-coordinnate be...