Hello, sorry for the rudeness for asking for help on the first post but I'm still a beginner in programming. I am trying to create a GUI for plotting function using Tkinter and Python. In the top a label will show the current position of the mouse in the canvas and the position of the last click in the canvas. I am learning classes at uni so I need to learn how to use it. Whenever the label changes, instead of it staying in the top, a new window opens up with the details. [CODE]from Tkinter import * def Click(event): …

Member Avatar
Member Avatar
+0 forum 5

This snippet defines a function [icode]mousepos()[/icode] which gets the mouse position on the screen. The package python-xlib is required.

Member Avatar
Member Avatar
+1 forum 7

Dear Team, I am having difficulties in changing the background color of a button when hovering over it . I am using IE11 in w7. I used the following internal style sheet in my application. I am using DOM explorer developer tool to alter the code for testing purpose. <!DOCTYPE html> <html> <head> <style> button:hover{background-color:gray;} </style> </head> <body> <button type="button" onclick="alert('Hello world!')">Click Me!</button> </body> </html> When i use this, it shows as dashed in the developer tools, I mean the internal style sheet codes are showing as dashed. (like the one in eclipse if we use any depreciated methods). Please …

Member Avatar
+0 forum 0

Hi i have a Div and underneath that there is another div. By default the second div is not visible. Now on mouse over of the first div i am displaying the second div and also on mouse out i am hiding the second div. But the problem is on mouse over i display the second div and when i try to move the mouse on to the second div the second div gets disappeared. I am trying to do menu and sub menu. I need the second div to be displayed when i directly drag the mouse from first …

Member Avatar
Member Avatar
+0 forum 3

NOTHING I have hooked up to a USB port works, the computer doesn't recognize anything in a USB port. The devices work when plugged into a different computer, so it's not the peripherals. The optical mouse, for example, has power ( the light comes on), but nothing moves. Any suggestions?

Member Avatar
Member Avatar
-1 forum 23

When the user's mouse pointer touch a button I want a message to appear telling the user what that button's function is. Wich function do I use? Thanks

Member Avatar
Member Avatar
+0 forum 4

When mouse is moved in right direction, move follower in left direction, when mouse is moved in bottom direction, move follower in top direction Simply move `#follower` in opposite direction of mouse move events (move fullscreen div) var mouseX = 0, mouseY = 0; $(document).mousemove(function(e){ mouseX = e.pageX; mouseY = e.pageY; }); // cache the selector var follower = $("#follower"); var xp = 0, yp = 0; var loop = setInterval(function(){ // change 12 to alter damping higher is slower xp += (mouseX - xp) / 12; yp += (mouseY - yp) / 12; follower.css({right:xp, bottom:yp}); }, 30); <div id="wrapper"> …

Member Avatar
+0 forum 0

Why do the nested `li`'s in the Navigation ribbon disappear before I can get my mouse to them in IE. It only doesn't work in IE (9 and 8 are the ones I've tested). Here is the site: http://www.seventhheavenvintage.com

Member Avatar
Member Avatar
-1 forum 4

When mouse is on image display one value from array inside **thought** div's span. Show next value each time. When values ends start with first value [something like this](http://jsfiddle.net/W4fm9/) , but when hover on image var arrValues = [ "one", "two", "three" ]; <img src="images/thinker.png" /> <div class="thought"><span></span></div>

Member Avatar
Member Avatar
+0 forum 5

Good day guys! Right now I am creating an Simple/Basic Inventory System that just needs to record the Computer in an office and its peripherals. I just started studying C# here in my work and also I have a basic/entry level knowledge in VB6. I just wanna know if you could give me tips on how to create my system and right now I only have one table on my database. It is named PCComp for PC Components and the fields are the following: InventoryID, Inventory Type(this is the Monitor, Mouse, Keyboard, etc. and I am using a combo box …

Member Avatar
Member Avatar
+0 forum 5

Irrespective of what application I am in, the "help" windows keep opening automatically. Am not sure what triggers this. It seems to be some hesitation in moving the mouse. Very annoying. Thought it was a windows feature which could be turned off but it does not seem so. Others I have asked have suggested a virus but I have swept my machine twice with the latest definitions. I tried an adware remover but it didn't find anything. Hope someone can help

Member Avatar
Member Avatar
+0 forum 14

Following code of animated menu is working well,little bit, but when mouse pointer is over one list element, items inside all other list elements are animated. I want to animate, items inside hovered list element only. if mouse pointer is over **about us**, animate => div items inside **about us** list. e.g. while code is running `<li><a href="index1.html"><div class="mText">About us</div></a></li>`, this looks like (because of **append** I used), <li class="hoverItem"> <a href="index1.html"> <div class="mText" style="top: 0px;">About us</div> <div class="_area"></div> <div class="_overPl" style="bottom: 100px;"></div> <div class="_overLine" style="opacity: 0;"></div> <div class="mTextOver" style="top: -100px;">About us</div> </a> </li> **My Code** **Script** $( "ul.sf-menu > …

Member Avatar
Member Avatar
+0 forum 3

Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br /> Last name: <input type="text" name="LastName" value="Mouse" /><br /> <input type="submit" value="Submit" /> </form> </body> </html>

Member Avatar
Member Avatar
+0 forum 4

I want to declare an array of type (char / string) confused! dunno which one.. which will store 5 names this code couldnt work char names[5]={monitor,cpu,mouse,joystick,system}; someone guide me please

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, I am designing a simple game with graphics in which I am trying to add a keyListener to my Jframe but the keyListener nor the mouse Listener seem to respond. Here's the code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import javax.imageio.ImageIO; public class PaintDemo extends JFrame implements KeyListener{ String birdpath="C:\\Users\\Public\\Pictures\\Sample Pictures\\flappy.png"; String path1="C:\\Users\\Public\\Pictures\\Sample Pictures\\brick.png"; String path2="C:\\Users\\Public\\Pictures\\Sample Pictures\\brick2.png"; String path3="C:\\Users\\Public\\Pictures\\Sample Pictures\\brick3.png"; ImageIcon back= new ImageIcon("C:\\Users\\Public\\Pictures\\Sample Pictures\\city.jpg"); JLabel background= new JLabel(back); Image bird; Image wall1; Image wall2; Image wall3; int birdy= 350; JFrame f= this; public PaintDemo(){ setLayout(null); setBounds(0,0,1005,730); f.setDefaultCloseOperation(EXIT_ON_CLOSE); setTitle("FLAPPY BIRD"); background.setBounds(0,0,1000,700); setResizable(false); add(background); try{ …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to zoom in on a Picturebox when scrolling the mousewheel, the code below zooms in on the image only to the center of the image, not at the current cursor position. How would I fix this? PictureBox1.Size = New System.Drawing.Size(PictureBox1.Width + e.Delta / 1, PictureBox1.Height + e.Delta / 1) PictureBox1.Location = New Point(Control.MousePosition.X - PictureBox1.Width / 2, Control.MousePosition.Y - PictureBox1.Height / 2)

Member Avatar
Member Avatar
+0 forum 6

Hi guys, so i've had my Logitech G500 gaming mouse for about a year now and have encountered an issue. Earlier this year the right click button messed up so that when i aimed down sights in a came it would constantly go in and out as if i were spamming the button. I have researched this issue and found that it seams to be a fault in the mouse's design. What can i do about this due to the amount of time that i have had this mouse? thanks.

Member Avatar
Member Avatar
+0 forum 1

Hello gayz, i have a written a screen saver App in C# & WPF, everything is done, the only thing is to exit the screen saver when the mouse move event get fired. if i write: private void Window_MouseMove(object sender, MouseEventargs e) { this.Close(); } the screen saver doesn't starts at all. therefor: i need the to get the mouseposition bevor the mousemove event fired, and then check if the mouse was moved more than 20 pixel, than exit the App. how do i get the MousePosition. Thanks for any help.

Member Avatar
Member Avatar
+0 forum 2

Does anyone know of any code that records actions that mouse and keyboard performs on my computer then save the file so I can replay it later I have 340,000 pdf documents to work through The Idea is to ... The recording app will do three things, when I start it up it must load what was recorded under A that is to open the first PDF in a directory copy a line of text thats in the same place every time - paste into the recording app, I plan to make text box that when end edit is fired …

Member Avatar
+0 forum 0

I want to determine if the mouse cursor is above a Windows Form and if so, change its color, but I'm kind of new to this and C# also. I was thinking of something like this: public Form1() { InitializeComponent(); if (Control.MousePosition.Y >= 0 && Control.MousePosition.Y <= 499 && Control.MousePosition.X >= 0 && Control.MousePosition.X <= 297) this.BackColor = Control.DefaultForeColor; } but it does not work. Can anyone give me a hand? Thanks.

Member Avatar
Member Avatar
+0 forum 7

Hello everybody! I’m trying to create a program in which the user has the ability to move the image with mouse click and ability to zoom in and out by scrolling the mouse wheel. If the user wants to return to the original image size and position, it will be possible with a click of a button. I was able to do everything said above for the exception that after the user clicks on the reset button and zooms again, the previous size of the image is shown with the position where it was before the reset button was pressed. …

Member Avatar
Member Avatar
+0 forum 9

Hello I want to buy a mouse n my budget is upto 500 Sugget me

Member Avatar
Member Avatar
+0 forum 7

Hi friends, http://www.chevalblanc.com/randheli/en/56-unique-experiences.html Examples of the other layer to pass on this page How do I particularly like the scrolling with the mouse How can I pass a little bit when you scroll with the mouse, the other layer. Please scroll your mouse on the page to get a better understanding.

Member Avatar
Member Avatar
+0 forum 4

How can I get the Mouse Position from the mousemove event inthe VB.net? I can't find out how to do this.. :rolleyes:

Member Avatar
Member Avatar
+0 forum 18

I am making a game in microoft visual basic. It is virtually finished, but I am having a problem. When you hit the start button a timer is activated making the character in the game equal mouse position. The problem is that the character is not actually going to the mouse position. It appears a distance a way from the mouse usually down and to the right. The distance is not the same every time, so I can't just offset the position of the character. The character still follows the mouse as it is supposed to, but it stays the …

Member Avatar
Member Avatar
+0 forum 6

![d00fc54d0b7ab0ed6b842c7f569d351b](/attachments/small/0/d00fc54d0b7ab0ed6b842c7f569d351b.jpg "align-right") My attention was first drawn to the VerticalMouse when I received a press release from Dutch computing ergonomic specialists [BakkerElkhuizen](http://www.bakkerelkhuizen.com/). Founded in 1994 by 'movement scientists' and ergonomists, BakkerElkhuizen is committed to linking the human being and their computers in a more natural way. The latest development from the company is a complete work set for the kind of flexible workstations that laptop driven working models demand. Consisting of a laptop holder, a compact keyboard, document holder and a vertical mouse. Regular readers of DaniWeb will know that my vision is impaired due to a medical condition, which …

Member Avatar
Member Avatar
+3 forum 8

hi i want the code for to get the position of the mouse where the clicking operation is performed outside the form. thx in advance

Member Avatar
Member Avatar
+0 forum 1

My problem is that I wish to use a single mouse click (or key press) to "turn on" a set of conditions then I will "turn off" the conditions when a different requirement is met. Alas! Every time I release the mouse button the bool reverts to its initialized state. I do not want it to do that and I do not want to set it to "toggle" on and off with each mouse click either. Here are some examples of what has failed: // first, simple failure bool start = false; if (dbMouseClick()) start = true; // another unsuccessful …

Member Avatar
Member Avatar
+0 forum 1

is it possible to show alert box when mouse is on start button or on task bar or on menu bar means other place except website if any one have any idea about this plz reply me my client want this functionality in exam website

Member Avatar
Member Avatar
+0 forum 4

Very recently, I let my laptop (HP) battery get too low, and it died on me. Usually, upon plugging in the adaptor, everything starts right back up again. However, this time, the laptop runs, but all I can see is a black screen. I can even hear the little chime when windows starts (vista), but all I can see is black. I don't think it's a backlight issue, as I the black screen still emits a sort of "glow". I know I need a new battery, but as long as it's plugged into the power supply, shouldn't it work fine? …

Member Avatar
Member Avatar
+0 forum 5

The End.