Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to generate mouse clicks to the Operating System?
Date: Thu, 13 Sep 2007 02:39:04 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 25
Message-ID: <fca7s8$nrb$1@canopus.cc.umanitoba.ca>
References: <fca6rr$mld$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1189651144 24427 192.70.172.160 (13 Sep 2007 02:39:04 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 13 Sep 2007 02:39:04 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:428250



In article <fca6rr$mld$1@fred.mathworks.com>,
Shane Brennan <LoopUniverse+SPAM@gmail.com> wrote:
>I am writing a program which tracks a laser light that is
>shined onto a wall. The code is able to track the laser
>fine, and I am able to recognize when the user "clicks" (by
>turning the laser off and on real quick). However, I do not
>know how to transmit this click information to the Operating
>System.

>What I am wondering is, is there a MATLAB function or some
>other method I can use to generate a mouse click?

There is no Matlab function for it. There might be an
ActiveX control (maybe), or dll function you could use.
If you are using Windows, this page might be useful:

http://msdn2.microsoft.com/en-us/library/ms171548.aspx

I found a different page that indicated that simulating a
right click might be relatively difficult:

http://www.daniweb.com/forums/thread10948.html

-- 
   Okay, buzzwords only. Two syllables, tops.  -- Laurie Anderson