Ascii2 Posted November 23, 2008 Posted November 23, 2008 I want to have a program, script, or batch file (hereafter "program") that will run a keyboard shortcut on program run. The program cannot require the .NET framework or Java Virtual Machine. The program must be able to run on Windows 2000, Windows XP, and Windows Server 2003 family operating systems.The shortcut I require the program to run is [shift + F11].I have access to Borland C++ 5.02.I would someone can tell where to acquire the program, make available to me the program, or instruct me on what must be done to create the program.
CoffeeFiend Posted November 23, 2008 Posted November 23, 2008 (edited) I want to have a program, script, or batch file (hereafter "program") that will run a keyboard shortcut on program run.Trivial to do, using any scripting language, including vbscript (or jscript), built right into windows (no runtimes or anything necessary). This should work:Set WshShell = WScript.CreateObject("WScript.Shell")WshShell.Run "your_app.exe"WScript.Sleep 250 'wait for app to appearWshShell.SendKeys "+{F11}"Save as whatever_you_want.vbsHere: full docs on MSDNI have access to Borland C++ 5.02.That was a good and useful tool... a dozen years ago. Edited November 23, 2008 by crahak
HighDarkTemplar Posted November 23, 2008 Posted November 23, 2008 I haven't played around with it much yet, but you could use AutoIt...I've seen lots of examples around (I also have some on my laptop but I'm to lazy to turn it on). Google is your best friend :-)Best Regards-Nerevar
Ascii2 Posted November 23, 2008 Author Posted November 23, 2008 (edited) Thank you crahak. The information you provided was quite useful and I was able to acomplish what I wanted. Edited November 23, 2008 by Ascii2
Ascii2 Posted November 23, 2008 Author Posted November 23, 2008 I haven't played around with it much yet, but you could use AutoItI have seen AuoIt implementations before, but do not believe learning the synatx is worth the time for me at the moment (the solution to the issue of this thread has been found).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now