Letis Posted December 13, 2008 Posted December 13, 2008 (edited) 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.jpgso 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 December 13, 2008 by Letis
Andreik Posted December 13, 2008 Posted December 13, 2008 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.jpgso 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().
Developers Jos Posted December 13, 2008 Developers Posted December 13, 2008 f1 in Scite or in the AutoIt3 progran directory SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Letis Posted December 13, 2008 Author Posted December 13, 2008 oh i am absolute beginner and i dont know how to use it.. please write me this script it shouldnt be hard..
BrettF Posted December 13, 2008 Posted December 13, 2008 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Developers Jos Posted December 13, 2008 Developers Posted December 13, 2008 ... it shouldnt be hard..Correct, that is why you are going to do it yourself.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Letis Posted December 13, 2008 Author Posted December 13, 2008 man i am trying to do it but it is hard for me.. there is my NOT complete scriptsleep(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
au3scr Posted December 13, 2008 Posted December 13, 2008 (edited) 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 December 13, 2008 by au3scr
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