mouse

capture Second mouse movment

I have 2 mice. My goal is to use one for pointing and the other for something else (launching applications or etc). I want to capture my second mouse events not my first mouse. So afar i can capture both mice events but not them separately. ...

How to repeat a mouse click in .NET

My app runs as a plugin inside another windowed app. Thus, my window often doesn't have the focus. Now, if someone moves the mouse over a button/menu and clicks once, all it does is set focus to my window. Then (s)he needs to click again to get the actual button functionality. This is a minor annoyance but I'd like to get rid of it. Fir...

Where do I start making a linux input hack?

When you hold "shift" and scroll with your mouse on a mac, it interprets your vertical scroll motion into horizontal scroll actions. This is my most missed feature when working on linux, and I would love to bring it to linux (since I have looked thoroughly and nobody else seems to have done so yet). I hope this can be done with some sor...

How can I change the mouse cursor image?

Hi, I need to change the cursor image. Whenever the mouse is over my form I need to load my own image from a local path. I am using version 1.1 of the .NET framwork. Here is what I have tried: Cursor = new Cursor(GetType(), Application.StartupPath+ "\\windowfi.cur"); But this throws an exception: Value cannot be null. Paramet...

Simulating a click for NSCollectionView

In an attempt to create drag and drop between two NSCollectionViews in the same app i've made the view that holds the collection views responsible for all the mouse clicks. It then checks what the mouse actually hits, etc. One problem I'm having though, is trying to get the NSCollectionView to handle single clicks properly (i.e. if the s...

Block/Nullify mouse movement/click in C#

Hi, I'm writing an application to fully control the mouse click/movement. What I mean is that say for instance, if I have the application running, form fully transparent, fullscreen, then if I click the mouse button, in normal case, it will bring the application in background in focus - I need to stop this from happening (i.e. clicking ...

Controlling mouse with Python

How to control mouse in Python, i.e. move it to certain position and click. Thank you, Sasha ...

How do I detect if both left and right buttons are pushed?

I would like have three mouse actions over a control: left, right and BOTH. I've got the left and right and am currently using the middle button for the third, but am curious how I could use the left and right buttons being pressed together, for those situations where the user has a mouse without a middle button. This would be handle...

WPF Mouse busy icon

What's the best method in WPF for showing an Eggtimer/Busy mouse icon when opening a new window or retrieving records from a DB? ...

Why don't Firefox and other apps honor my Windows XP settings?

Recently for convenience I set up Windows XP to "Automatically move pointer to the default button in a dialog box" (via Control Panel => Mouse => Pointer Options). For most dialog boxes (e.g. Windows file delete confirmation, Outlook empty deleted items) Windows will follow this directive and automatically position my cursor above the d...

Pass mouse events to applications behind from a Java UI

Hi, The question I have is exactly same in requirement as http://stackoverflow.com/questions/173579/how-to-pass-mouse-events-to-applications-behind-mine-in-c-vista , but I need the same for a Transparent Java UI. I can easily create a transparent Java UI using 6.0 but couldn't get any info about passing events through the app to any appl...

RichTextBox SelectionChanged called before MouseDown?

I'm working with a RichTextBox, and would like to do one thing in the SelectionChanged event if the mouse is down, and another if it's not (e.g. if the keyboard is used to select something). However, the SelectionChanged event is apparently called before MouseDown, so it seems there's no way for me to know if the mouse is down while pro...

jQuery Set Mouse Position (not cursor position)

I have a link that, when clicked, I would like it to move the position of the mouse to the right (or anywhere within the viewport, for that matter). in code it would probably look similar to the following: $('a#expand').click(function(e){ $(document) .mouseXPos(e.pageX + 50) .mouseYPos(e.pageY + 50); }); Chaining mi...

How can I script resetting the mouse pointer after an application fails to reset it?

A friend of mine has to use an internally-written Windows application to perform part of their job. Something he has noticed is that the app does the bit where it changes the mouse pointer to an hourglass when it's working, sets it back to normal when it's done, etc. However there appears to be a bug where in some circumstances the mo...

Is there a standard way to handle many different options for mouse events in java?

Hi all. I'm developing a grid based sim game in java, and I was wondering if there is a standard way of doing the following. I have a panel which is the game panel, and there are many different things which could happen when the panel is clicked. For example, when building a room, there are several stages, where dragging the mouse and l...

Flex and mouse wheels

Here is the application I need help with: http://www.nypinball.com/inventory.php The entire box at the top is a Flex application. The box on the left with the list of pinball machines is a VBox. As you can see, if you try to scroll with your mousewheel, it doesnt respond. The reason this is shut off is because I found that if it's...

Programably click and move mouse with VB .Net

Hello, I want to build a program in VB .net that will allow me to control my pc with my laptop. The only question I really have is, how can I programably click without using some kind of click event, say if I want to click the start orb and my mouse is at that exact location, I'd like a sub or something that will click on it. Right now ...

Getting mouse position unbounded by screen size, c++ & windows

I'm currently writing a c++ console application that grabs the mouse position at regular intervals and sends it to another visual application where it is used to drive some 3d graphics in real time. The visual app is closed source and cannot be altered outside it's limited plug-in functionality. Currently I'm using the GetCursorPos()...

Horizontal Scroll Event in FireFox 3.5 Not Firing.

Hi, I've attached a function to the DOMMouseScroll event in FF3.5. The event fires as expected on a vertical scroll, but not on a horizontal scroll. Is this a known bug or a problem with my code? document.addEventListener('DOMMouseScroll', function() { console.log(arguments); }, false); Rich ...

forward mouse position to hidden ole container

Hi, I want to use a Flash ActiveX object in a hidden ole container window to render graphics and send the frame data to a Java App where it is displayed. So far so good. Now I want the Flash object to react on mouse events that are happening on the Java window which is displaying the frame data. I imagined to simply forward the relati...