send pause keypress to pc

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Djek
Pro Scripter
Posts: 147
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

send pause keypress to pc

Post by Djek » Wed Nov 30, 2005 8:04 pm

hi all,
is it possible to simulate a keypress on the "pause" key on the keyboard?
I need it to control an other program.
thx for your help,
Djek

User avatar
Monkster
Junior Coder
Posts: 42
Joined: Fri Oct 04, 2002 9:37 pm
Location: On an Island with Wilson

Post by Monkster » Thu Dec 01, 2005 8:22 am

I think you can use the SendKeys method of the WshShell object {BREAK}.

http://msdn.microsoft.com/library/defau ... ndkeys.asp
Best Wishes,
Monkster

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts