The main point is not taking screenshot, detecting where ie is placed.. However i have somehow solved the detecting ie part with searching for a color match however it is not the best answer of this problem..