trung Posted August 21, 2006 Author Posted August 21, 2006 how did ur mouse move in ur code? like wut was the path
Paulie Posted August 21, 2006 Posted August 21, 2006 how did ur mouse move in ur code? like wut was the pathLike this | | | | | | | | | | | | | | | | | | | |\/\/\/\/\/It hits bottom of region, then moves to the top and three pixels to the right and repeats
trung Posted August 21, 2006 Author Posted August 21, 2006 ooo wow thats kool if mine did that 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
trung Posted August 21, 2006 Author Posted August 21, 2006 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?
Paulie Posted August 21, 2006 Posted August 21, 2006 (edited) i dutn understand the cords becuz it asks for top left right and bottomthats fourdoesnt each spot hav a x and yisnt it poose to b 8 then?You define the coords like thisx1,y1---------------------------------|§§§§§§§§§§§§§§§§§§§§||§§§§§§§§§§§§§§§§§§§§||§§§§§Your Region§§§§§||§§§§§§§§§§§§§§§§§§§§||§§§§§§§§§§§§§§§§§§§§| -----------------------------------x2,y2x1 and y1 are the first 2 coordsand x2 and y2 the second 2 Edited August 21, 2006 by Paulie
trung Posted August 21, 2006 Author Posted August 21, 2006 darn it y does mine only repeat the first line and tahts it it doesnt move to the next set of lines like urs
Paulie Posted August 21, 2006 Posted August 21, 2006 (edited) darn it y does mine only repeat the first line and tahts itit doesnt move to the next set of lines like ursDo you have SciTE?The latest Version?post the EXACT code you are running, and let me see Edited August 21, 2006 by Paulie
trung Posted August 21, 2006 Author Posted August 21, 2006 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
Paulie Posted August 21, 2006 Posted August 21, 2006 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 ;==>quitmeI copied that EXACT code and it worked for me, dunno why it's not for you
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now