mouse

When a mousedown and mouseup event don't equal a click

Hi, I've been using some buttons for a while now that have a depressed effect as they are clicked using position relative and a top: 1px in the :active pseudo-class. I had problems with click events not firing and it turned out to be due to the mousedown and mouseup events not firing on the same element. I did a bit of fiddling to make...

WPF ListBox Show WAIT Cursor ?

I have a WPF ListBox that displays images loaded from a local folder, usually somewhere between 1- 300). I'm using a converter in my imageTemplate to make sure and show thumbnails of the images, and not the images in their full size. Even while doing this, it still can take several seconds to load initially. My question is, how do I know...

Controlling cursor and keyboard with C++/Visual C++

Hello This time I have a question about C++. I'm using Dev-C++ for programming, but I also have Visual C++ Express installed so both are good. I'm creating a program like automated tasks, is it.. macro? But as I'm a noob in C++, because I started it a week ago, I need help. Please keep the answers simple :-D This is a part of my learnin...

How to store (and use) the current mouse position?

What is the best way to store the current mouse position (system-wide) and then (later) put the mouse at that stored point? [NSEvent mouseLocation] gets me the position, and I can move the mouse with a CGEventMouseMoved, but they each use a different co-ordinates system (I believe y=0 is the top for NSEvent and the bottom for a CGEvent)...

Java keyboard hook

I would like to write a Java app that counts how long I have been using the keyboard or mouse w/o a break. Are there any built-in classes or 3rd party libraries that can detect global keyboard/mouse use? ...

JQuery: How do you change a graphic on a mouse hover event?

Using JQuery, how do I change a map icon whenever I mouse hover over a row in an HTML table/div? Here is an example: http://www.sfsunriseidx.com/homes/94131/?uuid=9ed7269b-5327-4c88-ba15-f700ed343d69&source=REDIR Notice when you mouse hover over a home listing on the left, the corresponding map icon on the right changes. Question...

VB.NET - Mouse Coordinates

Hello everyone, I have a vb.net application, and I want to know how to find the coordinates of the pointer (mouse) when it is clicked on the form. Not much else to say, so I'll leave it like that.. :D Thanks ...

Vim: transitioning from mouse to movement

I use MacVim (and gvim) a lot. I'm familiar with and use a lot of the basic movement commands (b, w, $, 0, G). However, for a lot of thingssuch as selecting particular lines on the screen or jumping to a particular column in a different lineI use the mouse (sometimes in concert with my left hand on the keyboard). It also helps that my mo...

Catching mouseDown events of subviews. (Cocoa osx)

I have a series of nested views and I need to catch the mouseDown event ant do the same thing when any of these views are selected. Is there a way to tell a superview to handle events for its subviews? Is the best way to handle this to put a transparent view on top of all my other views and have this view handle the events? ...

mouse indicator speed

I opened up a ball mouse and saw the slotted disks which turn past the light collectors. Where can I find code to capture, or see in a Windows program the speed that these slots are being detected as the mouse ball moves? I am trying to write a VB6 program which tells me the speed (slots past the collector per second) that the disk is t...

Flash - Mouse Event Handling (Make symbol transparent to mouse)

Hi, I have a flash that has a background symbol that responds to CLICK event. On top of that symbol I have a sprite that contains a Bitmap with transparent pixels. Both of them are added to the stage, so they are not related directly. I want clicks on the transparent pixels on the sprite to go straight through to the background. I hav...

Java 2D - Drag Mouse to rotate Image Smoothly

What is the logic that goes behind rotating an image via mouse movement. I know how to rotate using graphics2d.rotate...but having difficulty doing it with the mouse as the source for rotation. Here is basic steps: get mouse x(dx) and mouse y(dy) distances from anchoring point( in this case that would be the center of the image we w...

capture mouse location in mdiparent window

Hi All, I wanted to capture mouse location in mdiparent, in mdiparent i have added a webBrowser control which is docked to parent(mdiparent). so i am unable to get mouse location on webBrowser, as it doesn't have any Mouse event. please guide me... Thanks, Makki ...

Flex - Mouse wheel scrolling

I have a tile that has verticalScrollPolicy="on". Inside this tile are multiple panels, which are actually instances of a module that I've defined. The scrolling on the tile works fine when my cursor is over one of these panels, but it doesn't scroll if my cursor is just on the tile, not over one of the panels. There is space between ...

Ignore mouse and keyboard events in QT

How can I ignore all mouse and keyboard events and later dont ignore in QT. It is, click a button, ignore all events in childs, click again not ignore. is it clear? I have next lines, but maybe I use in wrong way: setAttribute(Qt::WA_TransparentForMouseEvents); setFocusPolicy( Qt::NoFocus ); thanks, ...

Mouse Clicks not recognized in ui-Moving mouse out of Application bounds fixes it

Hi, I am trying to implement a drag and drop between listboxes.I successfully implemented it using the library from http://code.google.com/p/gong-wpf-dragdrop/.Everything works fine but when i had to call some custom logic which involves some selection changed events also,My ui fails to detect mouse clicks anymore.No control in my hole a...

How to create click events by ruby.

Hi. I wanna to create mouse click events by ruby. left-click, right-click is there some library to do this? thanks for your concerns. ...

Switch/ban/manage active USB keyboards

I would like to create small app (in C#) to switch active keyboards and mouses in windows. For example i have 10 mice and 10 keyboards (in one computer with USB hub) and I would like to ban one or more of these. Is something like that even possible? I have no clue how to achieve this task. Any ideas, Thanks! ...

Is it possible to catch mouse position outside the document?

I found that is possible to retrieve the mouse position in IE outside the document or even the browser window, by using "window.onblur" or "window.onfocusout" or something like that. Even in Firefox it gives you negative mouse coordinates in the onmouseout event handler if you let your mouse pointer go out of the viewport quickly. Can ...

Is the hotspot of the WPF Cross cursor in the middle of the crosshair?

I'm having amazing difficulties with a high-precision pixel-oriented image program in WPF and starting to suspect that the Cursors.Cross cursor hotspot is not at its centre, as you would expect. I'm debugging using Magnifier at 16x and mouse set to the lowest acceleration. The code is based on DrawTools from CodeProject. Is this the ...