473,385 Members | 1,983 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,385 software developers and data experts.

Is there a command for left mouse button

Hi
Could anyone tell me if there is a command which will recongnise a simple
mouse click anywhere on the screen, I can do it ok for a command box etc etc
but would like to be able to simply click a mouse button from anywhere on
the screen.
Thanking You In Advanced
Pete
Jul 17 '05 #1
2 3805
The form has a click event.
or maybe Screen.activecontrol might be helpful.

Smokey
On Mon, 04 Oct 2004 09:03:42 GMT, "Pete Mann"
<pe******@blueyonder.co.uk> wrote:
Hi
Could anyone tell me if there is a command which will recongnise a simple
mouse click anywhere on the screen, I can do it ok for a command box etc etc
but would like to be able to simply click a mouse button from anywhere on
the screen.
Thanking You In Advanced
Pete


Jul 17 '05 #2
If you call the SetCapture API prior to your mouse leaving the form, any
subsequent mouse input will be directed to the form, not to the application
you click. By testing the screen coordinates of the rodent in relation to
the form you can determine if the click occurred outside the form's client
area. Be sure to call ReleaseCapture when you're done to restore normal
mouse action.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Pete Mann" <pe******@blueyonder.co.uk> wrote in message
news:Ol********************@fe2.news.blueyonder.co .uk...
: Hi
: Could anyone tell me if there is a command which will recongnise a simple
: mouse click anywhere on the screen, I can do it ok for a command box etc
etc
: but would like to be able to simply click a mouse button from anywhere on
: the screen.
: Thanking You In Advanced
: Pete
:
:

Jul 17 '05 #3

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

Similar topics

4
by: Lakshmi Narayanan | last post by:
hi all, i have this problem.i want the user of my page to only click the link with the right mouse button and open a word document using the open in new window option.if he clicks on the left...
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) }...
3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
12
by: mdb | last post by:
My app has a notify icon in the systray. I want the left mouse click to initiate a menu, and a right-mouse click to do something else. Normally, for a button, I would listen to MouseDown and if I...
0
by: AK | last post by:
Hello, Listbox mulitselect property is set to true (extended). I am trying to implement drag and drop feature for a listbox. The drag & drop is done in the mouse move event (DoDragdrop...
0
by: Chas Large | last post by:
Hi All, I have written a small program which has command buttons to operate a device by remote via RS232. It sends a series of commands when a command button is clicked and held down and stops...
6
by: marss | last post by:
Hi, How can I define in Firefox whether the left mouse button is pressed when I move mouse over a html element? The documentation says that "e.button == 0 for standard 'click', usually left...
18
by: Shocky | last post by:
Hi there, I am trying to detect whether my IE6 users have pressed both right and left mouse buttons simultaneously in my Javascript code, by using: if(event.button==3) {alert("Both right and...
3
by: nagmvs | last post by:
Hai guys, I want the the code to disable Left Mouse button with out Alert message. Below code i am having <!-- This code is for disableing left click--> <script language="javascript">...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.