Solved

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

Posted on 2006-11-10
6
193 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

786 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