Execute shortcut

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Snickers
Macro Veteran
Posts: 150
Joined: Thu Dec 09, 2004 3:01 pm
Location: Somewhere in TX

Execute shortcut

Post by Snickers » Fri Nov 09, 2007 1:27 pm

I am writing a program that will start my son's different video games, log the time and auto quit each game when his time limit is reached.

Some of the games require the game to be started with a shortcut because the shortcut is formatted. For example, he plays Battlefield 2142 in widescreen; the only way to play in a semi widescreen is to format the shortcut as follows:
"C:\Program Files\Electronic Arts\Battlefield 2142\BF2142.exe" +widescreen 1 +szx 1440 +szy 900

How can I use MacroScheduler to executefile>the bf2142 shortcut?

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Nov 09, 2007 1:30 pm

You should just be able to do:

Run>"C:\Program Files\Electronic Arts\Battlefield 2142\BF2142.exe" +widescreen 1 +szx 1440 +szy 900

But you can also execute the shortcut directly:

ExecuteFile>C:\....\shortcut.lnk

The shortcut is a .lnk file. If it is on the desktop then the path is probably something like:

c:\documents and settings\USERNAME\desktop\shortcut.lnk
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Snickers
Macro Veteran
Posts: 150
Joined: Thu Dec 09, 2004 3:01 pm
Location: Somewhere in TX

Post by Snickers » Fri Nov 09, 2007 2:31 pm

Thank you, much. That worked out just fine.

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