Jump to content

I got some problems


Recommended Posts

I'm trying to make a script which, when a certain color is displayed on a certain pixel, will click at that pixel. The code i've written looks like this:

$var = pixelgetcolor ( 567, 222)
while $var <> 0x740300
WEnd
MouseClick("left", 567, 222, 1)

I've searched around the forums, checked the help files and tried everything I could come up with and still I havn't solved it. I made a separate script which I ran when the color at the pixel already was correct from start, then it worked, but I can not get it to work when the pixel ain't right from the beginning. And i also checked if the vaule of $var changes by making a loop with a popup window to display the value of the pixel, and it changes and eventually that value turns to the one I want. But as soon as I try it in the script I want it to be in, it doesn't work.

EDIT: I could also add that the code havn't looked like this all the time, ive tried with all kinds of loops, i had the value i want the pixels to be changed to decimal etc.

Help is much appreciated!

Edited by kalle437
Link to comment
Share on other sites

$var = pixelgetcolor ( 567, 222)
while $var <> 0x740300
$var = pixelgetcolor ( 567, 222)
WEnd
MouseClick("left", 567, 222, 1)

- Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar!
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...