Macro stops after 60 seconds. I need help.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
cello80
Newbie
Posts: 4
Joined: Wed Jan 16, 2008 9:42 pm

Macro stops after 60 seconds. I need help.

Post by cello80 » Wed Jan 16, 2008 9:47 pm

I record a macro which does following:

I have 2 progs, Prog A and Prog B (Editor).

If I press the Hotkey "F7" my recorded macro goes to Prog A copy a line
change the window to prog B and paste the copied line in it
then it goes back to Prog A goes a line down and copy this line
change to Prog B and past this line in it. An so on....I have totaly around 200'000 lines.

The macro runs, but after 60 seconds it stops for some reason. The macro scheduler hangs up
and I have to restart the macro scheduler and restart the macro.

Do anybody know how it could be the problem?


PS: Sorry for my bad englisch. I'm german speaking.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed Jan 16, 2008 10:02 pm

Please post the code, it's very hard to help without it :(

cello80
Newbie
Posts: 4
Joined: Wed Jan 16, 2008 9:42 pm

Post by cello80 » Thu Jan 17, 2008 12:23 pm

My macro for Hotkey F7:

//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>232,748
Wait>0.01
LClick
Wait>0.01
MouseMove>348,373
Wait>0.01
LClick
Wait>0.01
Press Down
Wait>0.01
LClick
Wait>0.01
Press CTRL
Wait>0.01
Press ALT
Wait>0.01
Send>c
Wait>0.01
Release ALT
Wait>0.01
Release CTRL
Wait>0.01
MouseMove>393,750
Wait>0.01
LClick
WaitWindowOpen>Ausgabe - Editor
MoveWindow>Ausgabe - Editor,137,103
ResizeWindow>Ausgabe - Editor,854,370
Wait>0.01
Press CTRL
Wait>0.01
Send>v
Wait>0.01
Release CTRL
Wait>0.01
Press Backspace
Wait>0.01
Press CTRL
Wait>0.01
Send>s
Wait>0.05
Release CTRL
Wait>0.01
Press F7
Wait>0.5

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 Jan 17, 2008 3:13 pm

I see at the end that you are pressing F7, your Hot Key. Is is possible that you are loading too many copies of the macro into memory? Try changing your Hot Key to something not called in your script.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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

Post by Marcus Tettmar » Thu Jan 17, 2008 3:16 pm

Ouch - that's asking for trouble. Instead, the script should either just loop back to the top, or be scheduled with a repeat interval.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

cello80
Newbie
Posts: 4
Joined: Wed Jan 16, 2008 9:42 pm

Post by cello80 » Thu Jan 17, 2008 3:28 pm

okay, maybe it would be better i loop back to the top.
How can i write in the script to go to the top again?

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

Post by Marcus Tettmar » Thu Jan 17, 2008 3:30 pm

Like this:

Label>top
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
MouseMove>232,748
Wait>0.01
LClick
Wait>0.01
MouseMove>348,373
Wait>0.01
LClick
Wait>0.01
Press Down
Wait>0.01
LClick
Wait>0.01
Press CTRL
Wait>0.01
Press ALT
Wait>0.01
Send>c
Wait>0.01
Release ALT
Wait>0.01
Release CTRL
Wait>0.01
MouseMove>393,750
Wait>0.01
LClick
WaitWindowOpen>Ausgabe - Editor
MoveWindow>Ausgabe - Editor,137,103
ResizeWindow>Ausgabe - Editor,854,370
Wait>0.01
Press CTRL
Wait>0.01
Send>v
Wait>0.01
Release CTRL
Wait>0.01
Press Backspace
Wait>0.01
Press CTRL
Wait>0.01
Send>s
Wait>0.05
Release CTRL
Wait>0.05
Goto>top
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

cello80
Newbie
Posts: 4
Joined: Wed Jan 16, 2008 9:42 pm

Post by cello80 » Thu Jan 17, 2008 3:55 pm

At the moment it runs with your input.
I'll run the macro over the night and let you know if I become troubles.

Thank you very much.

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