Jump to content
Sign in to follow this  
Letis

Search for pixel

Recommended Posts

Letis

Hello i want to do easy program what turn down the PC if downloading is complete..(i use opera browser)

there is screen and my plan:D http://img444.imageshack.us/img444/8017/operasb6.jpg

so if the file is downloading in the pixel X2 is colour other from the colour in pixel X1..

in X1 is colour ffffff

and my plan is that.. it will search in the point X2 for colour FFFFFF (this colour is here when the file is downloaded..-you can see it in first file)

And if that pixel get this colour(file is downloaded)turn down the computer..

..the pixel in what i want to search is X: 741 Y: 150 and please give me an Au3 file not exe:)

many thx if anybody help me.. :)

..Sorry for my english :)

Edited by Letis

Share this post


Link to post
Share on other sites
Andreik

Hello i want to do easy program what turn down the PC if downloading is complete..(i use opera browser)

there is screen and my plan:D http://img444.imageshack.us/img444/8017/operasb6.jpg

so if the file is downloading in the pixel X2 is colour other from the colour in pixel X1..

in X1 is colour ffffff

and my plan is that.. it will search in the point X2 for colour FFFFFF (this colour is here when the file is downloaded..-you can see it in first file)

And if that pixel get this colour(file is downloaded)turn down the computer..

..the pixel in what i want to search is X: 741 Y: 150 and please give me an Au3 file not exe:)

many thx if anybody help me.. :)

..Sorry for my english :)

Read in help file about PixelSearch() and PixelGetColor().

When the words fail... music speaks

Share this post


Link to post
Share on other sites
Letis

oh i am absolute beginner and i dont know how to use it.. :)

please write me this script it shouldnt be hard..

Share this post


Link to post
Share on other sites
BrettF

Hey dude,

How does this sound? You go away, you find the help file (All Programs -> AutoIt v3...) find those functions and try something yourself. We know you won't get it first time. Quite frankly your chances are thin IMO. But once you have tried, and done a damn good attempt (I mean like go and try. If it doesn't work, try again. Repeat, not omg it doesn't work, posting someone else can do...) you can come back here, and post. FYI this is a support forum. Not a I-can't-be-arsed-to-write-my-own-scripts forum. Now go try. You'll be surprised how easy it will be if you put some effort into it! :)

Cheers,

Brett

Share this post


Link to post
Share on other sites
Letis

man i am trying to do it but it is hard for me.. there is my NOT complete script

sleep(2000)
PixelSearch(886,150,887,150,0xFFFFFF)
if @error then
do
sleep(20000)
PixelSearch(886,150,887,150,0xFFFFFF)

until Here i need to specify pixel colour but i dont know how..

EndIf
MsgBox(0,"Download","Download complete!")

Please help :) i am not genius :-D

Share this post


Link to post
Share on other sites
au3scr

Maybe you can use ControlGetText ( "title", "text", controlID )

Then you dont need pixels.

you can use "autoit window info" to get control ID

you may need something like:

$text ControlGetText ( "title", "text", controlID )
if $text = "100.0%" then 
Shutdown ( code ) ;1 for shutdown
endif
Edited by au3scr

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.