473,382 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

time a mouse button is held down

hi, i kno you can use hooks to tell when a mouse button is pressed
globally...bt how can you tell how long its been held down for? for example,
how would i see iof the mouse button was held down for 5 seconds?
--
-iwdu15
Aug 27 '06 #1
1 1658
iwdu,

Catch the mouse down, set the time (globaly)
Catch the mouse up subtract the current time from that time you have set.

I don't know another method.

Cor

"iwdu15" <jmmgoalsteratyahoodotcomschreef in bericht
news:D3**********************************@microsof t.com...
hi, i kno you can use hooks to tell when a mouse button is pressed
globally...bt how can you tell how long its been held down for? for
example,
how would i see iof the mouse button was held down for 5 seconds?
--
-iwdu15

Aug 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Weston C | last post by:
I'm working on a small javascript application where I'd like to get one behavior when a user clicks on an image (image swap), but when they simply hold down the mouse button for a second, they get...
0
by: Plumer | last post by:
Hello everyone, I am using MS .NET Framework 1.0 Version 1.0.3705 developing a C# client application using SQL Server on the server side. I am looking to implement drag & drop in a TreeView...
5
by: gsb | last post by:
I track the mouse location like this code: function mousePos(e) { var p = new Object(); if(e) { p.x = e.pageX; p.y = e.pageY; } else { p.x = event.x; p.y = event.y; } ... (show) }...
1
by: Tom | last post by:
Is there any C++ .NET best practice for handling the case where a mouse is held on a control and the right-button is held down - signifying a rapidly repeating action equivalent to clicking the...
1
by: Peter Stojkovic | last post by:
I want inherit a new Groupbox , that is resizeable by the user with the mouse at runtime What I have to do ?? Peter
3
by: Jason | last post by:
I'm trying to implement some pretty basic behavior in c#/.net 1.1 Forms but can't seem to find all the requisite pieces. When a user clicks on the background of the form, I want the app to start...
1
by: jamie | last post by:
hi. I feel kinda stupid for asking this q, but here it goes: When I mouse click a control, I want it to do a loop until the mouse button is no longer held down. If I use mybase.button then my...
7
by: Barkingmadscot | last post by:
I am try to find out how to check if the mouse button is held down. The e.click =2 works, it allows me to enter the double click double. I what the single click to do some different and then...
4
by: yawnmoth | last post by:
I'm trying to write a script whereby the body background is changed to back (from white) when the mouse button is held down and kept held down. When you lift it up, I'd like it to change back to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.