Looping problem

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Beatem445
Newbie
Posts: 4
Joined: Sun Apr 20, 2008 5:09 pm

Looping problem

Post by Beatem445 » Sun Apr 20, 2008 5:14 pm

I put this in but it doesn't loop for some weird reason please help!!??
Let>x=0
Repeat>x
Let>x=x+1
Until>x=500

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 Apr 20, 2008 5:54 pm

What do you mean it does not work.

It seems to work fine on my system.
I looked at "x" while single stepping through in debug mode.

Insert some message lines to show the value of "x".

Let>x=0
Repeat>x
Let>x=x+1
Message>The value of "x" is %x%
Wait>.1
Until>x=500
MessageModal>Process is done!
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Beatem445
Newbie
Posts: 4
Joined: Sun Apr 20, 2008 5:09 pm

Post by Beatem445 » Sun Apr 20, 2008 5:59 pm

In debug it works so i'll try the script again =/

Beatem445
Newbie
Posts: 4
Joined: Sun Apr 20, 2008 5:09 pm

Post by Beatem445 » Sun Apr 20, 2008 6:01 pm

by the way is there anyway I can do a ghost mouse sort of thing so i dont have to be on that sceen thats doing the macro??

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 » Mon Apr 21, 2008 1:37 am

Many macros can work in the background. It depends on what they are doing. If copying/renaming/moving files, doing parsing of text, moving data between applications with DDE, etc can usually run in the background.

But any macro that requires Mouse Clicks, Keyboard entries, resizing of windows, etc. usually need focus on the window they are processing, so they will require a hands off approach.

Your macros can be started from the Main Macro Scheduler Control Panel, they can be scheduled using Macro Scheduler or other scheduling programs, they can be called from other programs, they can be started with user defined Hot Keys.

These are just a few ideas and guidelines to give you some ideas.
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