Zamp Posted June 25, 2007 Share Posted June 25, 2007 I need to be able to do 1 of 2 things. 1. Is there a way to copy and paste stuff from a website that doesn't let you highlight stuff? 2. Is there a way to wait until a page loads in FireFox, then do stuff, and if it doesn't load(because the website is too busy and is slow) have it refresh then wait until it is loaded? Does WinWaitActive work like that, and if it does, can you make it so it waits until a window is loaded even if you don't know its name? Link to comment Share on other sites More sharing options...
Zamp Posted June 25, 2007 Author Share Posted June 25, 2007 (edited) Would this load the website, check and see if there is a dark green pixel(or whatever color it is) at the spot, and if there isn't have it refresh until there is a pixel there? Global $n=152, $t = 0, $pix while $n < 494 MouseClick("left", 770, 64) Send("{DELETE}http://serebii.net/pokedex-dp/" & $n & ".shtml{ENTER}") $pix = PixelGetColor(477, 332) If $pix = 0x383838 Then Else While $pix != 0x383838 MouseClick("left", 93, 68) Sleep(10000) PixelGetColor(477, 332) WEnd EndIf ;put stuff to do here WEnd Also, how would you make something copy and paste? Would you highlight it with MouseClickDrag, Send("{CRTL}C"), then Send("{CTRL}P"). The help files don't really explain how to copy and paste, so yeah Ugh, I just tested it and the $pix != color thing doesn't work. Whats another way I can continue that loop forever until there is that color at PixelGetColor? Edited June 25, 2007 by Zamp Link to comment Share on other sites More sharing options...
Zamp Posted June 25, 2007 Author Share Posted June 25, 2007 Bump? How can you make it so it will keep refreshing the page every 10 seconds until it finds that color? And how do you Copy and Paste stuff with Crtl+C/V? Link to comment Share on other sites More sharing options...
DW1 Posted June 25, 2007 Share Posted June 25, 2007 for copy paste lookup clipput(), clipget(), Send("^c"), and Send("^v") and for the ten second delay... you have it "sleep(10000)", but looking up TimerInit() and TimerDiff() and using those instead would be much nicer IMO. Also you are not ever going to exit your loop without updating the While statements variable ($pix) While $pix <> 0x383838 MouseClick("left",LË BÛY L B ÌÍÜ^H^[Ù]ÛÛÜ ÍË33"²÷RæVVFVBFòWFFRFRFFf÷"b33c·¢tVæ@ AutoIt3 Online Help Link to comment Share on other sites More sharing options...
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