Write macros for other pc's with Macro Sheduler Pro - 2

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Reimon
Pro Scripter
Posts: 55
Joined: Wed Mar 31, 2004 4:46 pm

Write macros for other pc's with Macro Sheduler Pro - 2

Post by Reimon » Fri Apr 02, 2004 10:58 am

Hello!!!

And is it possible install Macro Scheduler Pro to create the macro, compile and uninstall Macro Scheduler Pro for alone to leave the exe file in each Pc ?

Greetings,

Reimon

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Fri Apr 02, 2004 2:13 pm

All compiled Macro Scheduler scripts in the form of .EXE doesn't require the pre-existence of Macro Scheduler. In fact, the compiled EXE can be freely distributed without paying any license fee.

On the other hand, you must take 2 scenarios into consideration:
1. The compiled script can no longer be automatically run at a prescribed schedule.
2. It can't be activated by a hotkey pre-defined in Macro Scheduler.

Either scenario can be easily circumvented by other means.

Happy scripting.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Apr 02, 2004 6:52 pm

Will also have to poll the OS to determine if should use "command" or "cmd" with Run Program commands. Write programs to support both options.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Andy B

EXE files for multiple OS

Post by Andy B » Thu May 13, 2004 5:35 pm

Dear Bob,

I saw your comment about polling the OS and think this is at the root of my situation where an EXE files created in Win XP does not run on Win 98. I do use "Run Program" in the script. Can you post the snippet of code to poll the OS? Thanks,

Andy

Guest

Post by Guest » Thu May 13, 2004 7:15 pm

Hi Andy

Try this out:
//Test for OS version of command to use with RunProgram
MidStr>%OS_VER%,1,2,OS
IF>%OS%=95,WIN9x
IF>%OS%=NT,NT
Message>Unknown Operating System
Goto>End

Label>WIN9x
Let>Cmd=command.com
Goto>CommandLine

Label>NT
Let>Cmd=cmd

Label>CommandLine
RunProgram>%Cmd% /c program.exe switches

Label>End
Remember to remove Trailing Space Characters

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu May 13, 2004 11:03 pm

Previous post was from me, not logged in, sorry about that
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Andy B

Post by Andy B » Mon May 17, 2004 7:05 pm

Thanks Bob, I'll give it a try.

- Andy B

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