Forum Moderators: open

Message Too Old, No Replies

Creating Icon for Keyboard Strokes

Help me to create a shortcut that executes a series of strokes..

         

Eric_Lander

5:04 pm on Sep 20, 2006 (gmt 0)

10+ Year Member



In my home office I have two PC's connected to a KVM switch so I can use the same monitor, speakers, mouse, etc.

Every time I want to switch from one machine to the other, I need to hit Scroll Lock twice followed by the down arrow.

Is there any way to create a desktop icon that when clicked would execute the same series of strokes and trigger the KVM?

I've never tried to create a unique icon with this type of action applied to it, so I'm unsure of what to try.

Thanks!

bill

1:56 am on Sep 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't have time to write and test anything for you this morning, but take a look at the SendKeys Statement [msdn.microsoft.com]. You'll want to create a batch file that mimics sending the keystrokes you want. Then you could just make a shortcut icon to the batch file on your desktop.

-- search MSDN for SendKeys [search.msdn.microsoft.com]