Questions tagged [mouseclick-event]

An event that is triggered when a Mouse input device is clicked

A MouseClickEvent is an event that is triggered when a button on a Mouse input device is clicked. The event contains information such as the particular button that was clicked, the length of time that the button was pressed, and how many times the button was clicked (single-click, double-click, etc)

632 questions
14
votes
1 answer

Control the mouse click event with a subplot rather than a figure in matplotlib

I have a figure with 5 subplots. I am using a mouse click event to create a shaded area in the 4th and 5th subplot only (see attached pic below). The mouse click event is triggered when I click on any of the subplots in the figure. However, I would…
Maroof G
  • 515
  • 1
  • 6
  • 15
14
votes
1 answer

Google Maps API v3 : Click events not triggered in firefox for custom marker

have created a map that I'm trying to have function similar to 'My Maps'. I have two dropdownlists on the right side, based on the selection in those ddl's, you can add a custom marker / icon. You select a marker type, then click the '+' button in…
10
votes
2 answers

Click function firing on pageload?

Trying to figure out how this is possible... $(function() { $('#saveBtn').click(save()); }); function save(){ alert('uh'); } .
Damon
  • 10,493
  • 16
  • 86
  • 144
10
votes
3 answers

Pyautogui mouse clicks without actually moving the mouse

I'd like to know if it's possible to automate clicks with pyautogui without compromising the funcionality of my cursor. I automate clicks with pyautogui but my cursor becomes useless while the script is running as the cursor moves around the screen.…
Gabriel Cesar
  • 327
  • 2
  • 4
  • 10
10
votes
2 answers

onclick not firing if element is reinserted into DOM mid-click

I made a simple popup manager, which used the dom to decide which popup should be in front, without any z-index rule : when I click on a popup, it's moved in first position, so it is on top of the other popup. Unfortunately : this dom movement…
10
votes
2 answers

Which tab was clicked on tabcontrol MouseClick event

I am learning how to develop Windows Forms applications with Visual Basic Express 2008, and my testing/learning application has a TabControl with a few test pages (3, for example, the number isn't relevant here). Now, I am handing the MouseClick…
Jimmie Lin
  • 2,205
  • 2
  • 23
  • 35
10
votes
6 answers

Click event in Google Map InfoWindow not caught

With Google Map v2, I would like to be able to trigger a function when clicking a text in the InfoWindow of a GMarker. $(".foo").click(myFunction); ... marker.openInfoWindowHtml("myText"); does not work. Why the event…
user244129
  • 642
  • 1
  • 8
  • 15
9
votes
3 answers

C# MouseClick Event Doesn't Fire On Middle Click or Right Click

This seems like it it should work but its not. I put a debug stop on the SWITCH statement. This event is only getting triggered on left click. Nothing happens and method is not fired on middle or right click. Any ideas? P.S. I already tried using…
Kairan
  • 5,342
  • 27
  • 65
  • 104
8
votes
1 answer

Simulate a REAL HUMAN mouse click in pure javascript?

I'm currently working on a chrome extension and the extension has to automate some process but in the page when I click the element some action performed but when I click the element programmatically with JavaScript nothing happens. Does anyone know…
8
votes
2 answers

How to determine user has clicked DataGridView but not a Cell

I want to prompt the user to enter new elements into a databound collection when they click in the empty area of a DataGridView. How can I find out if the user has clicked inside of the DataGridView (the grey area by default), but not in a…
Joel B
  • 12,082
  • 10
  • 61
  • 69
7
votes
2 answers

NSView receiving click events thru a NSTextView

I have a NSTextView, non-editable, non-selectable, in a NSView. I need the NSView to receive click events when the text view is clicked - basically I need the click events to act as though the text view doesn't even exist. Obviously I would just use…
Chris
  • 1,037
  • 15
  • 26
7
votes
2 answers

How to enable right click in p5.js?

I'm making a minesweeper clone, left click reveals the cell and right click is supposed to flag the cell. I'm using the function mouseClicked() - this allows me to reveal on left click and also reveal on right click. I tried using if(mouseIsPressed)…
ObamoDank
  • 141
  • 1
  • 2
  • 5
7
votes
2 answers

Intercept single or double mouse click - only execute double click code on double click

I have a situation where I am handling both single & double mouse click events on a form. In both cases something has to be loaded, however when a double click occurs, I do not wish to execute the code attached to the single click event. Is there a…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
7
votes
2 answers

Display a component after a click($event) Angular 4

I'm trying to create an event on a click button who fired another component, if you click again it reduce the component (a part of the displayed component is always visible).. I know this could be done with [ngClass]='hidden' and everything in the…
Emile Cantero
  • 1,943
  • 3
  • 22
  • 47
7
votes
4 answers

How to detect if mouse was clicked?

I'm trying to build a short script in Python, where if the mouse is clicked, the mouse will reset to some arbitrary position (right now the middle of the screen). I'd like this to run in the background, so it could work with other applications (most…
TheDetective
  • 642
  • 1
  • 6
  • 17
1
2
3
42 43