BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Scripts
 Possible to Pause Script?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
jjohnbubbles Posted - 25 Jan 2014 : 21:49:38
I have a site I am trying to write a script for. The problem is, when I run a script with more than 10 or so movies, the website locks me out for about half an hour for excessive use.

When I manually click around the site as fast as I can I never get locked out. I'm assuming based on the speed XMM is operating, it knows a bot is mining data and is stopping me.

Is it possible to insert pauses into XMM to slow it down a bit so this site doesn't lock me out?

Thanks!
3   L A T E S T    R E P L I E S    (Newest First)
JDommi Posted - 26 Jan 2014 : 10:09:46
#REPEAT# - #WHILE# is the smarter solution as you don't need any #GOTO#-label. But the #PUTCURSOR# could theoretically produce an error in a worst case scenario.
One thing that could make problems, too: every loop takes a different time on each machine depending on the processor and OS. Therefor this loop should have an optional value ranging from 5000 to 15000.

#LOADOPTIONS#
    #SETOPTION#=#97#1[Delay time]0=slow processor|1=normal processor|2=fast processor
#ENDLOADOPTIONS#

//... somewhere in the last executed block or whereever you want

    #IF# #97#==#0#
        #PUT#=5000#98#
    #ENDIF#
    #IF# #97#==#1#
	#PUT#=10000#98#
    #ENDIF#
    #IF# #97#==#2#
	#PUT#=15000#98#
    #ENDIF#

    #PUT#=0#99#
    #REPEAT#
	#COMPUTEVAR#=#99#+1
    #WHILE# #98#<>#99#
jjohnbubbles Posted - 25 Jan 2014 : 23:18:14
That's almost exactly what I did, even with the same variable numbers!

I wasn't aware of the computervar option but I did the same thing with the cursor :

#PUT#=10000#99#
#PUT#=0#98#
#RESETCURSOR#
#REPEAT#
#COMPUTECURSOR#=+1
#PUTCURSOR#=#98#
#WHILE# #98#<>#99#

This gives me about a 9 second pause.

Thanks for the smarter approach. Ill remember var next time.
JDommi Posted - 25 Jan 2014 : 22:11:23
A pause isn't available in MagicScript.
But you can use something like that:

	#PUT#=10000#98#
	#PUT#=0#99#
:TIMER
	#COMPUTEVAR#=#99#+1
	#IF# #99#<>#98#
		#GOTO#=TIMER
	#ENDIF#

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.06 sec. Powered By: Snitz Forums 2000 Version 3.4.07