Which window are you trying to maximize? You haven’t identified any. WinTitle is only an optional parameter if you are counting on the Last Found Window to be used, but what you posted shows no attempt at having found a window. Are you perhaps trying to maximize the currently active window? Then you need to specify that:
but doesn't the documentation say if you don't specify anything it iwll use the last found window. i.e. if now i am on the desktop (last used window is inactive), it will use that window. if i am in a window (and it is currently active, it will maximize this one). did i misunderstand?
Yes, @marypoppins_1, the links were placed in our posts for a reason. You apparently aren’t even reading them because they immediately answer your questions.