Jump to content

small question


mmlm
 Share

Recommended Posts

my easy question for you is

If IsArray(PixelSearch(544, 254, 544, 254, 2170913)) Then
        SetError 1oÝ÷ Ú+-«fy©â~l­êbÅélyªÜú.Ûaz¸ ÚbÅé¢Z+{az¸ ÚeiǢǭzºè¯[aj×±yË­zØ^ìm)Þ¡ûazÇ+h®·­º¹í¢Ø^)àiû^®ØZ¶Ç­zºè¯X¡j÷­)Þjëh×6Sleep(5000)
            Send("{ENTER}")
            sleep(50)
            send("hi{ENTER}")

what i want it's if he found the color I want he go next and if dont found the color then return to the start of the loop

is it good like that?

Link to comment
Share on other sites

While 1 = 1
    $IsArray(PixelSearch(544, 254, 544, 254, 2170913)) ;Gets cord
    If Not @Error Then MouseClick("left", $IsArray[0], $IsArray[1]) ; move and click the  cords
    Sleep(5000)
        Send("{ENTER}")
        sleep(50)
        send("hi{ENTER}")
WEnd ;Continues till paused or terminated

I think this is right..... :P

Edited by Gondus

-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

Link to comment
Share on other sites

While 1 = 1
    $IsArray(PixelSearch(544, 254, 544, 254, 2170913)) ;Gets cord
    If Not @Error Then MouseClick("left", $IsArray[0], $IsArray[1]) ; move and click the  cords
    Sleep(5000)
        Send("{ENTER}")
        sleep(50)
        send("hi{ENTER}")
WEnd ;Continues till paused or terminated

I think this is right..... :P

I just pm you the scrip for be sure all is ok like that.

tank you !

Link to comment
Share on other sites

my easy question for you is

If IsArray(PixelSearch(544, 254, 544, 254, 2170913)) Then
        SetError 1oÝ÷ Ú+-«fy©â~l­êbÅélyªÜú.Ûaz¸ ÚbÅé¢Z+{az¸ ÚeiǢǭzºè¯[aj×±yË­zØ^ìm)Þ¡ûazÇ+h®·­º¹í¢Ø^)àiû^®ØZ¶Ç­zºè¯X¡j÷­)Þjëh×6Sleep(5000)
            Send("{ENTER}")
            sleep(50)
            send("hi{ENTER}")oÝ÷ ÛZ¶,Ø­ßÛ"~¢éݶ¢Z+#§¶ ¢w±µ©Ý÷h×èºwmç(íéëzÛ«Ú-ë-j»h~Ø^)È­)¶­þ«¨µä¢Ç²¢æ«zåÊ«¨¶Ç­Èb
®¢Ú'jȧW©¥¶«z+'¢·²ß¢»azÚ+¶êÞvZ Æ®¶­sdbVÄvWD6öÆ÷"SCBÂ#SBÒ#s2FVà¢WDÆö÷¤VÇ6P¢6öçFçVTÆö÷¤VæD

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...