Compiled Script Not working like interactive script

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
SWhitsell
Newbie
Posts: 6
Joined: Wed Nov 19, 2003 3:38 pm

Compiled Script Not working like interactive script

Post by SWhitsell » Wed Nov 19, 2003 3:54 pm

I have a script that works perfectly when running through Macro Scheduler. When I compile the script it does not execute correctly. The first serveral lines are below. The Macro never does the MouseMoveRel command. Any suggestion would be very helpful. :x

// C:\Program Files\MJT Net Ltd\Macro Scheduler\3272 Add Video Drivers.scp
// Recorded on Friday, November 7, 2003, at 02:30 PM
//Recorded Events
//Start the Display Properities window
Run Program>rundll32.exe shell32.dll,Control_RunDLL desk.cpl
WaitWindowOpen>Display Properties
WaitReady>0
SetFocus>Display Properties
//Move to Settings
Wait>1
MouseMoveRel>292,38

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 » Wed Nov 19, 2003 5:45 pm

Testing on WIN98SE, MacroScheduler 7.2.041

I copied your script and ran it manually in native MS mode. Result=OK.

I compiled your script and ran it. Result, a few minor issues:
1. First time it did not run, just hung, had to use CTL-ALT-DEL to stop it.
2. Made a shortcut and ran again, same results.
3. Modified shortcut to use UNC vs. Mapped Drive, ran OK, with no problem. Mouse moved to general area of Settings tab. (Results will vary on machines, not all have same number of tabs, position, etc.

Result: Your script looks OK to me. Runs fine.

Two thoughts:
1. Add * to window names (Display Properties*) .
2. Use arrow movements vs. MouseMoveRel> ? Again, number of right/left arrows may vary on systems. Perhaps, press arrow, and check for window with text like "Screen area". If not found, press arrow again, loop until found?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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