Solved

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

Posted on 2006-11-10
6
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

726 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