Sign in to follow this  
Followers 0
Max in montreal

wingetpos help wanted...

2 posts in this topic

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

Share this post


Link to post
Share on other sites



got it...thank you...

Share this post


Link to post
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
Sign in to follow this  
Followers 0