Jump to content

Recommended Posts

Posted

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.


Posted (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 appear
WshShell.SendKeys "+{F11}"

Save as whatever_you_want.vbs

Here: full docs on MSDN

I have access to Borland C++ 5.02.

That was a good and useful tool... a dozen years ago.

Edited by crahak
Posted (edited)

Thank you crahak. The information you provided was quite useful and I was able to acomplish what I wanted.

Edited by Ascii2
Posted
I haven't played around with it much yet, but you could use AutoIt
I 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).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...