Jump to content

how would I go about seeing if the screen has changed/


Recommended Posts

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

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 by ReaImDown
[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
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...