winmaximize issue

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
marypoppins_1
Posts: 95
Joined: 28 Oct 2020, 02:58

winmaximize issue

28 Mar 2024, 23:26

hello. winmaximize doesn't seem to work with me.

Code: Select all

#Up::WinMaximize()
i get an error message: target window not found
User avatar
boiler
Posts: 16986
Joined: 21 Dec 2014, 02:44

Re: winmaximize issue

28 Mar 2024, 23:51

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:

Code: Select all

#Up::WinMaximize 'A'
marypoppins_1
Posts: 95
Joined: 28 Oct 2020, 02:58

Re: winmaximize issue

29 Mar 2024, 02:25

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?
ntepa
Posts: 429
Joined: 19 Oct 2022, 20:52

Re: winmaximize issue

29 Mar 2024, 03:02

Last Found Window is not the last active window.
User avatar
boiler
Posts: 16986
Joined: 21 Dec 2014, 02:44

Re: winmaximize issue

29 Mar 2024, 03:54

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.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: No registered users and 35 guests