about 7 min after run the macro appears an error call
stack overflow
and then creates a bug in the macro folder
if i delete de bug the error appears as usual
this happens cause a problem of the program?
thanks
________
vapor genie vaporizer
stack overflow error
Moderators: Dorian (MJT support), JRL
stack overflow error
Last edited by chelo_100 on Tue Feb 01, 2011 10:34 pm, edited 1 time in total.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
this is the script:
the problem is that the script has to many press commands, i tried to put some gotos and SRTs and ENDs but i have problem with ymax and xmax
the first script is F1
and this is F2:
[/code]
________
YZ125
Code: Select all
Label>FindColor
Let>found=no
Let>XMax=910
Let>YMax=125
Let>X=854
Repeat>X
Let>X=X+1
Let>Y=110
Repeat>Y
Let>Y=Y+1
GetPixelColor>X,Y,c
//Message>c
if>c=255
Let>found=yes
Press np2
wait>3
press F1
endif
if>{(%c%=65535) or (%c%=65280)}
Let>found=yes
Press np3
wait>3
press f2
endif
Until>Y,YMax
Until>X,XMax
If>found=no,FindColor
Label>done
the first script is F1
and this is F2:
Code: Select all
Label>FindColor
Let>found=no
Let>XMax=910
Let>YMax=125
Let>X=854
Repeat>X
Let>X=X+1
Let>Y=110
Repeat>Y
Let>Y=Y+1
GetPixelColor>X,Y,c
//Message>c
if>c=255
Let>found=yes
Press np2
wait>3
press F1
endif
if>{(%c%=65535) or (%c%=65280)}
Let>found=yes
Press np3
wait>3
press f1
endif
Until>Y,YMax
Until>X,XMax
If>found=no,FindColor
Label>done
________
YZ125
Last edited by chelo_100 on Tue Feb 01, 2011 10:34 pm, edited 1 time in total.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
There's no such thing as too many press commands - you can have as many as you like, but perhaps you are overwhelming the target application. How the target application responds to lots of keystrokes is out of our control, but you could try slowing down the send rate.chelo_100 wrote:the problem is that the script has to many press commands
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Last edited by chelo_100 on Tue Feb 01, 2011 10:34 pm, edited 1 time in total.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: