Macro Scheduler Not Responding

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
cgg
Newbie
Posts: 6
Joined: Sun Aug 20, 2006 10:38 am

Macro Scheduler Not Responding

Post by cgg » Sun Aug 20, 2006 11:24 am

I'm trialling the software and have hit an issue. I have written a script that will automate a process for some graphics rendering software. When I open a particular window in the software (to open a file) it causes MacroScheduler(MSc) to stop responding. I can't even stop the script within the script editing window. Unless I close the window that the script has opened the software is completely hung.

I have done some testing and it would seem that its not begun any further steps but it is the action of opening the window that causes MSc to stop?

I have created an executable and run it on a different machine to check its not the build and the same problem happens??

Any ideas - is there a mode I can run the software under that will help protect the MSc process from hanging or are there tools that I can use to detect the problem?

Thanks

Chris

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 » Sun Aug 20, 2006 3:35 pm

I have never found Macro Scheduler to stop rresponding. But I have seen it in an endless loop or wait for an event because of errors in the script. Or it may be waiting because some other program is having trouble.

Have you single stepped through the code and determined that your variables are being made correctly? Have you created a log file? Where in the log file does MacroScheduler get hung up?

A copy of the script will be the best thing you can provide so we can help you. Plenty of resources here willing to work with you.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

cgg
Newbie
Posts: 6
Joined: Sun Aug 20, 2006 10:38 am

Post by cgg » Sun Aug 20, 2006 5:02 pm

Found the issue - it only happens when I use pushbutton. I have got around it using key presses - I guess it could be the app that I am trying to automate?

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Sun Aug 20, 2006 7:41 pm

Good that you found how to get around the problem, but I am just curious. What happens after you use PushButton? Are you going to another command, waiting for a window to open, etc....I have found that you MUST write in some wait> times and/or wait for certain events to happen (WaitWindowOPen, WaitReady>, WaitWindowClosed, etc...)

Very rarely has MacroScheduler ever locked up unless I was not allowing it time to process...

Could you post a little of the code before and after the Pushbutton?

cgg
Newbie
Posts: 6
Joined: Sun Aug 20, 2006 10:38 am

Post by cgg » Mon Aug 21, 2006 5:49 pm

I've rewritten the script but all I have done is replace the pushbutton command with some key combinations.

I tried entering a messge statement right after the button command to say "Button is pressed" but it would lock up before getting to it. To be honest I don't think that the app that I am using has been terribly well written.

Regards

C

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