Sign in to follow this  
Followers 0
OrangePanda

Need help Tweaking the script

2 posts in this topic

Im currently making a macro for a game

here is the script and its working fine except that I need to tweak something, but i dont have any idea on how to do it

anyway here is the script:

;OrangePanda Macros
;Author: OrangePanda

;AUTOBUFF
HotKeySet("{NUMPAD1}", "Autocast")
HotKeySet("{NUMPAD2}", "OFF")
HotKeySet("{END}", "Quit")

$Value = 0

While 1
    If $Value = 1 Then
        Send ("1")
        sleep (450)
        MouseClick("right")
        Sleep (450)
        Send ("2")
        sleep (450)
        MouseClick("right")
        Sleep (450)
        Send ("3")
        sleep (450)
        MouseClick("right")
        Sleep (650)
        Send ("4")
        sleep (450)
        MouseClick("right")
        Sleep(450)
        Send ("5")
        sleep (450)
        MouseClick("right")
        sleep (500)
        Send("{LSHIFT down}")
        MouseDown("left")
        MouseMove( 275, 95, 0)
        MouseMove( 750, 115, 10)
        MouseMove( 780, 500, 10)
        MouseMove( 240, 500, 10)
        MouseMove( 285, 170, 10)
        MouseMove( 628, 173, 10)
        MouseMove( 615, 353, 10)
        MouseMove( 394, 340, 10)
        MouseMove( 401, 195, 10)
        MouseMove(579, 207, 10)
        Send("{LSHIFT up}")
        MouseUp("left")
        Sleep(30000)
        EndIf
WEnd

Func Autocast()
    $Value = 1
EndFunc

Func OFF()
    $Value = 0
EndFunc

Func Quit()
 Exit
EndFunc oÝ÷ Ø"¶,²&åzÚ&jG­é¨ºÇ¦¢÷¦z{g¢Ûh²Ú)º{b§®Ö¢«h~ئzÊ-«Hvíç¶Þ·*^¶°^r^­ghx+m"²;¬µ§]xaz»¶Ü¢iÛ%G­+ºÚ"µÍ[ÝÙS[ÝJÍKMK
BS[ÝÙS[ÝJ
ÍLLMKL
BS[ÝÙS[ÝJ
Î
LL
BS[ÝÙS[ÝJ
LL
BS[ÝÙS[ÝJ
KMÌL
BS[ÝÙS[ÝJ
MÌËL
BS[ÝÙS[ÝJ
MKÍLËL
BS[ÝÙS[ÝJÎMÍL
BS[ÝÙS[ÝJ
KNMKL
BS[ÝÙS[ÝJ
MÎK
ËL
B[ÝÙS[ÝJÍKMKL
BS[ÝÙS[ÝJ
ÍLLMKL
BS[ÝÙS[ÝJ
Î
LL
BS[ÝÙS[ÝJ
LL
BS[ÝÙS[ÝJ
KMÌL
BS[ÝÙS[ÝJ
MÌËL
BS[ÝÙS[ÝJ
MKÍLËL
BS[ÝÙS[ÝJÎMÍL
BS[ÝÙS[ÝJ
KNMKL
BS[ÝÙS[ÝJ
MÎK
ËL

I was wondering what command I needed, if there is one, so that the mouse movement would work for around 50~60secs before looping again.

Thanks in advance. ;)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Something like...

$start = TimerInit()
Do
    MouseMove(275, 95, 0)
    MouseMove(750, 115, 10)
    MouseMove(780, 500, 10)
    MouseMove(240, 500, 10)
    MouseMove(285, 170, 10)
    MouseMove(628, 173, 10)
    MouseMove(615, 353, 10)
    MouseMove(394, 340, 10)
    MouseMove(401, 195, 10)
    MouseMove(579, 207, 10)
    MouseMove(275, 95, 10)
    MouseMove(750, 115, 10)
    MouseMove(780, 500, 10)
    MouseMove(240, 500, 10)
    MouseMove(285, 170, 10)
    MouseMove(628, 173, 10)
    MouseMove(615, 353, 10)
    MouseMove(394, 340, 10)
    MouseMove(401, 195, 10)
    MouseMove(579, 207, 10)
Until TimerDiff($start) > 60000
oÝ÷ Øêæk&ÞÊ°j{l¢g­)à)jëh×6
$i = 0
Do
    $i += 1
    MouseMove(275, 95, 0)
    MouseMove(750, 115, 10)
    MouseMove(780, 500, 10)
    MouseMove(240, 500, 10)
    MouseMove(285, 170, 10)
    MouseMove(628, 173, 10)
    MouseMove(615, 353, 10)
    MouseMove(394, 340, 10)
    MouseMove(401, 195, 10)
    MouseMove(579, 207, 10)
    MouseMove(275, 95, 10)
    MouseMove(750, 115, 10)
    MouseMove(780, 500, 10)
    MouseMove(240, 500, 10)
    MouseMove(285, 170, 10)
    MouseMove(628, 173, 10)
    MouseMove(615, 353, 10)
    MouseMove(394, 340, 10)
    MouseMove(401, 195, 10)
    MouseMove(579, 207, 10)
Until $i = 10

...which would make it repeat a certain number of times? (In this example, 10.)

Btw, you posted this twice. Go delete your other one.

Edited by xcal

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0