Solved

If "Mouse Co-Ordinates" = Then "Launch program"

Posted on 2006-11-10
6
192 Views
Last Modified: 2010-05-03
I am looking for a way to launch a program based on mouse co-ordinates, i,e. move the mouse to the far right of the screen and it launchs a program.

I don't even know where to begin with this so any code snippets etc would be appreciated.

Many thanks
0
Comment
Question by:pnorris99
  • 2
6 Comments
 
LVL 1

Author Comment

by:pnorris99
ID: 17913594
Actually I have just thought, the reason i want this is I have 2 PC,s 2 Monitors and 1 keyboard and mouse. I have to double tap Scroll Lock then Up arrow to get the KVM to swap the mouse and keyboard over to the other PC.
Would it be possible to have a program that automates those keystrokes when the mouse is over to the very edge of the screen.
0
 
LVL 3

Accepted Solution

by:
J_K_M_A_N earned 500 total points
ID: 17914408
I don't believe so because I don't think the SendKeys function actually creates pulses for the keyboard itself. It fakes key strokes to the programs. The KVM switch actually "watches" for that key sequence. I may be wrong but I don't think so. The only thing I can think of is maybe getting a keyboard that would let you program a macro key to do the key sequence you need. But you would still need to press at least one key.

Good luck.

J_K_M_A_N
0
 
LVL 1

Author Comment

by:pnorris99
ID: 17915651
ahhh ok I see what you mean, it never crossed my mind, I had just been looking at the sendkeys. Hmmm this could be a pain then, maybe thats why I couldn't find anything similar to what i was after on the net.

I will keep looking.

Cheers for that,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now