Jump to content

Recommended Posts

Posted

how did ur mouse move in ur code? like wut was the path

Like this

| | | | |

| | | | |

| | | | |

| | | | |

\/\/\/\/\/

It hits bottom of region, then moves to the top and three pixels to the right and repeats

Posted

ooo wow

thats kool if mine did that

:P

wut cords did u use or u just used the ssame exact script u gave me?

mine just moving on the corner of the screen

Posted

i dutn understand the cords becuz it asks for top left right and bottom

thats four

doesnt each spot hav a x and y

isnt it poose to b 8 then?

Posted (edited)

i dutn understand the cords becuz it asks for top left right and bottom

thats four

doesnt each spot hav a x and y

isnt it poose to b 8 then?

You define the coords like this

x1,y1---------------------------------

|§§§§§§§§§§§§§§§§§§§§|

|§§§§§§§§§§§§§§§§§§§§|

|§§§§§Your Region§§§§§|

|§§§§§§§§§§§§§§§§§§§§|

|§§§§§§§§§§§§§§§§§§§§|

-----------------------------------x2,y2

x1 and y1 are the first 2 coords

and x2 and y2 the second 2

Edited by Paulie
Posted (edited)

darn it y does mine only repeat the first line and tahts it

it doesnt move to the next set of lines like urs

Do you have SciTE?

The latest Version?

post the EXACT code you are running, and let me see

Edited by Paulie
Posted

Opt("SendKeyDownDelay", 1)

Opt("SendKeyDelay", 1)

$GameWinTitle = "With Your Destiny"

WinActivate($GameWinTitle, "")

WinWaitActive($GameWinTitle, "", 5)

HotKeySet("{PAUSE}", "quitme")

Sleep(1000)

MoveInRegion(20,75, 800,600);coordinates are defined like pixelsearch

Func MoveInRegion($R_x1=0, $R_y1=0, $R_x2=@DesktopWidth, $R_y2=@DesktopHeight)

For $reg1X = $R_x1 to $R_x2 step 3

For $reg1Y = $R_y1 to $R_y2 step 3

MouseMove($reg1X, $reg1Y, 1)

$search = PixelSearch(0,0,@DesktopWidth,@DesktopHeight, "0xE9080C",3)

If IsArray($search) Then

Found_it($search[0],$search[1])

Endif

Next

Next

EndFunc

Func Found_It($f_x,$f_y)

Mouseclick("left", $F_x,$F_y) ;This is all I changed

EndFunc

Func quitme()

Exit

EndFunc ;==>quitme

Posted

Opt("SendKeyDownDelay", 1)

Opt("SendKeyDelay", 1)

$GameWinTitle = "With Your Destiny"

WinActivate($GameWinTitle, "")

WinWaitActive($GameWinTitle, "", 5)

HotKeySet("{PAUSE}", "quitme")

Sleep(1000)

MoveInRegion(20,75, 800,600);coordinates are defined like pixelsearch

Func MoveInRegion($R_x1=0, $R_y1=0, $R_x2=@DesktopWidth, $R_y2=@DesktopHeight)

For $reg1X = $R_x1 to $R_x2 step 3

For $reg1Y = $R_y1 to $R_y2 step 3

MouseMove($reg1X, $reg1Y, 1)

$search = PixelSearch(0,0,@DesktopWidth,@DesktopHeight, "0xE9080C",3)

If IsArray($search) Then

Found_it($search[0],$search[1])

Endif

Next

Next

EndFunc

Func Found_It($f_x,$f_y)

Mouseclick("left", $F_x,$F_y) ;This is all I changed

EndFunc

Func quitme()

Exit

EndFunc ;==>quitme

I copied that EXACT code and it worked for me, dunno why it's not for you

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
  • Recently Browsing   0 members

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