mouse

mouse_event WinAPI call not working when cursor is over Flash

Hi, I am writing a small program which can simulate mouse clicks at specified positions. Using the Win32 API call mouse_event like so: [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData, UIntPtr dwExtraInfo); ...

How to open multiple images and be able to drag them in Cocoa

Hello, I'm trying to make a board like that you can import as many pictures as you like to that board. How can I do that? handle multiple images? The other question is how to recognize a drag movement and move the image to the Cursor position? Thanks!! (Mac SDK) ...

jquery mouseout problem

hello my html <div id="parent"> <div id="child">cx</div> </div> when i use jquery $('#parent').mouseout(function(){ //something here }); i wonder why when my mouse enter the child div the function fires. i'm still inside parent div. i want that mouseout function to fire only when i leave the parent div not when i'm on any child ...

How can I check if the mouse button is released, and THEN execute a procedure once in Borland Pascal 7.0?

Hi! I use Borland Pascal 7.0, and I would like to make a slots game (If 3 random numbers are the same, you win). The problem is that when I click on the start (Inditas) button on the menu, the procedure executes many times until I release the mouse button. I was told that I should check if the mouse button is released before executing th...

Way for Excel VBA to use shadowed chart event handler

I have a embedded chart and I want to modify the behavior on the mouseDown event but only when it occurs on a dataSeries (xlSeries). But for all other elements (axis, plot area, gridline, etc), I want it to fall back on the default mouseDown behavior. Is this possible? Thanks. ...

Getting the right result of mouse click event

Hello, I'm curious why I got the "right" BUT "wrong"number of result when I click the mouse. I supposed to print on the console mouseClicked once everytimes the mouse is clicked. However I got many of them printed out everytimes I clicked the mouse ...sometimes 5 e.g. mouseClicked mouseClicked mouseClicked mouseClicked mouseClicked I...

Change global mouse cursor in .NET

I need ability to modify the cursor while my application is running, and restore it afterwards. Cursor.Current doesn't seem to work. Any other alternatives? Is there any API for this? Thanks ...

vim, any way to copy'n paste, using the mouse, without using shift

I'm used to most X11 apps that copy'n paste with a simple middle mouse key. In vim I must remember to hold the shift key. Is there any way in vim to copy'n paste using the mouse without the shift key? ...

Javascript mouse event not captured properly when mouse moved very fast

I am using JavaScript mouseover and mouseout events when I move my mouse very quickly the events are not triggered. Can you tell me what the problem is? Please let me know how to solve this. Also let me know if anything else is needed. Here is the code HTML 4 => qq[ <ul id="primary"> <li id="firstTab" onmouseover="change...

Synthetic click doesn't switch application's menu bar (Mac OS X)

Hi. I'm developing some sort of air mouse application for iPhone platform. This applications connects to one computer service which generates mouse events on Mac OS X. I'm generating this events with CGEventCreateMouseEvent() and CGEventPost(). But I've encountered one problem. Let's say you are using Safari and then you click on free de...

Mouse Capture and Selection

I have a control, that moves around alot of different controls inside of it in the form of a grid. So basically, none of the container control is shown at any point. But i do have capture of all the mousedown and mousemove events of the controls inside. What id like to do, is create an effect alot like the desktop of a windows computer, ...

How to stretch table cell by dragging like webkit does for textarea?

Webkit adds to the bottom, right corner of any textarea, an icon that you can drag to resize the textarea. I need to create the same affect on a table cell to allow my user to adjust the size of a given cell via drag. I could code this up, but I doubt if it hasn't already been done. ...

Multiple mouse cursors on Windows 7

We are using CPNMouse for an application running on Windows XP. One mouse device is detached from the normal event queue, so we can get it's position and events and draw the cursor ourselves. Unfortunately, CPNMouse does not work on Windows Vista/7 (see here). Is there any library/SDK that provides the same capabilities on Windows 7? J...

Java Disabled JLabel Reports Mouse Clicked

colLabels[i].addMouseListener(new MyAdapter()); private class MyAdapter extends MouseAdapter { @Override public void mouseClicked(MouseEvent event) { ColJLabel colJLabel = (ColJLabel)event.getComponent(); System.out.println(colJLabel.ColID); setColumnHeader(false); } } colLabels[i].setEnabled(flag); The si...

While Mouse press event. Prototype JS or Javascript

Hi, I would like to know if someone knows how to make a function repeat over and over while the mouse is press, I don't know how to make it work. I know in prototype you can take events like $('id').observe("click",function(event){}) $('id').observe("leave",function(event){}) $('id').observe("change",function(event){}) //etc... but ...

Qt grabWindow coordinates shifted from GetCursorPos and GetWindowRect

In Qt, when I use the QPixmap::grabWindow(hwnd,x,y,h,w) function, the coordinates are shifted slightly, when compared to the coordinates using the windows api functions GetCursorPos and GetWindowRect. i.e. (0,0) from the point of view of GetCursorPos and GetWindowRect is at the very top left of the toolbar at the top of the window. But...

Disabling mouse movement and clicks altogether in c#

At work, i'm a trainer. I'm setting up lessons to teach people how to "do stuff" without a mouse... Ever seen people click "login" textbox, type, take the mouse, click "password", type their password, then take the mouse again to click the "connect" button beneath ? So i'll teach them how to do all that without a mouse (among many other...

C# - Moving a control to the mouse's position

Hello everybody. I am trying to get a control to follow the cursor when the user clicks and drag the control. The problem is that 1.) the control doesn't go to the mouse's position, and 2.) the control flickers and flies all over the place. I've tried a few different methods of doing this, but all so far have failed. I've tried: protec...

Clip mouse movement in Carbon

How can I clip the mouse movement into a window Region using Carbon? ...

Kink detection in drawn polylines

Users can sketch in my app using a very simple tool (move mouse while holding LMB). This results in a series of mousemove events and I record the cursor location at each event. The resulting polyline curve tends to be rather dense, with recorded points almost every other pixel. I'd like to smooth this pixelated polyline, but I don't want...