Solved

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

Posted on 2006-11-10
6
191 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
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…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

18 Experts available now in Live!

Get 1:1 Help Now