Sign in to follow this  
Followers 0
masterprof

Reverse PixelSearch

10 posts in this topic

3.3.1.0 (20th May, 2009) (Beta)

...

- Added #351: Reverse PixelSearch().

...

How can I use Reverse PixelSearch ?

I couldn't found any example how to change pixel search direction.

Share this post


Link to post
Share on other sites



http://www.autoitscript.com/forum/index.php?showtopic=95367


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

http://www.autoitscript.com/forum/index.php?showtopic=95367

I'm using v.3.3.1.1

But I couldn't found any help or example how to change pixel search direction in new PixelSearch()

Edited by masterprof

Share this post


Link to post
Share on other sites

Switch top and bottom to reverse the search direction.

It gives error in such case

Share this post


Link to post
Share on other sites

It gives error in such case

The search is still right to left, however, you can (as stated in the post before yours) work it bottom to top or top to bottom.

( You have to make sure you are using Beta however ( if in SciTe use Alt+F5 to Run ( or Alt+F7 to compile ) beta ).

Having said that, and confirming with a Dev, this does in fact work both ways for me:

#include <Misc.au3>
If _VersionCompare(@AutoItVersion, "3.3.1.0") < 0 Then
    MsgBox(16, "Error", "You are running " & @AutoItVersion & ", not 3.3.1.0")
    Exit
EndIf

Global $a_search = PixelSearch(2, 400, 400, 700, 0xFFFFFF)
If @error Then
    MsgBox(16, "Error", "No Match", 2)
Else
    MsgBox(64, "Match", "Top to Bottom Search" & @CRLF & "x: " & $a_search[0] & @CRLF & "y: " & $a_search[1])
EndIf

$a_search = PixelSearch(2, 700, 400, 400, 0xFFFFFF)
If @error Then
    MsgBox(16, "Error", "No Match", 2)
Else
    MsgBox(64, "Match", "Bottom to Top Search" & @CRLF & "x: " & $a_search[0] & @CRLF & "y: " & $a_search[1])
EndIf

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

The search is still right to left, however, you can (as stated in the post before yours) work it bottom to top or top to bottom.

( You have to make sure you are using Beta however ( if in SciTe use Alt+F5 to Run ( or Alt+F7 to compile ) beta ).

Having said that, and confirming with a Dev, this does in fact work both ways for me:

#include <Misc.au3>
If _VersionCompare(@AutoItVersion, "3.3.1.0") < 0 Then
    MsgBox(16, "Error", "You are running " & @AutoItVersion & ", not 3.3.1.0")
    Exit
EndIf

Global $a_search = PixelSearch(2, 400, 400, 700, 0xFFFFFF)
If @error Then
    MsgBox(16, "Error", "No Match", 2)
Else
    MsgBox(64, "Match", "Top to Bottom Search" & @CRLF & "x: " & $a_search[0] & @CRLF & "y: " & $a_search[1])
EndIf

$a_search = PixelSearch(2, 700, 400, 400, 0xFFFFFF)
If @error Then
    MsgBox(16, "Error", "No Match", 2)
Else
    MsgBox(64, "Match", "Bottom to Top Search" & @CRLF & "x: " & $a_search[0] & @CRLF & "y: " & $a_search[1])
EndIf

Thanks SmOke_N, MvGulik.

It's my mistake. I changed top, bottom and left, right in one time.

SmOke_N's example is working.

Only "left-to-right" and can switch betwen "top-to-bottom" and "bottom-to-top".

Share this post


Link to post
Share on other sites

This works only vertically?

I need to reverse the horizontal: right to left. I changed the coordinates of the left & right places:

PixelSearch ( 353, 6, 0, 6, $color , 10 , 1 , $winL2)

But not working

Share this post


Link to post
Share on other sites

This works only vertically?

I need to reverse the horizontal: right to left. I changed the coordinates of the left & right places:

PixelSearch ( 353, 6, 0, 6, $color , 10 , 1 , $winL2)

But not working

http://www.autoitscript.com/trac/autoit/ticket/351

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/trac/autoit/ticket/351

It's still broken.

Share this post


Link to post
Share on other sites

It's still broken.

provide a sample case man, no one wants to write up a test case to prove that it's working as intended

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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