Max in montreal Posted July 4, 2008 Share Posted July 4, 2008 I am trying to move one window around. I want it to move into an empty spot on the desktop. I have it playing the sound file each time it finds the window i am looking for...if 0 windows are found no sound...1 window 1 ding...4 windows 4 dings... it all works fin till i try the if statments...Of the windows i am looking for, if there is one missing...i want the variable slot to be 0.in the end i move another window in its place...what am i doing wrong....i think im not using this correctly...$position = WinGetPos ( "$tables[$i][0]" , "" )For $i = 0 to $tables[0][0] Step +1 SoundPlay(@WindowsDir & "\media\ding.wav",1) $position = WinGetPos ( "$tables[$i][0]" , "" ) if $position[0] = 0 and $position[1] = 0 then $slot1 = 1 elseif $position[0] = 0 and $position[1] = 573 then $slot2 = 1 elseif $position[0] = 800 and $position[1] = 0 then $slot3 = 1 Else $slot4 = 1 endif next Link to comment Share on other sites More sharing options...
Max in montreal Posted July 4, 2008 Author Share Posted July 4, 2008 got it...thank you... 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