mouseevent

Generating mouse events in Mac OS X

Hi, I have an USB device that will send out some proprietary data and I have some algorithm that converts it to mouse coordinates, the question I have is how do I write a driver that reports to Mac OS X? I have seen some references to IOHIDPostEvent but I cannot find detailed documentation on Apple's Developer Website. Is this the corr...

ActionScript Continuously Dragging Objects Within Bounds From Off-Stage Mouse Coordinates?

is it possible for flash to detect off-stage mouse coordinates in order to continuously drag an object within its bounds while the mouse is moving outside of the stage? for example: i have a draggable red square on my stage. the stage is the bounds of the drag. if i drag the red square to the bottom of the stage and continue to drag ...

why does my flash-animation reset when i move the mouse?

I have 2 overlapping movieclips on the stage. Both are instances of the same movieclip, but with different names. One bigger then the other, due to a magnifying effect. (I have tried to out-rule that code by the way, so its not that). The intention is to make both movieclips play when the mouse is over the stage and then stop as the mou...

Workaround for setToolTipText consuming mouse events?

This seems to be a verified problem with SWING http://forums.sun.com/thread.jspa?threadID=385730 I'm currently trying to set the tooltip text of a tab in a JTabbedPane but when I do I can't actually select the tab anymore because the tooltip added a mouse listener that is consuming the events. Does anyone know of a workaround that al...

Not able to input text in html text field

I have a script that makes me able to drag some content in a div. But because you can drag around, no matter where you place the cursor in the div, I am not able to input some text in a text field. Is it possible to allow that? I can eaily click links in the div container. But not input text in a html input field. This is the javas...

What should i do make this code work in VS 2010?

I have used this code manually to simulate a mouse click by system through code. using System; using System.Windows.Forms; using System.Runtime.InteropServices; public class Form1 : Form { [DllImport("user32.dll",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)] public static extern void mouse_event(long dwFlags...

Detect both left and right mouse click at the same time?

I'm remaking windows Minesweeper (from XP) and something they had included was that if you click a number with as many flags as it's number with the left and right mouse button at the same time, it reveals every other hidden tile around that number. I'm having a hard time telling when both the Left and Right mouse buttons are pressed at...

Capture mouse move from sidebar of a firefox plugin into the document

I am trying to do something like the following in my firefox plugin - I open a sidebar on which I show certain UI elements (like an image) and allow people to drag and drop those images from the sidebar onto the document. I am trying to achieve my goal by doing this: var currentWindow = Components.classes["@mozilla.org/appshell/wind...

is any onmousescroll / onmouserollover event exist?

Hi, is there any onmousescroll / onmouserollover event exist in javascript / asp.net on picklist or select control. I want to implement/attach this event on the picllist of CRM lead form's onload. I will do that. But want to know is any such kind of event exist or not? ...

jQuery - check if mouse cursor is inside 2 elements (from inside a mouseover event)

Hi I have a tooltip function in which I have a mouseout event on 2 elements. These two elements are child-parent (one into another). Within this event I need to check if the mouse cursor is outside of both these 2 elements. How can I do this? ...

Problem with WPF mouse event routing

Here's what I am trying to do: Build a custom control that essentially is a scrolling tree view. Later on, it will have to monitor and interact with its items in a certain way. (e.g. it will have to find the element corresponding to a sort of path of names). Since all items will have the same size, this is a prime case for virtualizatio...

I want to be able to access the routed events for mouse events in a Form.

If you want to get mousemove events over a group of controls in a window, it seems there are a couple of ways to do this, but none are very clean. The hacks I've seen: Application.AddMessageFilter; Blatantly check all events coming to the window. (difficult to limit to a specific part of the program.) Recursively hook up handlers to e...

Problem with SIngle and Double click events in canvas

Hi, I have a Canvas which is present in a usercontrol, I have attached the DoubleClick event to this user control like this mainWindow.CanvasLayout.MouseDoubleClick += new MouseButtonEventHandler(CanvasLayout_MouseDoubleClick); I am usign this event handler to achieve fullscreen functionality. Now, canvas can have various controls...

SetWindowsHookEx with WH_MOUSE_LL slows down the mouse for several seconds.

Hi, I am using the following code to get mouse messages on the current process. using (Process curProcess = Process.GetCurrentProcess()) using (ProcessModule curModule = curProcess.MainModule) { return SetWindowsHookEx(WH_MOUSE_LL, proc, GetModuleHandle(curModule.ModuleName), 0); } For some reason when this code runs the mouse g...

html 5 addEventListener issue with refreshing Canvas element

I am having an issue getting addEventListener to trigger properly with my canvas element. Issue: When I add addEventLister onto my canvas element it automatically forces to animation refresh rate to run at the same time the event listener is being triggered. Basically I have "setInterval(draw, 500);" which updates the canvas every 500 ...

WPF listview drag without deselect

I have a listview object containing files in the program. The default listview behavior allows me to do all the select operations on the list (click+shift to select a block, click+ctrl for individually selecting members of a group of items, and click to select a single item). I want to begin dragging these items with a click and hold o...

transparent parts of sprite responding to mouse events

I'm making a puzzle game in Flash cs5/as3 which can have custom puzzle shapes. Basically, the user can draw basic protrusions of a puzzle. Then I create a black and white puzzle piece with a custom function like this var piece:PuzzlePiece= new PuzzlePiece(true,true,false,false); PuzzlePiece is a class that extends Sprite. The four arg...

How to use the same function for both a Timer event and Mouse event in AS3?

Hi everyone, so today my question is how can we have 1 function triggered by both a Timer event and a Mouse event? 'm trying to avoid having to re-write/re-name a function just because I also have a Mouse event that triggers it and not just a Timer event. Issue: I have a addThis bubble fade in with icons on a button rollover, the addTh...

Simulate a click by using x,y coordinates? - Javascript

Hi folks, is it possible to use coordinates in order to simulate a click? Or is this technically impossible? :O I'm using Javascript within a webpage. Help would be great, and also quite interesting!!! =) ...

Simulate random position mouse events in Cocoa

Hello. I want to build a very rough app which will simulate mouse clicks every 10th of a second at random places on the entire screen. I was thinking of building this in Cocoa/Obj-C. Can anyone point me in a direction of research? Regards. ...