78 questions
0 votes
1 answer
82 views
Start CSS transformation at mouse position
I simply want the transformation to start at the clicked mouse position. It does not work (as I expected). Why not and what should I change? var x, y; const hint = document.getElementById('hint'); ...
1 vote
1 answer
54 views
ImageMapster Mouseclick Event
I'm slowly getting into adapting Imagemapster to work the way I want it to. I'm looking for a way of clicking an area and opening another page with details of that area. Is there a way of doing this?...
0 votes
1 answer
65 views
JavaFX: Why doesn't my MinMax algorithm make a move when it starts a TicTacToe game?
I have a working MinMax algorithm, tested in other situations, the JavaFX implementation doesn't work when the computer (MinMax) has to make the first move, I have to click first. There is a bug in ...
1 vote
1 answer
239 views
Tracking button press and release while in the trigger
I track a button click that other objects fly through with OnPointerDown, OnPointerUp, OnTriggerStay, and OnTriggerExit. The idea is to destroy the object when passing through the button. Below is the ...
-1 votes
1 answer
55 views
RectangleShape Usercontrol Pass Shape_Click Event to Usercontrol_Click in VB.Net
In VB.Net I am putting a RectangleShape on a user control. When I click on the shape as a usercontrol I want the usercontrol Click Event to Activate. I have tried various things but to no avail. It ...
0 votes
1 answer
57 views
Return the X and Y values from the on_mouse function
I am trying to find a value using the location of the mouse cursors click, using pixel coordinates. The problem is that I have a function, def on_mouse(event, x, y). There are other things here inside ...
0 votes
0 answers
36 views
Tooltip on mouse click. Code snippet works but when embedded on a website, it does not work. Not sure why
I have a full-screen click area. A tooltip appears near the mouse pointer on mouse click and disappears on mouse move. The code snippet seems to work fine. But when I embed the code on my website, it ...
1 vote
1 answer
722 views
How to get coordinates of upper left corner of a div
I am trying to get coordinates of upper left corner of a dragable div inside parent div. I can get coordinates of mouse in parent div and this is done by a onmousemove tag. I wounder that is there any ...
1 vote
0 answers
861 views
mouseMove only triggers after mouseClick
I'm writing a simple cursor record webpage with Reactjs, the problem is the records array only updates whenever I click the button while my intention for it is to continuously update on mouse move. ...
0 votes
0 answers
80 views
How can i make something when mouse click hold down with Python [duplicate]
I want to make simply count the numbers automatically when mouse left click holding. I can make it on keyboard but cant on mouse. import keyboard a = 0 while True: try: if keyboard....
1 vote
0 answers
220 views
How can change UI text by mouse-click on an object in Unity3D?
I have an object in Unity (cube) which its material changes with mouse click. I want to show information about each material in a UI text. So, the information needs to be changed. I have written the ...
0 votes
2 answers
721 views
Javascript / HTML adding an image to center position on the mouse click
I want to print out a picture whenever the mouse is clicked on the screen. This is my current Javascript and HTML code. It only prints the h1, I don't know what I am doing wrong. var image = ...
-1 votes
1 answer
58 views
Why onclick function isn't working in Javascript snippet below? [closed]
function toggleHide(){ let btn = document.getElementById(`btn`); let para = document.getElementById(`para`); if(para.style.display != 'none'){ para.style.diplay = 'none'; } else{ para....
0 votes
1 answer
7k views
onmouseclick function javascript/html
I'm trying to implement an event handler for a button to change an element's content and I have this just as a sort of test to make sure things work, and they do. However, I'd assume that once I ...
-1 votes
3 answers
4k views
Python check if Left Mouse Button is being held?
I'm pretty new to Python and I'd like to make a kind of an Autoclicker, which keeps clicking every 0.1 seconds when my left mouse button is held down. My Problem is, that when I run my script, my ...