Well I finally realized the problem in focusclient(), it is working, but the problem is on Windows 7. iBot try to focus the client when advance, but it's not like on Windows Vista, if you open for example 3 Tibia, it iwll look like this:



Now for some reason iBot can't focus on the client like it, the Tibia's are needed to be separated. The problem is that if I bot 3 EK's so they are all being minimized to one cube to the missions line, and if I open for example 3 EK's and 1 Mage Tibia client it will focus client, because there are 2 different tasks in the task line..