[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2006-11-10
6
Medium Priority
?
199 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…
Suggested Courses

656 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