Jump to content

hm....


trung
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
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...