burton 0 Posted August 5, 2004 I have my script working, but the last step fails. There is no error message, so it should be working. Maybe the problem is, that my WINDOW_NAME's title is the same as the previosly opened window, and I am not sure whether it tries to maximize the already maximized, previous window. I dont think it is the case though, because the window I want maximized is activated once the script has finished. Does the fact that the window is over-sized and off the screen cause a problem? Here my script: WinSetState("WINDOW_NAME", "", @SW_MAXIMIZE) Is there a different command for opening a window in windows explorer, or how do I use the AutoIt Window Spy? Thanks for any help.... Share this post Link to post Share on other sites
ezzetabi 3 Posted August 5, 2004 Try WinSetState("WINDOW_NAME", "", @SW_RESTORE) WinSetState("WINDOW_NAME", "", @SW_MAXIMIZE) 1 jameelo25 reacted to this Share this post Link to post Share on other sites
burton 0 Posted August 6, 2004 (edited) I did actually think of that, but didnt get round to doing it. Shouldnt it have been able to maximize directly, even when partly off the screen? Thanks anyway, it has done it like that... Edited August 6, 2004 by burton Share this post Link to post Share on other sites
ezzetabi 3 Posted August 6, 2004 It seems that sometime Windows (or maybe Autoit) think that the window is already Maximized so it ignores your command. Restore it solves this glitch.... Share this post Link to post Share on other sites