ReaImDown Posted June 1, 2007 Share Posted June 1, 2007 I want to see if the screens have changed, from 1 to another ie. am on firefox, and then click, notepad Global $window2="" while 1 $window=wingettitle("") if $window=$window2 Then msgbox(0,"", "they are the same") Sleep(1000) Else msgbox(0,"", "they are different") Sleep(1000) Endif $window2=wingettitle("") WEnd doesnt seem to work lol [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Zedna Posted June 1, 2007 Share Posted June 1, 2007 WinGetSize() PixelCheckSum() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ReaImDown Posted June 1, 2007 Author Share Posted June 1, 2007 (edited) PixelCheckSum()that might do what I need it to, thanks, I will try itWinGetSize()I cant find this in the helpfile Edited June 1, 2007 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Zedna Posted June 1, 2007 Share Posted June 1, 2007 that might do what I need it to, thanks, I will try itI cant find this in the helpfileYou need to know area for PixelCheckSum()so WinGetPos() only for that purpose. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ReaImDown Posted June 1, 2007 Author Share Posted June 1, 2007 (edited) You need to know area for PixelCheckSum() so WinGetPos() only for that purpose.I wont know the name of the window in question also, I only need it to check to see if the name of the window has changed, cause, this wont work seeing as how if anything @ all changes, it comes up with the change message ; Get initial checksum $checksum = PixelChecksum(0,0, @DesktopHeight,@DesktopWidth) ; Wait for the region to change, the region is checked every 100ms to reduce CPU load While $checksum = PixelChecksum(0,0, @DesktopHeight, @DesktopWidth) Sleep(100) WEnd MsgBox(0, "", "Something in the region has changed!") Edited June 1, 2007 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] 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