quote:
Originally posted by SpunkyLoveMuff
If it always returns 3 or 1, then thats got to be what Windows is reporting it as.
I got this in my debug window when testing:
code:
Script has been stopped
Script is starting
Script is now loaded and ready
> .showCmd : 1
> .showCmd : Opened
Script has been stopped
Script is starting
Script is now loaded and ready
> .showCmd : 3
> .showCmd : Maximized
Script has been stopped
Script is starting
Script is now loaded and ready
> .showCmd : 2
> .showCmd : Minimized
The function works fine (except the var in the above codes you have posted is called WindowPlacment not WindowPlacement)
EDIT: This also mean the if statement I suggested would work (except for if it encountered an error and returned 0)
debug log:
Funzione chiamata: OnEvent_Timer
4654408
2557932
> .showCmd : 1
> .showCmd : Opened
False
Funzione chiamata: OnEvent_Timer
4654408
2557932
> .showCmd : 3
> .showCmd : Maximized
False
Funzione chiamata: OnEvent_Timer
4654408
2557932
> .showCmd : 1
> .showCmd : Opened //THE WINDOW WAS MINIMIZED
False
however yes i know about the var...DO YOU TESTING THE CODE ON A CHATWND OR ON ANOTHER WINDOW??...BECAUSE I HAVE ALSO TESTED ON ANOTHER WINDOW AND IT WORKED...tHE CODE DON'T WORK ONLY ON CHATWND